<bit-c3-data>
{can.Component}
Chart data element
<bit-c3-data></bit-c3-data>
Parameters
-
type
{String}
Type of the graph (see http://c3js.org/reference.html#data-type).
-
names
{Object}
Names of the data elements, keyed by the data Key (see http://c3js.org/reference.html#api-data-names).
-
url
{String}
Load a CSV or JSON file from a URL (see http://c3js.org/reference.html#data-url).
-
json
{Object}
Parse a JSON object for data (see http://c3js.org/reference.html#data-json).
-
columns
{Array}
Load series data from a multidimensional array (see http://c3js.org/reference.html#data-columns).
-
rows
{Array}
Load row data from a multidimensional array (see http://c3js.org/reference.html#data-rows).
-
classes
{Object}
Set custom data classes (http://c3js.org/reference.html#data-classes).
-
categories
{Array}
Set custom X axis categories (see http://c3js.org/reference.html#axis-x-categories).
-
axes
{Object}
Relate data to an axis (see http://c3js.org/reference.html#api-data-axes).
-
colors
{Object}
Set color for data (see http://c3js.org/reference.html#data-colors).
-
types
{Object}
Set types for data series (see http://c3js.org/reference.html#data-types).
-
unload
{String | Array}
Data ID(s) to be unloaded.
-
done
{function()}
Function that will be ran after data is loaded.
Component Initialization