egig
egig

Reputation: 4430

Highcharts custom xAxis label

what I need is grouped xAxis label.

I created a fiddle:

http://jsfiddle.net/9nhk544b

In that fiddle, I use category like: foo1, foo2, foo3, bar1, bar2... so on. What I need is 2 line xAxis label like:

y|
 |
 |
 |___________________________________________
   1    2    3     1    2    3    1    2    3
       foo             bar             baz

I've googled for days and still get nothing, is that even possible ? is there any trick to get it done ? Thanks.

Upvotes: 1

Views: 1753

Answers (2)

Sebastian Bochan
Sebastian Bochan

Reputation: 37578

You can use grouped categories plugin which allows to add two axis.

Upvotes: 1

Torstein Hønsi
Torstein Hønsi

Reputation: 2197

You can use Black Label's Grouped categories plugin for this: http://www.highcharts.com/plugin-registry/single/11/Grouped-Categories

Upvotes: 2

Related Questions