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

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -