javascript - How to remove the line/rule of an axis in Chart.js? -
i managed remove horizontale lines/rules in chart using this:
scales: { xaxes: [{ gridlines: { display: false } }] }
but want rid of rule/bar represents y-axis well. but want keep labels:
unfortunately can't find option that. can remove whole axis including labels.
i'm using chart.js 2.3.
i found way remove line. it's called border
of axis , there's option it, see "grid line configuration":
scales: { yaxes: [{ gridlines: { drawborder: false, } }] }
Comments
Post a Comment