javascript - C3js - combination chart with data labels only for line -
i want create combination chart stacked bars + line using c3js. don't want see data labels on top of stacked bars want see them line. know flag "labels: true/false" showing/hiding labels. possible this?
using code:
var chart = c3.generate({ data: { columns: [ ['data1', 30, 20, 50, 40, 60, 50], ['data2', 200, 130, 90, 240, 130, 220], ['data3', 100, 230, 390, 440, 230, 120], ['line4', 430, 480, 630, 820, 450, 490] ], type: 'bar', types: { line4: 'line' }, groups: [ ['data1','data2', 'data3'] ], labels: true } });
you can though set data label formatting per data series:
labels: { format: { data3: d3.format(), } }
..and seems omitting format data series means labels aren't drawn series.
wiki
Comments
Post a Comment