You must be logged in to post your query.
Home › Forums › Chart Support › Style axisX & axisY font-color / font-size via CSS?
Tagged: css axis style
Hi there,
is there a way to style axisX/Y font-size & color via CSS? Do they have a className?
Kind regards, Alex
@lembi,
CanvasJS comes with in-build chart options to customize the chart elements. You can use the labelFontSize and labelFontColor properties to style the label font-size and font-color of both axes respectively as shown in the code snippet below –
axisX: { labelFontSize: 20, labelFontColor: "#628395" }, axisY: { labelFontSize: 20, labelFontColor: "#628395" },
Also, please take a look at this working JSFiddle for an example on customizing the axes label font-size and font-color.
___________ Indranil Deo Team CanvasJS
You must be logged in to reply to this topic. Login/Register