Closed cloudeeo closed 10 years ago
@cloudeeo Tried to overwrite tickFormat function for xAxis? chart.xAxis.tickFormat(function (d) { return "category_" + d;});
But for me it seems that a BarChart is a better choise to visualize your data.
Shouldn't your x values be numeric if you want to draw a line chart?
Well not necessarily, I have a client who wants to plot months names on the x-axis... Anyway I was able to achieve what I need thanks to m48u suggestion. I used something like this:
chart.xAxis.tickFormat(function (d) { return myData[d].label;});
I cannot get text labels for a line chart on the x-axis. I tried the syntax that works for bar charts:
with no points on the chart. And then tried with this, but got only numbers on the x-axis
what is the right syntax? thanks!