We currently have the ability to hide Y-Axis but we need to hide X-Axis too.
(case-in-point: sparkline charts).
I agree. I'll add this feature. Please give me some time.
Thanks. We have a workaround to hide it via css.
@KetanJavia I added axis.x.show option for hiding x axis by the commit above. Could you try this on the latest code? I'll update the version later.
Thanks. That worked!
@kjavia can you share your sparkline code? :)
var chart = c3.generate({
data: {
columns: [
['data1', 30, 200, 100, 400, 150, 250],
['data2', 50, 20, 10, 40, 15, 25]
]
},
axis: {
x: {show:false},
y: {show:false}
}
});
Duh. Sorry! I thought it was something more specific. But I guess it's just a matter of making it really small. Thanks!
axis: {show:false} works too
@masayuki0812: Is there any way to keep the labels when removing the axis? Thanks
Most helpful comment