Page 1 of 1
Graph and coordinates Values missing
Posted: Mon Sep 10, 2007 6:13 pm
by 9640703
Hi,
I just created a WebChart in Visual Studio 2005. I cannot see any values on the X and Y axes/coordinates. Please let me now how to get the values printed on the coordinates and graph as well.
Thanks
Gagan
Posted: Wed Sep 12, 2007 9:23 am
by narcis
Hi Gagan,
As I told you in the other thread you started, to have axes values appearing you should have, at least, one series in the chart and populate the series with data.
Another option would be that you manually set left and bottom axes minimum and maximum values, for example:
Code: Select all
WebChart1.Chart.Axes.Left.SetMinMax(0,100);
Posted: Wed Sep 12, 2007 12:20 pm
by 9640703
NarcĂs,
Thanks a lot for your reply. I have already added a series in the chart with data and getting the axes values but what I need is to display the X and Y coordinate values on the graph for every X,Y pair in the coordinate when its value changes in the graph. I hope I am able to explain you my need.
Thanks
Gagan[/img]
Posted: Wed Sep 12, 2007 12:55 pm
by narcis
Hi Gagan,
I'm not 100% sure about what do you mean but you could try setting series marks like this:
Code: Select all
foreach (Steema.TeeChart.Styles.Series s in WebChart1.Chart.Series)
{
s.Marks.Visible = true;
s.Marks.Style = Steema.TeeChart.Styles.MarksStyles.XY;
}
Posted: Wed Sep 12, 2007 1:06 pm
by 9640703
....Thanks a lot Marcis for giving me the perfect solution.
I really appreciate your kind response.
Gagan