Skip to main content

Features

This page lists DHTMLX Chart guides, examples, and API references.

How to start with DHTMLX Chart​

Learn how to initialize different chart types and integrate Chart into your applications.

Initialization​

TopicDescription
Basic initializationLearn how to initialize Chart

Types of Charts​

TopicDescription
Specifying the Chart typeCheck the list of available Chart types and learn how to specify one
Spline area chartLearn how to initialize Spline area chart (Example)
Spline chartLearn how to initialize Spline chart (Example)
Area chartLearn how to initialize Area chart (Example)
Line chartLearn how to initialize Line chart (Example)
Bar chartLearn how to initialize Bar chart (Example)
X-Bar chartLearn how to initialize X-Bar chart (Example)
Scatter chartLearn how to initialize Scatter chart (Example)
Donut chartLearn how to initialize Donut chart (Example)
Pie chartLearn how to initialize Pie chart (Example)
Pie 3D chartLearn how to initialize Pie 3D chart (Example)
Radar chartLearn how to initialize Radar chart (Example)
Treemap chartLearn how to initialize Treemap chart (Example 1, Example 2)
Calendar heatmap chartLearn how to initialize Calendar heatmap chart
Grid and ChartLearn how to bind Chart to Grid

Loading data into Chart​

TopicDescription
Loading chart dataLearn how to load the initial data into Chart (Example)

Integration​

TopicDescription
Backend integrationLearn how to connect DHTMLX Suite to a backend (Demo)
OptimusLearn how to use the DHTMLX Optimus framework to build a DHTMLX-based app
(the recommended framework for apps with Suite components)
React integrationLearn how to use DHTMLX Chart with React (Demo)
Angular integrationLearn how to use DHTMLX Chart with Angular (Demo)
Vue integrationLearn how to use DHTMLX Chart with Vue.js (Demo)

How to configure Chart​

Learn how to configure a Chart legend, scales, and series.

TopicDescription
Configuring a legendLearn how to configure a legend for Line, Spline, Bar, X-Bar, Area, SplineArea, Radar, Scatter charts (Example)
Configuring X,Y scalesLearn how to configure X,Y scales for Line, Spline, Bar, X-Bar, Area, SplineArea, Scatter charts (Example 1, Example 2, Example 3)
Configuring radial scalesLearn how to configure radial scales for Radar chart (Example)
Configuring seriesLearn how to configure series for Line, Spline, Bar, X-Bar, Area, SplineArea, Scatter, Radar charts
Configuring a legendLearn how to configure a legend for Pie, Pie3D, Donut charts (Example)
Configuring seriesLearn how to configure series for Pie, Pie3D, Donut charts
Configuring a legendLearn how to configure a legend for Treemap chart (Example 1, Example 2)
Configuring seriesLearn how to configure series for Treemap chart
Configuring a dual axis chartLearn how to build a dual axis chart with series of different dimensions on the left and the right scales (Example)
Configuring stack groupsLearn how to build several independent stacks in one chart, one per value scale or several named groups drawn side by side (Example)
Configuring a mixed chartLearn how to combine different types of graphs in one chart (Example)
Changing configuration on the flyLearn how to set configuration of a chart dynamically
Displaying average valuesLearn how to display a huge data set in the chart (Example)
Displaying the total valueLearn how to display the aggregated value of a series in the center of a Donut chart (Example)
Displaying total values of stacked barsLearn how to display the sum of the values of all the stacked series at the end of each bar of a Bar or X-Bar chart (Example)

How to customize Chart​

TopicDescription
Bar chart. GradientLearn how to define a color gradient for bars
Setting bar colors dynamicallyLearn how to set the color of each bar of a Bar or X-Bar chart based on its data item (Example)
Bar chart. Stacked chartLearn how to show a stacked Bar chart
Bar chart. Base lineLearn how to set a base line to render items in a Bar chart
Bar chart. Show textLearn how to show and customize text values of data items in a Bar chart
Legend positionLearn how to customize legend position
Series. Point typesLearn how to customize point types for data items in a series
Series. Tooltip templateLearn how to customize tooltips for series
Scales. Text template for scale labelsLearn how to customize the text of scale labels
Scales. Dashed gridLearn how to make the grid lines dashed for charts with scales
Scales. Without grid (lines)Learn how to show or hide the grid lines (for the x scale, the y scale, or both)
Scales. Custom paddings (indents)Learn how to set the padding between the scale and the chart container
Styling (custom CSS)Learn how to change the look and feel of Chart (Example)
List of CSS classesA set of CSS classes provided by the DHTMLX library

How to work with data in Chart​

Learn how to apply the DataCollection API to Chart data.

TopicDescription
Serializing chart dataLearn how to serialize the chart data (Example)
Adding new data into ChartLearn how to add data on the fly (Example)
DataCollection APICheck the full DataCollection API reference

How to work with Chart series​

TopicDescription
Iterating over seriesLearn how to iterate over chart series (Example)
Getting series configurationLearn how to retrieve the configuration of a specific series (Example)

How to export Chart​

TopicDescription
Exporting Chart to a PDF or PNG fileLearn how to export Chart to PDF or PNG formats (Example)

How to work with Chart events​

TopicDescription
Event basic rulesLearn the basic rules for working with events
Event handlingLearn how to attach, detach, or call Chart events (Example)

API reference​

TopicDescription
Chart methodsLearn how to use Chart methods
Chart eventsLearn how to use Chart events
Chart propertiesLearn how to use Chart properties

Common functionality​

Chart shares these features with other Suite components.

TopicDescription
Touch supportLearn how to work with touch support
TypeScript supportLearn how to work with TypeScript
Accessibility supportLearn about accessibility support in Chart
AwaitRedrawLearn how to run the code after the component's rendering

Any questions left?​


info

Do you need more functionality? Share your suggestions in the comments below!