Home forums Using CanvasJS How to add padding in between x axis label and title

This topic contains 3 replies, has 2 voices, and was last updated by  Bivek Singh 5 months, 1 week ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #14003

    art3mis
    Member

    Is there a way to add padding in between the x axis label and the title? The two are squishing together on all of my charts:

    padding issue

    Here are the customizations I have currently:

         width: 250,
          height: 150,
          colorSet: "greenFirst",
          title:{
          text: "Print materials",
          fontColor: "#1f4489",
          fontFamily: "Helvetica",
          fontSize: 15
          },
          axisX: {
            labelFontFamily: "Helvetica",
            labelFontColor: "#69727a",
            lineColor: "#69727a",
            tickLength: 0
          },
          axisY: {
            viewportMinimum: 0,
            viewportMaximum: 50,
            interval: 10,
            title: "Days",
            titleFontSize: 11,
            titleFontFamily: "Helvetica",
            titleFontColor: "#69727a",
            labelFontFamily: "Helvetica",
            labelFontColor: "#69727a",
            gridThickness: 0,
            lineColor: "#69727a",
            tickLength: 5,
            tickColor: "#69727a"
          },
          data: [
          {
            type: "stackedBar",
             dataPoints: [
              { y: 35, label: "Threshold" },
              { y: 20, label: "Target" }
            ]
          },
            {
            type: "stackedBar",
             dataPoints: [
              { y: 0, label: "Threshold" },
            ]
          }
          ]
        });
    • This topic was modified 5 months, 1 week ago by  art3mis.
    #14006

    Bivek Singh
    Moderator

    @art3mis

    As of now, we don’t have property to set padding between axis Labels and title.

    #14038

    art3mis
    Member

    Do you know if there are plans to add this?

    #14042

    Bivek Singh
    Moderator

    @art3mis

    User control over padding to the chart is in our road-map but we don’t have a timeline yet.

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

You must be logged in to reply to this topic.