Skip to content

Series Components proposal

Kyle Gifford edited this page May 15, 2015 · 3 revisions

This is currently just a proposal.

c3-series

<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:

Clone this wiki locally