Adding icons to bar charts made using c3js
问题 I have made a stacked bar chart using c3 libraries and would like to add icons to each column (using c3 or d3). I went through their documentation but there doesnt seem to be any relevant functionality! var chart = c3.generate({ data: { columns: [ ['data1', 30, 200, 100], ['data2', 130, 100, 140] ], type: 'bar', groups: [['data1', 'data2']] }, }); 回答1: You can import font-awesome and then (mis)use c3's label format configuration to set an icon for each series var chart = c3.generate({ data: {