pChart 2.x forum
http://wiki.pchart.net/forum/

Display Grid over graph
http://wiki.pchart.net/forum/viewtopic.php?f=1&t=2524
Page 1 of 1

Author:  Qronicle [ Thu Mar 01, 2012 9:19 am ]
Post subject:  Display Grid over graph

Hello,

I would like to display the grid lines of the scale above my graph instead of beneath it [in a z-index above/below way].
Now we first need to render the scale, then the graph, so the graph is always displayed on top. I need this for a stackedAreaChart, so making the color pallete more transparent won't really work. There are also no options to remove the Y axis when I try to draw a second scale on top of the graph.

Right now I "fixed" this by:

1. draw scale
2. draw graph
3. draw filled rectangle that hides the current Y axis
4. draw scale [with everything hidden except Y axis and grid]

But there must be a better way to do this, no?
Am I missing an option here or should there be created a new drawGrid method?

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/