Configuration

An object defining configuration options for the dxChart widget.

adjustOnZoom

Indicates whether or not to adjust a value axis to the current minimum and maximum values of a zoomed chart.

Type: Boolean
Default Value: true
Accepted Values: true|false

You can use the dxRangeSelector widget to perform zooming on the dxChart widget. In such an instance, the range selector and chart will have the same argument scale (axis). When an end-user selects a range in the range selector, the chart displays this range in the argument axis and the corresponding series part only. The adjustOnZoom property determines whether or not to change the value axis' visible range, so that its minimum and maximum values correspond to the values of the lowest and highest points of the currently visible series part. To learn how to implement chart zooming using a range selector, refer to the Zooming topic.

Show Example:
jQuery

In the following example, the dxRangeSelector widget is used to perform zooming on a Chart. You can see the adjusting of the value axis' labels while sliding the markers of the range selector. Use the check box in the bottom to set the adjustOnZoom option to false. In this instance, the Chart's value axis will not be adjusted.


                                    

                                    

animation

Specifies animation options.

Type: Object|Boolean

To make your chart "live", enable animation for it. To do this, set the enabled option of the animation object to true. In this instance, the chart series will appear in motion. The animation object provides more options to set up chart animation. Refer to their description for details.

Show Example:
jQuery

In the example below, the animation's duration option is altered to 2000 milliseconds and the type of easing is set to linear.


                                    

                                    

argumentAxis

Specifies argument axis options for the dxChart widget.

Type: Object

For charting, the rectangular coordinate system is used to determine each point uniquely on a plane through two numbers, the argument and the value of the point. Two perpendicular directed lines (the axis of arguments and the axis of values) are specified to define the coordinates. To define the argument axis, use the argumentAxis configuration object. To define the value axis (axes), use the valueAxis configuration object. To set the properties of all axes to a common value, use the commonAxisSettings configuration object. This object exposes the properties that can be specified for all axes simultaneously. Note that the value specified for an axis individually (in the argumentAxis or valueAxis object) overrides the value specified in the commonAxisSettings object.

Show Example:
jQuery

This example shows the argument axis of a discrete type. Here the axis is ordered by categories, divided using the 'crossLabels' mode and moved to the top of the chart. In addition, the grid lines of the axis are made visible.


                                    

                                    

argumentAxisClick

Specifies the callback function that is called when clicking the argument axis.

Type: function(axis, argument)
Function parameters:
axis: Object
The object that provides access to the axis that was clicked.
argument: Date|Number|String
The axis argument that was actually clicked.

This option allows you to specify the function that will be called when the argument axis is clicked.

The this object represents the axis as well as the axis function parameter.

Show Example:
jQuery

In this example, the argument axis' labels respond to click.


                                    

                                    

commonAxisSettings

An object defining the configuration options that are common for all axes of the dxChart widget.

Type: Object

Use this object's properties to set the options for all chart axes at once. The option values will be applied to the argument axis and all values axes, which are defined in the valueAxis array. To set a common axis option for an axis individually, use the corresponding valueAxis or argumentAxis object. Values that are set individually override their corresponding common values.

Show Example:
jQuery

Here, the color and width options are changed for both axes.


                                    

                                    

commonPaneSettings

An object defining the configuration options that are common for all panes in the dxChart widget.

Type: Object

Use this object's properties to set options for all panes at once. If you need to set an individual value for a common option, use the corresponding pane object within the panes array. The values that are set individually override the corresponding common values.

Show Example:
jQuery

In this example, the panes of a multi-pane chart are separated one from another by a border colored in blue.


                                    

                                    

commonSeriesSettings

An object defining the configuration options that are common for all series of the dxChart widget.

Type: Object

Use this object's properties to set options for all chart series at once. These can be options common to all series types and options specific to series types.

If you have several series of one type, you can set options to the values specific to this series type using the corresponding object (area, line or another) within the commonSeriesSettings configuration object. The values that are set within type-specific configuration objects override the corresponding common values.

