I have trouble creating a graph where individual xAxis-categories are styled differently than the others.
Since using the xAxis->labels->style-property is of no use (it will style *all* categories and not just the
ones that I want) i tried inserting html and css into the category-strings itself
like this:
Code: Select all
categories: ["<b>CustomStyledCategory</b>", "NormalCategory"]
the part of the Category-name *after* the break is not styled anymore.
Here is an example:
http://jsfiddle.net/docsnyder/Ad33w/
The first Category "January Foo Bar" should be all in red color, instead only the part before the linebreak is styled.
Is there a fix for it? Am I doing it completely wrong? What is another possible solution for creating individually
styled category labels?
bye
Martin