Home forums Using CanvasJS Custom CSS on Index Label

This topic contains 2 replies, has 2 voices, and was last updated by  praveen.garg 1 day, 6 hours ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #17296

    praveen.garg
    Member

    Hi Team,

    Can ypu please help me how to apply custom css in index label or some element. As of now i have used bar chart and index label goes inside to bar chart which is not needed . Please help …

    Thanks

    #17311

    Vishwas R
    Keymaster

    @praveen-garg,

    Applying custom CSS to indexLabel is not available as of now, but you can customize toolTip either by using contentFormatter or by over-riding toolTip class as shown in this jsfiddle.

    In bar/column charts, indexLabels are placed inside or outside based on the available space. You can set indexLabelPlacement in dataSeries level to outside so that indexLabels are shown outside the bar.


    Vishwas R
    Team CanvasJS

    #17312

    praveen.garg
    Member

    Hi Vishwas,

    Thanks for your reply. Is there any way to extend the functionality of charts from outside like updating prototype to enhance the functionality so it would be very helpful because sometime we need to add functionality which is not available for now.

    Thanks.

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

You must be logged in to reply to this topic.