How to hide the y axis and x axis line and label in my bar chart for chart.js -
i new chart.js , want hide y axis , x axis line , label in chart. looked @ documentation , couldn't find option. has else encountered problem , have solution?
using showscale option better
var ctx = document.getelementbyid("linewithline").getcontext("2d"); new chart(ctx).line(data, { showscale: false });
fiddle - http://jsfiddle.net/wb3kcunt/
this hides gridlines too. if want hide axes , labels , not grid lines, set scalefontcolor , scalelinecolor transparent color.
Comments
Post a Comment