Home forums Using CanvasJS Hide AxisY

Tagged: 

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

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

    papito
    Member

    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 6 months, 2 weeks ago by  papito.
    #20266

    Indranil Deo
    Member

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