Home forums Feature Requests & Feedback Responsive Font Size – IndexLabelFontSize

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

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

    Ryan
    Member

    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.
    https://jsfiddle.net/QwZuf/1171/

    #20570

    Vishwas R
    Keymaster

    Ryan,

    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.