Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: strokeStyle changes PRIOR lines
07-31-2011, 10:43 PM #1
- Join Date
- Jul 2011
- Thanked 0 Times in 0 Posts
strokeStyle changes PRIOR lines
I'm making a graph in Canvas. I plot the grid with ctx.strokeStyle = '#ccc';
I then plot the data lines with ctx.strokeStyle = '#000';, and the GRID color then turns back to '#000' too! The same happens with any color.
The same happens with lineWidth.
The fillStyle of the labels is not affected.
It happens even if I surround the code with save/restore.
It happens in both Firefox and Chrome.
Has anyone else had this problem? Is there any way around it?