In case you have to set an option for an individual series, use the corresponding series object within the series array. The values that are set individually override the corresponding common values.

Show Example:
jQuery

containerBackgroundColor

Specifies the color of the parent page element.

Type: String
Default Value: '#FFFFFF'

If you set this property to the color of the parent page element, certain chart elements will use this color to coordinate with the page. For example, hovered points in the dxChart widget are painted in the color that is set to this property, but you can change this color to a custom color (see color).

Show Example:
jQuery

Here, the containerBackgroundColor option is changed to 'crimson'. To see the changes, hover over any point on the chart.


                                    

                                    

crosshair

An object that specifies the appearance options of the chart crosshair.

Type: Object

Crosshair is a pointer, which is represented by two mutually-crossing lines stretched over the entire chart plot. The crosshair helps you identify the values that lie between the series points more precisely. When enabled, the crosshair center follows the mouse cursor. To enable the crosshair, set the enabled option within the crosshair configuration object to true.

Use the crosshair configuration object to specify options for both of the crosshair lines. To set the options for the horizontal or vertical crosshair line individually, specify these options within the crosshair | horizontalLine or crosshair | verticalLine object correspondingly.

Show Example:
jQuery

In this example, the horizontal and vertical crosshair lines have a different color and dash style. In addition, the opacity of both crosshair lines is changed to 0.8.


                                    

                                    

customizeLabel

Specifies a callback function that returns an object with options for a specific point label.

Type: function(labelInfo)
Function parameters:
labelInfo: Object
Information on the label to be customized
Return Value: Label configuration
A configuration object for the label

By default, all point labels on a chart are displayed identically. But you can specify a different appearance for certain labels using the customizeLabel field. Assign a function to this field. This function should return an object with options that should be changed for a certain label. Refer to the label object description to learn about the options that can be changed.

When implementing a callback function for this option, you can access the following fields of the function's parameter.

  • argument
    Represents the argument of the label's point.
  • value
    Represents the value of the label's point.
  • tag
    Represents the tag of the label's point.
  • seriesName
    Represents the name of the series to which the label's point belongs.
  • index
    Represents the index of the label's point in the points array.

In the range bar and range area series, the following fields of the function's parameter can be accessed instead of the value field.

  • rangeValue1
    Represents the first value of the label's point.
  • rangeValue2
    Represents the second value of the label's point.

In addition, these values can be accessed using the this object.

Show Example:
jQuery

This example shows how to customize point labels using the customizeLabel option. On this chart, if the argument of a point is greater than 20, the label of this point is colored in 'darkorange'.


                                    

                                    

customizePoint

Specifies a callback function that returns an object with options for a specific point.

Type: function(pointInfo)
Function parameters:
pointInfo: Object
Information on the point to be customized.
Return Value: Point configuration
A configuration object for the point.

By default, all points on a chart are displayed identically. But you can specify a different appearance for certain points using the customizePoint field. Assign a function to this field. This function should return an object with options that should be changed for a certain point. Refer to the point object description to learn about the options that can be changed.

NOTE: The hoverMode and selectionMode options cannot be changed using the customizePoint option.

When implementing a callback function for this option, use the argument or value of a point. They can be accessed using the following fields of the function's parameter.

  • argument
    Represents the argument of the point.
  • value
    Represents the value of the point.
  • tag
    Represents the tag of the point.
  • seriesName
    Represents the name of the series to which the point belongs.
  • index
    Represents the index of the point in the points array.

In the range bar and range area series, the following fields of a point can be accessed instead of the value field.

  • rangeValue1
    Represents the first value of the point.
  • rangeValue2
    Represents the second value of the point.

In addition, these values can be accessed using the this object.

Refer to our Visualization Gallery to see the demo.

dataPrepareSettings

An object providing options for managing data from a data source.

Type: Object

