Hkachhia
Hkachhia

Reputation: 4539

Hide tickmarks from yaxis in line chart of jqplot

I want to remove tickmarks from y axis in line chart of jqplot. I have created multiple y axis line chart in jqplot, its work fine but I want to hide line of y2axis etc. I have write code for that but its hide only line display tickmarks. I want to hide both. See in below image.

enter image description here

I have write below code for hide yaxis line and tickmarks.

grid: {
    drawBorder: false,
    borderWidth:0, 
    shadow:false
}

Upvotes: 0

Views: 1120

Answers (1)

Steve P
Steve P

Reputation: 19397

You can show/hide the gridlines separately inside the axes options area:

axes: {
    xaxis: {
       tickOptions: {
          showGridline: true,
          showMark: true
       }
    },
    yaxis: {
       tickOptions: {
          showGridline: false,
          showMark: false
       }
    }
}

See this section of the documentation for full details.

Upvotes: 2

Related Questions