[SOLVED] ChartJS grid lines

Answered
0
0
How we can hide the grid lines in ChartJS widget without hiding all the other axis information?

Regards,
Stefano Gruni
  • You must to post comments
Best Answer
0
0

Hi Stefano,

I’ll log an enhancement to add the gridLines property configuration to Options. This will let you set the visibility of the gridlines for each axis.

In the meantime, you can use this as a workaround:

private void chartJS1_Appear(object sender, EventArgs e)
{
    this.chartJS1.Eval("this.chart.options.scales.xAxes[0].gridLines.display = false");
    this.chartJS1.Eval("this.chart.options.scales.yAxes[0].gridLines.display = false");
    this.chartJS1.Eval("this.chart.update()");
}

 

I’ll keep you updated on the status of the enhancement!

 

Best,

Levie

  • You must to post comments
0
0

Hi Stefano,

this enhancement is now available in Wisej 2.2.36.

Best regards
Frank

  • You must to post comments
0
0

Hi Stefano,

We’ve finished the enhancement and it will be available for the next build.

We’ve added all the grid line configuration options available here: https://www.chartjs.org/docs/latest/axes/styling.html

 

Please let me know if you have any questions or issues!

Best,

Levie

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.