When values from a data source are of a different type, they may be displayed incorrectly on a chart. To resolve this situation, use the options provided by the dataPrepareSettings configuration object. You can enable/disable data validation using the checkTypeForAllData option, or specify whether or not to convert the data source values to the type of the axis using the convertToAxisDataType option. In addition, you can sort the series points using the sortingMethod option.

Show Example:
jQuery

In this example, the data source has values of different types. These value types are checked and converted into the axis type as the checkTypeForAllData and convertToAxisDataType options are set to true. In addition, the series points are sorted in descending order by values using the function assigned to the sortingMethod option.


                                    

                                    

dataSource

Specifies a data source for the chart.

Type: Array

To provide data for a chart, use the dataSource option. This option takes on one of the following:

  • An Array of objects
    These objects must contain a field representing an argument value and field(s) representing the value(s) that corresponds to that argument in each series.

  • A DataSource object
    This object is specially designed to provide an easy way to get data from any storage (local, memory or a data service). The DataSource is a stateful object that includes options for data sorting, grouping, filtering; it also keeps data transformation options and applies them each time data is loaded. It also provides events intended to handle changing data and the state. The DataSource underlying data access logic is isolated in a Store. Unlike the DataSource, a Store is a stateless object implementing a universal interface for reading and modifying data. To learn more, refer to the Data Layer description.

In addition to a data source, specify which data source field must be used as a source for arguments and which one(s) as a source for values. To do this, use the argumentField and valueField properties of the series object. For details, refer to the Data Binding topic.

Show Example:
jQuery

In this example, the data source is declared as an array of objects that each contain the 'arg', 'y1', 'y2' and 'y3' fields. The 'arg' field is used as an argument field for all series. The other fields are used as value fields for each series respectively.


                                    

                                    

defaultPane

Specifies a default pane for the chart's series.

Type: String
Default Value: 'default'

When there are several panes declared, be sure to specify on which pane each series must be displayed. If a pane is not specified for a series, the series is displayed on a default pane. The default pane is specified by the chart's defaultPane property. If you do not specify this property, the last pane in the panes array is considered the default. When there is only one pane in the chart, it's named 'default' and is considered to be the default.

Show Example:
jQuery

In this example, the 'topPane' pane is declared as the default pane using the defaultPane option. Thus, series that do not have a pane specified are displayed on the default pane.


                                    

                                    

done

A callback function that is called when chart rendering is complete.

Type: function()
Default Value: Empty function ($.noop)

Show Example:
jQuery

In this example, when chart rendering is complete, a message with the corresponding content appears.


                                    

                                    

equalBarWidth

Specifies a value indicating whether all bars of the same series must always have the same width, or may have different widths if the points of other series are missing.

Type: Object|Boolean
Default Value: true

If some values for a series are not specified or are set to zero, the bars that represent these values will be missing from the chart. To fill the empty area by extending the neighboring bars, set the equalBarWidth property to false. The bars will have different widths, but there will be no empty areas.

To set a custom width for bars, as well as the spacing between bars, assign an object to this property and specify the width and spacing properties, respectively.

Show Example:
jQuery

Use the check box at the bottom to switch the value of the equalBarWidth option.


                                    

                                    

incidentOccured

Specifies a callback function that is called when an error or warning occurs.

Type: function(message)
Function parameters:
message: String
Specifies information about the incident.
Default Value: Empty function ($.noop)

When an error or warning occurs, nothing passes to the browser console, but the function specified for the incidentOccured option is called. Information about the incident is available via the parameter of the function. For example, you will be notified when data is input in the wrong format, or when the chart container is too small.

Show Example:
jQuery

In this example, the type of the argument axis values is 'numeric'. Change it to 'string' using the drop-down list below the chart to induce an error. Information about the error will be displayed.


                                    

                                    

legend

Specifies the options of a chart's legend.

Type: Object

The dxChart widget can include a legend - an explanatory component that helps you identify a series. Each series is represented by an item on a Legend. An item marker identifies the series color. An item label displays the series title. To set the required position for a legend and its items, to customize the font settings for item labels, and to specify the size of item markers, use the properties of the legend configuration object. To learn more on the legend and its options, refer to the Legend topic.

