Andrii Furmanets
Andrii Furmanets

Reputation: 1161

highstock x-axis is always time

I've chose highstock instead of highcharts because I need scrolling functionality and I was noticed that highstock supports only Time labels, but I need to display String as well.

Is there any way to display String value in the x axis ticks?

Upvotes: 0

Views: 86

Answers (1)

The Jakester
The Jakester

Reputation: 730

Just use the formatter for labels on the xAxis to get what you want. See this jsFiddle

http://jsfiddle.net/jmunger/w7kyH/

xAxis: {
    labels: {
        formatter: function() {
            return 'my string'; 
        }
    }
},

Upvotes: 1

Related Questions