I am trying to created stacked bar chart using C3 chart. But i am facing problem as i am trying to plot a graph with string values. My data looks like this
var data1=["Country", "Denmark", "India"]
var data2=["Value", 1, 1]
var X=["Item",'Item1','Item2]
c3.generate({
data: {
x:'Item',
columns:[[data1],[data2]],
type: 'bar' ,
groups: [
['data1', 'data2']
]
},);
I just want to display the values using the tooltip functionality of C3-chart.Is there a way to make my bar chart independent of the y-axis?
thanks