Home Forums Chart Support Style axisX & axisY font-color / font-size via CSS?

Style axisX & axisY font-color / font-size via CSS?

Viewing 2 posts - 1 through 2 (of 2 total)
  • #34977

    Hi there,

    is there a way to style axisX/Y font-size & color via CSS? Do they have a className?

    Kind regards,
    Alex

    #34980

    @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.

    Styling Axes Label Font-size and Font-color

    ___________
    Indranil Deo
    Team CanvasJS

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.