-
Notifications
You must be signed in to change notification settings - Fork 0
Series Components proposal
Kyle Gifford edited this page May 15, 2015
·
3 revisions
This is currently just a proposal.
<c3-chart>
<c3-series
label=''
data=‘[] ([{x:X,y:Y}], [{foo:bar, bar:baz}])’ // load data as a series array, or a more complex object (default keys would be x and y, but you could specify custom keys with `keys`, below:
keys=‘[] ([‘foo’, ‘bar’])'
type=‘line (spline, area, area-spline, step, area-step)’ // series type, would override type specified in c3-chart
class='' // custom class name
color=‘' // line color
/>
</c3-chart>
Params to consider:
-
data-url='’anddata-url-mime-type: ‘': load data via a URL - http://c3js.org/reference.html#data-url -
label-format='': custom label format - http://c3js.org/reference.html#data-labels-format -
regions='': http://c3js.org/reference.html#data-regions -
group='': for bar stacking - http://c3js.org/reference.html#data-groups -
bar-width='': for bar charts -
bar-ratio='': for bar charts -
hide: hide this series