質問

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
}
役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top