Influence Highchart Yaxis

  • 1
  • Question
  • Updated 2 years ago
  • Answered
  • (Edited)
Is there anyway to modify the code for my Charts so that the YAxis says something like this:
yAxis: {
gridLineWidth: 0,
minorGridLineWidth: 0
},
Photo of Rich Slack

Rich Slack

  • 4,134 Points 4k badge 2x thumb

Posted 2 years ago

  • 1
Photo of Bill McCullough

Bill McCullough, Champion

  • 12,436 Points 10k badge 2x thumb
Rich,

Create a snippet and set to run before your chart renders.  The snippet looks like this:

    var params = arguments[0], $ = skuid.$;
    
    params.yAxis[0].gridLineWidth = 0;
    params.yAxis[0].minorGridLineWidth = 0; 

Thanks,

Bill
Photo of Rich Slack

Rich Slack

  • 4,134 Points 4k badge 2x thumb
THANK YOU BILL! Very grateful for your comment. It works! At first I did not think it did because the line was still there. But that is because I have more than one model or series on each chart. So I played with it and changed the code to be:

var params = arguments[0], $ = skuid.$;

params.yAxis[0].gridLineWidth = 0;
params.yAxis[0].minorGridLineWidth = 0;
params.yAxis[1].gridLineWidth = 0;
params.yAxis[1].minorGridLineWidth = 0;

And now all the lines disappear. THANK YOU!