Home forums Using CanvasJS Hide AxisY


This topic contains 1 reply, has 2 voices, and was last updated by  Indranil Deo 1 year, 4 months ago.

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

    I got a chart with 2 Y axis. It looks like the 2nd sample on this page: https://canvasjs.com/docs/charts/chart-options/axisy/ the one labeled Multiple Y axis.

    I would like to hide the second Y axis with title “Axis Y 2 Title”. I only want it to hide not remove it. I can set a blank title but the tick marks are still there. Is it possible?

    Edit: Looks like I ask to soon. I found the answer already

    I set it to something like this

            title: "",
            title: "",
            gridThickness: 0,
            tickLength: 0,
            lineThickness: 0,
            labelFormatter: function(){
              return " ";
    • This topic was modified 1 year, 4 months ago by  papito.


    Setting the lineThickness and tickThickness to 0 will work fine in your case. Please take a look at this jsfiddle.

    Indranil Deo,
    Team CanvasJS

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

You must be logged in to reply to this topic.