-
Notifications
You must be signed in to change notification settings - Fork 12k
Description
Good Morning.
I am making a simple line chart to show trends. Is there a way to use a function to alter the style of the gridlines such that the center gridline is more pronounced than the others? The provided link is an example chart that I have hard coded that gets very close to the effect I would like to achieve.
This code is a basis for having multiple charts on the same page. Each chart would have different linear scaling that I would ensure would have a proper center line and have the same numerical range above and below. Going forward with that logic, I could enforce the number of gridlines to be the same number for each chart and use the existing gridLine color and lineWidth settings.
I am pretty sure I can make the necessary functions to do what I want, but I was just wondering if there is something within the library that would make this easier? Perhaps changing where the zeroLine is? Instead of it always being the 0th element, maybe it could be an index into the scale array?
In addition, is there a way to change the fontStyle of the scaleLabel for the zeroLine to 'normal' (0.60 in the example)?
Thanks for reading and your consideration.
-Mike