Dashed or dotted line
Dashed or dotted line
Hello, is there a way to plot dashed or dotted line? Can't find such property or any example in demos
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Dashed or dotted line
Hi Igor,
Yes, you can do this:
This is a code snippet from the GridBands example at the Axes section in this demo.
Yes, you can do this:
Code: Select all
function setAxisDash(axis,value) {
if (value=="solid")
axis.grid.format.stroke.dash=null;
else
if (value=="dash")
axis.grid.format.stroke.dash=[4,4];
else
axis.grid.format.stroke.dash=[2,2];
}
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: Dashed or dotted line
I got it, thank you very much!
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Dashed or dotted line
Hi Igor,
It would be almost the same:
.
It would be almost the same:
Code: Select all
Chart1.series.items[0].format.stroke.dash=[4,4];
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 |