Show Example:
jQuery

In this example, the legend's horizontalAlignment and verticalAlignment options are changed.


                                    

                                    

legendClick

Specifies a function that is called when an item on the chart legend is clicked.

Type: jQuery.Event
Event Handler Argument:
series: Series
The series to which the currently clicked legend item belongs.
jQueryEvent: jQuery.Event
The event object.

When implementing a callback function for this option, use the object that represents the series to which the currently clicked legend item belongs. To access this object, use the function's first parameter or the this object. In addition, you can access the jQuery-event object using the function's second parameter.

NOTE: If the legendClick option is not specified, a click on the legend will invoke the function assigned to the seriesClick option. To prevent this behavior, assign at least an empty function to the legendClick field.

To learn about the series members you can use, refer to the description of the Series object.

To learn more about handling click operations, and to see an example, refer to the Click Handling topic.

Show Example:
jQuery

Click one of the legend items, and the information on the maximum value in the series corresponding to this legend item will appear below.


                                    

                                    

loadingIndicator

Specifies the appearance of the loading indicator.

Type: Object

In most cases, a chart is quick enough to draw itself instantly for a viewer. There are, however, cases when the chart takes longer to be drawn. In such cases, it is recommended that the loading indicator be shown. Use the chart's showLoadingIndicator() and hideLoadingIndicator() methods to manage the loading indicator. To specify its appearance, use the loadingIndicator configuration object.

Show Example:
jQuery

In this example, the chart options are assigned 3000 ms after the example is loaded. Until that time, the loading indicator is displayed. Its background and font are changed using the backgroundColor and font options respectively. Make a note that these options should be specified at design-time so that the changes are applied at the right time.


                                    

                                    

margin

Specifies the blank space between the chart's extreme elements and the boundaries of the area provided for the widget (see size) in pixels.

Type: Object

Set the required values for the left, right, top and bottom margins using the corresponding properties of the margin object.

ChartMargin ChartJS

palette

Sets the name of the palette to be used in the chart. Alternatively, an array of colors can be set as a custom palette to be used within this chart.

Type: Array|String
Default Value: 'default'
Accepted Values: 'Default' | 'Soft Pastel' | 'Harmony Light' | 'Pastel' | 'Bright' | 'Soft' | 'Ocean' | 'Vintage' | 'Violet'

Use this property to set a predefined or custom palette. The colors listed in the specified palette will be used to draw chart series, their points, labels and tooltips. If the number of a series is greater than the number of colors in the palette, palette colors are repeated, but slightly modified.

You can override the color of individual series and their points, labels and tooltips by setting the color property of the corresponding object. In addition, you can define a custom palette to use in your charts. To learn how to do this, refer to the Palettes topic.

Show Example:
jQuery

This example shows how to create a custom palette and apply it to a chart.


                                    

                                    

panes

Defines the dxChart widget's pane(s).

Type: Object|Array

A Pane is a visual area within a chart that includes all the elements required to display data. If you need to plot several series, you can distribute them between several panes. In this instance, the series are easily compared to each other and provide the entire picture of the presented data. To define panes, introduce the panes array of objects. Each object represents a single pane. To identify panes, set their name property.

If you need to set similar values to properties of several panes, use the commonPaneSettings configuration object. It exposes the properties that can be specified for all panes at once. Note that the values specified for a pane individually (in the panes array) override the values that are specified for all panes (in the commonPaneSettings object).

If you plot all series on one pane, use the panes configuration object to make the pane's border visible, set up border options or set the pane's background color, if required.

Show Example:
jQuery

In this example, two panes are used to represent data. Each pane is defined within the panes array.


                                    

                                    

pathModified

Notifies a widget that it is embedded into the HTML page that uses a path modifier.

Type: Boolean
Default Value: false
Accepted Values: true|false

If you place a widget on a page that uses a path modifier, notify the widget about it by setting the pathModified option to true. As an example of such modifiers, the base HTML tag can be considered. Also, we recommend you to enable this option if you place the widget inside the <iframe> tag.

pointClick

Specifies a function that is called when a series data point is clicked.

Type: jQuery.Event
Event Handler Argument:
point: Point
The clicked point.
jQueryEvent: jQuery.Event
The event object.

When implementing a callback function for this option, use the object that represents the currently clicked point. To access this object, use the function's first parameter or the this object. In addition, you can access the jQuery-event object using the function's second parameter.

For information on which point members you can use, refer to the Point class description. For instance, you can access the series to which the point belongs. To learn about which series members you can use, refer to the description of any series type in the chart Series Types section.

To learn more about handling click operations, and to see an example, refer to the Click Handling topic.

Show Example:
jQuery

Click one of the points on the chart, and a message with the data on this point will appear below.


                                    

                                    

pointHover

Deprecated

Use the pointHoverChanged option instead.

Specifies the function that is called when a data point is hovered over.

Type: function

When implementing a callback function for this property, use the object that represents the currently hovered point. To access this object, use the function's parameter or the this object.

To learn about which point members you can use, refer to the Point class description. For instance, you can access the series to which the point belongs. To learn about which series members you can use, refer to the description of any series type in the chart Series Types section.

To learn more about the handling of hover operations and to see an example, refer to the Hover Handling topic.

pointHoverChanged

Specifies the function that is called when the hover state of a point has been changed.

Type: function(point)
Function parameters:
point: Point
The point whose hover state has been changed.

When implementing a callback function for this option, use the object that represents the point whose hover state has been changed. To access this object, use the function's parameter or the this object. To identify whether the point, whose hover state has been currently changed, was hovered over or hovered out, call the isHovered() method of this point.

To find out which point fields and methods you can use, refer to the Point class description within the Chart Elements reference section.

To learn more about the handling of hover operations, refer to the Hover Handling topic.

Show Example:
jQuery

In this example, when a point on the chart is hovered over, the pie chart displays the information about the Olympic medals won by the US team in the year corresponding to the hovered point. When none of the chart points are hovered, the pie chart displays the information about medals won by this team overall.


                                    

                                    

pointSelected

Deprecated

Use the pointSelectionChanged option instead.

Specifies the function that is called after a series data point has been selected.

Type: function

When implementing a callback function for this property, use the object that represents the currently selected point. To access this object, use the function's parameter or the this object.

To learn about which point members you can use, refer to the Point class description. For instance, you can access the series to which the point belongs. To learn about which series members you can use, refer to the description of any series type in the chart Series Types section.

To learn how to select a point, refer to the Selection Handling topic.

pointSelectionChanged

Specifies the function that is called when the selection state of a point has been changed.

Type: function(point)
Function parameters:
point: Point
The point that was selected or deselected.

When implementing a callback function for this option, use the object that represents the point that was selected or deselected. To access this object, use the function's parameter or the this object. To identify whether the point was selected or deselected, call the isSelected() method of this point.

To find out which point fields and methods you can use, refer to the Point class description within the Chart Elements reference section.

To learn more about the handling of selection operations, refer to the Selection Handling topic.

Show Example:
jQuery

In this example, click a point on the chart to select/unselect all points with the same argument. When the points are selected, the pie chart displays the information about the Olympic medals won by the US team in the year corresponding to the selected points. When none of the chart points are selected, the pie chart displays the information about medals won by this team overall.


                                    

                                    

pointSelectionMode

Specifies whether a single point or multiple points can be selected in the chart.

Type: String
Default Value: 'single'
Accepted Values: 'single' | 'multiple'

To set the points to highlight along with the selected point, set the series | point | selectionMode option.

To learn how to select a point, refer to the Selection Handling topic.

Show Example:
jQuery

In this example, click a point to select/deselect this point. The pointSelectionMode option is set to multiple so that you can select multiple points. When selecting a point, the Total value of selected points number represented below is changed. Click the Clear selected points button to deselect all points at once.


                                    

                                    

redrawOnResize

Indicates whether to redraw the chart when the size of the parent browser window changes or a mobile device is rotated.

Type: Boolean
Default Value: true
Accepted Values: true|false

The size of the chart is never changed when its container has a fixed size. Alternatively, its size changes proportionally when the parent window size changes and the redrawOnResize is set to true.

rotated

Swaps the axes round so that the value axis becomes horizontal and the argument axes becomes vertical.

Type: Boolean
Default Value: false
Accepted Values: true|false

Show Example:
jQuery

In this example, the chart is rotated.


                                    

                                    

series

Specifies options for dxChart widget series.

Type: Object|Array
Default Value: undefined

A series represents a grouping of related data points. The most important characteristic of a series is its type, which determines a particular visual representation of data. You can find more details on each series type in the corresponding topics in the Series help section.

To define a single series, assign an object defining the series to the series configuration object. In the series' object, specify the series type, data source fields, the appearance of the series points and other options.

To show several series, specify series as an array of objects defining series. If you need to set similar values to properties of several series, use the commonSeriesSettings configuration object. It exposes the properties that can be specified for all series at once and for all series of a particular type at once. Note that the values specified for a series individually (in the series array) override the values that are specified for all series (in the commonSeriesSettings object).

NOTE: This option is necessary. If you do not need to specify any of the options within the series object (e.g., when you have specified them within the commonSeriesSettings object), assign at least an empty object to the series field.

Show Example:
jQuery

seriesClick

Specifies a function that is called when a series is clicked.

Type: jQuery.Event
Event Handler Argument:
series: Series
The clicked series.
jQueryEvent: jQuery.Event
The event object.

When implementing a callback function for this option, use the object that represents the currently clicked series. To access this object, use the function's first parameter or the this object. In addition, you can access the jQuery-event object using the function's second parameter.

NOTE: The function assigned to the seriesClick option is also called by clicking the legend when no function is assigned to the legendClick option.

To learn about the series members you can use, refer to the description of the Series object.

To learn more about handling click operations, and to see an example, refer to the Click Handling topic.

Show Example:
jQuery

Click one of the series on the chart, and the information on the maximum value in this series will appear below.


                                    

                                    

seriesHover

Deprecated

Use the seriesHoverChanged option instead.

Specifies a function that is called when a series is hovered over.

Type: jQuery.Event

When implementing a callback function for this property, use the object that represents the currently hovered series. To access this object, use the function's parameter or the this object.

To learn about which series members you can use, refer to the description of the Series object.

To learn more about handling hover operations and view an example, refer to the Hover Handling topic.

Show Example:
jQuery

Hover over one of the series on the chart, and the information on the maximum value in this series will appear below.


                                    

                                    

seriesHoverChanged

Specifies the function that is called when the hover state of a series has been changed.

Type: function(series)
Function parameters:
series: Series
The series whose hover state has been currently changed.

When implementing a callback function for this option, use the object that represents the series, whose hover state has been currently changed. To access this object, use the function's parameter or the this object. To identify whether the series, whose hover state has been currently changed, was hovered over or hovered out, call the isHovered() method of this series.

To find out which series fields and methods you can use, refer to the Series class description within the Chart Elements reference section.

To learn more about the handling of hover operations, refer to the Hover Handling topic.

Show Example:
jQuery

In this example, when a series on the chart is hovered over, the pie chart displays the information about the population in the year corresponding to the hovered series. When none of the chart series is hovered, the pie chart displays the information about the population by year overall.


                                    

                                    

seriesSelected

Deprecated

Use the seriesSelectionChanged option instead.

Specifies a callback function that is called after a series has been selected.

Type: function

When implementing a callback function for this property, use the object that represents the series that is currently selected. To access this object, use the function's parameter or the this object.

To learn about which series members you can use, refer to the description of any series type in the Reference | Charts section.

To learn how to select a series, refer to the Selection Handling topic.

Show Example:
jQuery

In this example, a click on a series makes this series selected. This selection is handled by the function specified in the seriesSelected option. Here, this function displays information about the maximum value in the selected series.


                                    

                                    

seriesSelectionChanged

Specifies the function that is called when the selection state of a series has been changed.

Type: function(series)
Function parameters:
series: Series
The series that was selected or unselected.

When implementing a callback function for this option, use the object that represents the series, which was selected or unselected. To access this object, use the function's parameter or the this object. To identify whether the series was selected or unselected, call the isSelected() method of this series.

To find out which series fields and methods you can use, refer to the Series class description within the Chart Elements reference section.

To learn more about the handling of selection operations, refer to the Selection Handling topic.

Show Example:
jQuery

In this example, click a series on the chart to select/unselect it. When the chart series is selected, the pie chart displays the information about the population in the year corresponding to the selected series. When none of the chart series is selected, the pie chart displays the information about the population by year overall.


                                    

                                    

seriesSelectionMode

Specifies whether a single series or multiple series can be selected in the chart.

Type: String
Default Value: 'single'
Accepted Values: 'single' | 'multiple'

To set the series elements to highlight when a series is selected, set the series selectionMode option.

To learn how to select a point, refer to the Selection Handling topic.

Show Example:
jQuery

In this example, the seriesSelectionMode option is set to multiple. Click a series on the chart to select/deselect this series.


                                    

                                    

seriesTemplate

Defines options for the series template.

Type: Object
Default Value: undefined

In most cases, you can organize the array that is assigned to the chart's dataSource option in the following way:

[
    {arg: arg1Value, series1Value: val11, series2Value: val12, ...}
    {arg: arg2Value, series1Value: val21, series2Value: val22, ...}
    ...
    {arg: argNValue, series1Value: valN1, series2Value: valN2, ...}
]

Each object that is included in the array represents an argument value and the values of all series for this argument.

However, there are some scenarios in which you do not know exactly how many series will be added. In these cases, you will not be able to define the data source in the manner detailed above. Instead, define it in the following way:

[
    {seriesName: series1, arg: arg11Value, val: value11 }
    {seriesName: series1, arg: arg12Value, val: value12 }
    ...
    {seriesName: seriesM, arg: argM1Value, val: valueM1 }
    {seriesName: seriesM, arg: argM2Value, val: valueM2 }
    ...
]

If you define a data source in this manner, set the argument and value fields using the argumentField and valueField properties of the commonSeriesSettings configuration object (for all series at once). In addition, define a template for the series using the seriesTemplate configuration object. Within this object, set the data source field that specifies the series name.

Define all series at once using the commonSeriesSettings object. If you need to specify individual values for options of a particular series, assign a callback function to the customizeSeries option of the seriesTemplate.

To see an example, refer to the Series Template demo.

size

Specifies the size of the widget in pixels.

Type: Object

The widget occupies the entire area of the parent container (division). If the container size (width or height) is set to zero, the widget is not displayed.

If you need to set a particular size for the widget, different from the container's size, use the size configuration object. Assign a height and width in pixels to height and width properties.

Show Example:
jQuery

In this example, the size of the chart is set smaller than the size of the chart container using the size option.


                                    

                                    

synchronizeMultiAxes

Indicates whether or not to synchronize value axes when they are displayed on a single pane.

Type: Boolean
Default Value: true
Accepted Values: true|false

When synchronized, the ticks (or grid lines) of all the value axes in a pane are located on the same line.

Show Example:
jQuery

In this example, a multi-axes chart is displayed. Toggle the check box below to choose whether or not to synchronize the labels of the value axes.


                                    

                                    

theme

Sets the name of the theme to be used in the chart.

Type: String
Default Value: 'desktop'

Use this property to set a predefined or custom theme. The options defining chart appearance will be set to the values that are set in the specified theme. You can override some of these values within the chart's configuration object. To learn more about themes, their implementation and customization, refer to the Themes topic.

Show Example:
jQuery

In this example, a custom theme is defined on the base of the 'desktop' theme and then applied.


                                    

                                    

title

Specifies a title for the chart.

Type: Object|String

Use this property to set the text to be displayed as a chart title. If you need to specify the title's position on the chart, assign an object to the title property with the required title options specified. In this instance, set the title's text using the text property. When a text is not specified for a title, the widget is displayed without a title.

Show Example:
jQuery

In the example below, the chart's title text is assigned directly to the title field.


                                    

                                    

tooltip

Specifies tooltip options.

Type: Object

A tooltip is a small pop-up rectangle that displays information about a hovered series point. You can enable or disable tooltips, format or customize the displayed text, and change the default appearance. Use the properties of the tooltip configuration object to do this. To learn more on tooltips and their options, refer to the Tooltips topic.

Show Example:
jQuery

In this example, the tooltips are enabled. Hover over any point to see a tooltip.


                                    

                                    

tooltipHidden

A callback function that is called when a point tooltip becomes hidden.

Type: function(point)
Function parameters:
point: Point
The point whose tooltip becomes hidden.
Default Value: Empty function ($.noop)

The point tooltip becomes invisible when another point is hovered. In addition, you can hide a tooltip in code, using the hideTooltip() method of the chart or point.

When a tooltip is made hidden, you can perform specific actions. To do this, implement a callback function and assign it to the tooltipHidden option. When implementing this callback function, use the object that represents the point whose tooltip becomes hidden. To access this object, use the function's parameter or the this object.

Show Example:
jQuery

In this example, when a tooltip is made hidden, the function assigned to the tooltipHidden option is called. When a tooltip is shown, the function assigned to the tooltipShown option is called. These functions display messages with the corresponding content.


                                    

                                    

tooltipShown

A callback function that is called when a point tooltip becomes visible.

Type: function(point)
Function parameters:
point: Point
The point whose tooltip becomes shown
Default Value: Empty function ($.noop)

The point tooltip becomes visible when the point is hovered. In addition, you can show a tooltip in code, using the showTooltip() method of the chart or point.

When a tooltip is made visible, you can perform specific actions. To do this, implement a callback function and assign it to the tooltipShown option. When implementing this callback function, use the object that represents the point whose tooltip becomes shown. To access this object, use the function's parameter or the this object.

Show Example:
jQuery

In this example, when a tooltip is made hidden, the function assigned to the tooltipHidden option is called. When a tooltip is shown, the function assigned to the tooltipShown option is called. These functions display messages with the corresponding content.


                                    

                                    

useAggregation

Specifies whether or not to filter the series points depending on their quantity.

Type: Boolean
Default Value: false
Accepted Values: true|false

By default, a chart displays all series points. But there may be situations when displaying all the series points may affect chart performance. In this case, it is better to aggregate the series points rather than display all of them. For this purpose, set the useAggregation option to true. The aggregation is based on the median filter algorithm.

Show Example:
jQuery

In this example, the data source is populated with 5000 random values. You can change the value of the useAggregation option using the check box below.


                                    

                                    

valueAxis

Specifies value axis options for the dxChart widget.

Type: Object|Array

For charting, the rectangular coordinate system is used to determine each point uniquely on a plane through two numbers, the argument and the value of the point. Two perpendicular lines (the axis of arguments and the axis of values) are specified to define the coordinates. To define the argument axis, use the argumentAxis configuration object. To define the value axis, use the valueAxis configuration object. When series are displayed on several panes, there should be a value axis for each pane defined. In addition, different series can be displayed using different value axes on one pane. In these instances, the valueAxis can be an array of objects representing values axes.

To set the properties of all axes to a common value, use the commonAxisSettings configuration object. It exposes properties that can be specified for all axes simultaneously. Note that the value specified for an axis individually (in the argumentAxis or valueAxis object) overrides the value that specified in the commonAxisSettings object.

Show Example:
jQuery

In this example, the value axis' axisDivisionFactor option is set to 15, and the minValueMargin and maxValueMargin options are set to 0.04.