Home Forums Chart Support Removing labels on mobile screens

Removing labels on mobile screens

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

    Hi all,

    I am using a stacked100bar graph.
    On mobile the format does not work very well, so I would like to remove the labels.

    Currently the way I have it set up is that the charts only render when they are visible in the viewport.
    On doc.ready() I call a function which checks the screen size and then targets the options obj on each graph and sets the index label to be “” if the screen is mobile size.

    This doesn’t seem to be having an effect with stacked100bar graphs – although works with pie charts.

    What am i doing wrong and is there a better way?

    thank you

    #25482

    Claire Smith,

    You can reset the indexLabel to it’s default value (defaults to “” – empty string) by setting indexLabel to null. Please take a look at this JSFiddle.

    —-
    Manoj Mohan
    Team CanvasJS

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

You must be logged in to reply to this topic.