How does one change the color of the lines of the major grid on an axis?
setting "axis.grid.format.fill" affects the banding - quite neat!
setting "axis.grid.format.stroke.fill='#000000'" doesn't seem to work!
I'm trying to make them black!
Kind regards
Mark
Axis Grid Line Color
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Axis Grid Line Color
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Axis Grid Line Color
Tried all that - no avail!
Perhaps you can post a demo that works?
Mark
Perhaps you can post a demo that works?
Mark
Re: Axis Grid Line Color
Hi Mark,
If you look at Axes example here, you can see how to activate/deactivate the grids of all the axes:
To see the axis grid color clearly, I've hidden the grid of all the axes except for one. Then, I've added this to the draw() function in that example before Chart1.draw():
Or on "green":
If you look at Axes example here, you can see how to activate/deactivate the grids of all the axes:
Code: Select all
function setGrids(value) {
Chart1.axes.left.grid.visible=value;
Chart1.axes.top.grid.visible=value;
Chart1.axes.right.grid.visible=value;
Chart1.axes.bottom.grid.visible=value;
}
...
<input type="checkbox" id="grids" onclick="setGrids(this.checked); Chart1.draw();" checked>Grids<br/>
Code: Select all
Chart1.axes.left.grid.format.stroke.fill="black";
Chart1.axes.top.grid.visible=false;
Chart1.axes.right.grid.visible=false;
Chart1.axes.bottom.grid.visible=false;
Code: Select all
Chart1.axes.left.grid.format.stroke.fill="green";
Chart1.axes.top.grid.visible=false;
Chart1.axes.right.grid.visible=false;
Chart1.axes.bottom.grid.visible=false;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |