JavaScript/jQuery Errors and Warnings API

This section lists errors and warnings that may occur in DevExtreme data visualization widgets during runtime.

E2001

Occurs when data of an unsupported type was provided to a widget.

A widget accepts an array of objects as a data source. If you try to pass anything else, the E2001 error occurs. To see an example of how to provide data for a widget, refer to the Providing Data topic.

See Also

E2002

Occurs when axis type and data type are incompatible.

By default, data type of arguments and values is determined automatically based on the type of values from the data source. In some cases, specifying the data type explicitly may be required. For this purpose, the argumentAxis.argumentType and valueAxis.valueType options can be used.

Similarly, the types of argument and value axes are determined automatically based on the data type, or set explicitly using the type option of the argumentAxis or valueAxis object correspondingly.

If data of a specified data type cannot be represented on an axis of a specified axis type, the E2002 error occurs. For example, if you try to represent data of a string type on an axis of a logarithmic type, you will get this error.

See Also

E2003

Occurs when one of the data source fields has an unsupported type.

Data source fields must contain values of numeric, string or date-time types only. Otherwise, the E2003 error occurs.

See Also

E2004

Occurs when values in a data source field have different types that cannot be cast to one type.

For example, this error takes place when among date-time values of a data source field, a string value occurs, and it cannot be converted into date-time type.

See Also

E2005

Occurs in the Funnel widget when the specified value field is absent in the data source or all its values are negative.

Check that you set the valueField option to a field in the data source containing at least one positive value.

See Also

E2006

Occurs in the Sankey widget when data objects are looped.

Check that data objects are not looped.

See Also

E2007

Occurs in the Sankey widget if any of the required fields are not found in at least one data object.

Check that each data item has the following structure:

{ source: String, target: String, weight: Number }
See Also

E2008

Occurs in the Sankey widget if the source or target field has an incorrect data type in at least one data object.

Check that each data item has the following structure:

{ source: String, target: String, weight: Number }
See Also

E2009

Occurs in the Sankey widget if the weight field has an incorrect data type or value in at least one data object.

Check that the weight field in each data object is an integer number greater than 0.

See Also

E2101

Occurs when series.type option of Chart or PieChart has an unknown value.

You can find lists of acceptable series types for the Chart here and the PieChart here.

See Also

E2102

Occurs in Chart when two or more value axes on a single pane have the same name.

When you visualize data using several value axes on a single pane, these axes must have different names. If they do not, the E2102 occurs.

See Also

E2103

Occurs if an incorrect value was assigned to an option that accepts callback functions only.

This error occurs when you try to assign anything other than a callback function to options like customizeTooltip in Chart or onPointSelectionChanged in PieChart.

See Also

E2104

Occurs if the logarithmBase option of Chart or RangeSelector was set to an invalid value.

This error may occur if you have set the logarithmBase option of a logarithmic axis (for Chart) or a logarithmic scale (for RangeSelector) incorrectly. The value assigned to this option must be an integer number greater than 1.

See Also

E2105

Occurs if an invalid value was specified for a strip or constant line.

A strip for an axis is specified by the startValue and endValue options of an object in the strips array. A constant line is specified by the value option of an object in the constantLines array. All these options accept numeric values. If you try to assign a value of another type to one of these options, the E2105 error occurs.

See Also

E2106

Occurs when the visible range specified by the min and max options of a chart axis is not valid.

The min and max options accept a numeric or date-time value depending on the data type. If anything else is passed, the E2106 error occurs.

See Also

E2202

Occurs when the startValue or endValue option of the RangeSelector's scale is not valid.

The startValue and endValue options accept a numeric or date-time value depending on the scale data type. If anything else is passed, the E2202 error occurs.

See Also

E2203

Occurs in the RangeSelector widget when the selected range is invalid.

Commonly, this error appears when either the value option or the setValue(value) method were used incorrectly. To troubleshoot, check that the range you are trying to select falls between the scale start and end values and that the type of the range values is the same as the scale type.

See Also

W2002

Appears when none of the data source objects contain a valid argument or value field.

When providing data for Chart or a chart within RangeSelector, you must specify argument and value fields for chart series. If the chart data source does not contain the specified fields, or none of their values are valid, the widget places the W2002 warning into the browser console.

See Also

W2003

Appears when the specified tick intervals lead Chart or RangeSelector to generating an excessive number of ticks.

When dividing the Chart's axes or RangeSelector's scale, you can specify intervals for major and minor ticks. However, if these intervals appear too small, the widgets will ignore them and divide the axes or scale using default tick intervals. In addition, the W2003 warning will appear.

See Also

W2101

Appears if the pane specified by the defaultPane option does not exist.

When a multi-pane chart is used, you can specify the pane to be used by default using the defaultPane option. The name of the pane assigned to this option must be also declared within the panes array. Otherwise, the W2101 warning appears, and the last pane declared in this array is used.

See Also

W2102

Appears if a value axis specified for a series does not exist.

Using a multi-axis chart), you should specify a value axis for each series using the series.axis option. These value axes should be declared in the valueAxis array as well. If not, a value axis with the name specified for a series will be created automatically, and the widget will place the W2102 warning into the browser console.

See Also

W2103

Appears when a chart hides its title due to the layout being adapted.

This warning may appear if your scenario allows for the change of the widget container's size. If so, when the size is reduced down to a minimum, which is specified by the height and width options of the adaptive layout object, accessory widget elements will be hidden. The W2103 warning, particularly, appears when the chart hides its title.

See Also

W2104

Appears when a chart hides its legend due to the layout being adapted.

This warning may appear if your scenario allows for the change of the widget container's size. If so, when the size is reduced down to a minimum, which is specified by the height and width options of the adaptive layout object, accessory widget elements will be hidden. The W2104 warning, particularly, appears when the chart hides its legend.

See Also

W2105

Appears when a chart hides one of its axis titles due to the layout being adapted.

This warning may appear if your scenario allows for the change of the widget container's size. If so, when the size is reduced down to a minimum, which is specified by the height and width options of the adaptive layout object, accessory widget elements will be hidden. The W2105 warning, particularly, appears when the chart hides one of the axis titles.

See Also

W2106

Appears when a chart hides labels of one of the axes due to the layout being adapted.

This warning may appear if your scenario allows for the change of the widget container's size. If so, when the size is reduced down to a minimum, which is specified by the height and width options of the adaptive layout object, accessory widget elements will be hidden. The W2106 warning, particularly, appears when the chart hides labels of one of the axes.

See Also

W2107

Appears if the export menu was hidden due to the container's size being too small.

Enlarge the container's size.

See Also

W2108

Occurs if the browser does not support exporting images to the specified format.

W2301

Occurs if the distance between the start and end scale values in a gauge equals zero.

Specify the startValue less than the endValue.

JavaScript
$(function () {
    $("#gaugeContainer").dxLinearGauge({ // or dxCircularGauge
        // ...
        scale: {
            startValue: 0,
            endValue: 50
        }
    });
});

$(function () {
    $("#barGaugeContainer").dxBarGauge({
        // ...
        startValue: 0,
        endValue: 50
    });
});
See Also