Skip to content

Chart Containers proposal

Kyle Gifford edited this page May 15, 2015 · 1 revision

This is currently a draft proposal.

c3-chart

<c3-chart
  type='line (spline, area, area-spline, step, area-step, scatter, bar)' // graph type - http://c3js.org/reference.html#data-type
  stacked // boolean if all data is stacked - http://c3js.org/reference.html#data-groups
  labels // show/hide data labels - http://c3js.org/reference.html#data-labels
</c3-chart>

Params to consider:

c3-[pie, donut, gauge]-chart

This would have params specific to this chart type. It would also make it clear that you cannot override the type attribute inside of a c3-series.

c3-pie-chart

<c3-pie-chart ...> ... </c3-pie-chart> Same sub-components as c3-chart. Would need to implement full pie API (http://c3js.org/reference.html#pie-label-show). Reference: http://c3js.org/samples/chart_pie.html

c3-donut-chart

<c3-donut-chart ...> ... </c3-pie-chart> Same sub-components as c3-chart. Would need to implement full donut API (http://c3js.org/reference.html#donut-label-show). Reference: http://c3js.org/samples/chart_donut.html

c3-gauge-chart

<c3-gauge-chart ...> ... </c3-gauge-chart> Same sub-components as c3-chart. Would need to implement full gauge API (http://c3js.org/reference.html#gauge-label-show). Reference: http://c3js.org/samples/chart_gauge.html

Clone this wiki locally