ZoomCharts Documentation
FacetChart.settings.data
Properties
An array of fields for auto-categorization. For each field a new drilldown sub-level will be created, separated by the values of that field.
Load more chart data.
Parameters
The ID of the parent slice. null
when loading the top level data.
max number of slices to load on pie
number of slices to skip from start
callback function to execute when error occure while loading data
Parameters
Data loading format. Currently most charts only support JSON.
Data id used for series to reference specific data source.
Number of slices to request from server.
Max number of parallel data requests to issue. More requests will result in faster loading, but might put heavy load on server.
Enables/Disables partial load. Items will be loaded on demand but is not compatible with sortField or autoCategories.
Delegate that can be used to process data returned by the server for the HTTP request issued by the chart.
Parameters
The raw data received from the server.
Return value
The data object that will be further processed by the chart.
Provides the ability to embed chart data directly into the chart configuration.
This data can be complete or act as the initial data where the rest will be requested dynamically using
url
or dataFunction
.
Timeout in milliseconds for data requests. This timeout only applies to HTTP requests issued by the chart directly.
If set, items will be sorted in descending order using values from this field. You can either specify a single field or an array of fields.
To sort the values ascending, prefix the field name with -
, for example, -value
(without any spaces).
The default value null
means that the chart does not reorder the data and it is displayed in the order it is given in the
data source.
The callback receives two data objects every iteration, return 0
for equal values, 1
if the first value should be before the other
and -1
otherwise.
sortField: function (a, b) {
// handle null and undefined values as zeroes
var v1 = a.val || 0;
var v2 = b.val || 0;
if (v1 === v2) return 0;
if (v1 < v2) return 1;
return -1;
}
URL that is used to load data