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?

chart created me

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     } }); 

desired chart

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.

http://jsfiddle.net/wn3vzn0k/424/





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -