Home forums Chart Support Is it possible to add html on the label of the column chart

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #30706

    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?

    #30715

    @sarojstha,

    Sorry, this feature is not available as of now.


    Vishwas R
    Team CanvasJS

    #30728

    @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?

    #30800

    @sarojstha,

    You can achieve this with the help of striplines & it’s labels as shown in this JSFiddle.


    Vishwas R
    Team CanvasJS

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.