JavaScript/jQuery Chart - Overview

A series point is a visual representation of one or several data objects. Series points can have different shapes and sizes depending on the series types.

DevExtreme HTML5 JavaScript Charts SeriesPoints

For those series whose points are simple dots (Range Area and Scatter, all line and area series), point-related settings are collected in the point object. This object can be declared as follows.

JavaScript
  • $(function() {
  • $("#chartContainer").dxChart({
  • // ...
  • series: [{
  • point: {
  • // Settings for all points of an individual series
  • }
  • }, {
  • // ...
  • }],
  • commonSeriesSettings: {
  • point: {
  • // Settings for all points of all series
  • }
  • }
  • });
  • });

A dedicated object is not provided for series whose points have a distinctive appearance (Range Bar and Bubble, all bar and financial series), and all point-related settings are declared directly in the series or commonSeriesSettings object. Refer to the description of a particular series type in the Series Types section of the API reference for more details on the available settings.

NOTE
Individual settings override common settings.

Settings specified in the manner described above apply to a congregation of series points. If you need to customize an individual point, assign a function to the customizePoint property. This function must return an object with properties for the point that you want to customize.

JavaScript
  • $(function() {
  • $("#chartContainer").dxChart({
  • // ...
  • series: {
  • point: {
  • color: 'blue'
  • }
  • },
  • // Assigns the red color to all series points with value more than 100
  • // Other series points remain painted in blue
  • customizePoint: function (pointInfo) {
  • return pointInfo.value > 100 ? { color: 'red' } : { }
  • }
  • });
  • });

View Demo

See Also