|
urgent |
Posted by shila on Jan-06-2009 13:44 |
|
Hello sir,
I need some help about showing of gridlines on graphs,
I m using Setplot area function,but its shows only vertical gridlines,horizontal its not showing.
Can you please suggest the solution asap.
Thanks
Shila |
Re: urgent |
Posted by Peter Kwan on Jan-06-2009 17:01 |
|
Hi Shila,
As according to the ChartDirector documentation on XYChart.setPlotArea, the prototype of setPlotArea is (note: the following is from ChartDirector for ASP/COM/VB):
setPlotArea(x, y, width, height [, bgColor [, altBgColor [, edgeColor [, hGridColor [, vGridColor ]]]]])
The hGridColor is the horizontal grid color (default to grey) and the vGridColor is the vertical grid color (default to transparent). If you call setPlotArea without specifying the grid colors, they will be set to the default, so you will not see the vertical grid (being transparent).
For example, in VB/VBScript, to enable both grid lines, you may use:
' Set the plotarea at (55, 58) and of size 520 x 195 pixels, with white background.
' Turn on both horizontal and vertical grid lines with light grey color (0xcccccc)
Call c.setPlotArea(55, 58, 520, 195, &Hffffff, -1, -1, &Hcccccc, &Hcccccc)
(Note: The above is copied from the "Multi-Line Chart" sample code that comes with ChartDirector, which has both horizontal and vertical grid lines.)
Hope this can help.
Regards
Peter Kwan |
|