You must be logged in to post your query.
Home › Forums › Chart Support › Is it possible to add html on the label of the column chart
Here, in this column chart https://jsfiddle.net/q268xtem/1/
I want to insert something like
{ x: 1, y: 297571, label: "<span class='text-danger'>ABC</span> Venezuela", labelColor:"red"} I want that ABC text to be in red and other in normal color. For this case, I am trying to use a bootstrap class text-danger, is there any way to achieve as I mentioned that half text to be indifferent color?
{ x: 1, y: 297571, label: "<span class='text-danger'>ABC</span> Venezuela", labelColor:"red"}
ABC
@sarojstha,
Sorry, this feature is not available as of now.
— Vishwas R Team CanvasJS
@vishwas
Okay, if that is not possible could we make at least some column label red and other in default color? For example, in the above-mentioned jsfiddle could you make china and Russia red and others leave as default?
You can achieve this with the help of striplines & it’s labels as shown in this JSFiddle.
You must be logged in to reply to this topic. Login/Register