You must be logged in to post your query.
Home › Forums › Chart Support › Removing labels on mobile screens
Tagged: options, remove labels
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?
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.
You must be logged in to reply to this topic. Login/Register