Home forums Feature Requests & Feedback Responsive Font Size – IndexLabelFontSize

This topic contains 1 reply, has 2 voices, and was last updated by  Vishwas R 8 months, 2 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #20558


    Is there a way that font size can be change responsively when browser window is adjusted.
    Currently indexLabelFontSize is set to be 36;
    When chart changes in size, the font size stays the same.

    Please see the jsfiddle provided.


    Vishwas R


    Font size remains same even after resize as you are setting indexLabelFontSize to 36. You can change indexLabelFontSize on resize of window and relate it to chart-container width and can have minimum and maximum limits on the same. Please take a look at this updated jsfiddle.

    Vishwas R
    Team CanvasJS

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

You must be logged in to reply to this topic.