Overview
Easy JavaScript based charts in any web application
Key Benefits
Minimal Example
// Sample data, typically retrieved from an executed SQL query or API call
var data = [
{category: 'shoes', total_sales: 5000},
{category: 'pants', total_sales: 10000},
{category: 'shirts', total_sales: 8000},
{category: 'socks', total_sales: 4000}
];
// Render the data into a chart
chartsql.createChart({
// Target HTML element id to place the chart, or one
// will be created and appended to the body
target: 'auto-column',
// The data for the chart
data: data
});
Quick Start
createChart({})
Parameters
Parameter
Required?
Description
Auto Charts
Auto Column Chart

Auto Grouped Column Chart

Auto Date Line Chart

Customizing Charts
Basic Directives Example

Common Directives
Directives in SQL

Working with Data
Array of Objects
Array of Arrays
Table Object
Data Class
Relationship to ChartSQL Studio, Datasources, Dashboards & Extensions
Supported Features
Auto Charts
Auto Chart
ChartSQL.js
ChartSQL Studio
Chart Types
Type
ChartSQL.js
ChartSQL Studio
Directives
Directive
ChartSQL.js
ChartSQL Studio
Note
Other Capabilities
Capability
ChartSQL.js
ChartSQL Studio
Note
Last updated