Set custom data class.
If this option is specified, the element g for the data has an additional class that has the prefix billboard-target- (e.g. billboard-target-additional-data1-class).
Show labels on each data points or set formatter function for data labels.
The formatter function receives 4 arguments such as v, id, i, j and it must return a string that will be shown as the label. The arguments are:
Set a callback for click event on each data point.
This callback will be called when each data point clicked and will receive d and element as the arguments.
Set a callback for mouse/touch event on each data point.
This callback will be called when mouse cursor moves out each data point and will receive d as the argument.
Set a callback for mouse/touch over event on each data point.
This callback will be called when mouse cursor or via touch moves onto each data point and will receive d as the argument.
Define the order of the data.
This option changes the order of stacking the data and pieces of pie/donut. If null specified, it will be the order the data loaded.
If function specified, it will be used to sort the data and it will recieve the data as argument.
Define regions for each data.
The values must be an array for each data and it should include an object that has start, end, style.
If start is not set, the start will be the first data point. If end is not set, the end will be the last data point.
Currently this option supports only line chart and dashed style. If this option specified, the line will be dashed only in the regions.
Specify the key of x values in the data.
We can show the data with non-index x values by th is option. This option is required when the type of x axis is timeseries.
If this option is set on category axis, the values of the data
on the key will be used for category names.
Set color converter function.
This option should a function and the specified function receives color (e.g. '#ff0000') and d that has data parameters like id, value, index, etc.
And it must return a string that represents color (e.g. '#00ff00').