Hi,
I have data that I need to present in a linechart. Some values are actual, and some are estimated. I have a DataSource column in my table that is set to 'A' for actual or 'E' for estumated.
I would like to use different shapes for data points on my chart depending on the value of DataSource. Could you please explain how to do this.
Thanks,
Helen.
Helen,
Are you using a ScatterChart with ConnectWithLines set to "true"? Or are you actually using a LineChart?
Would it be possible for you to attach a screen shot of a chart with sample data in it showing exactly what you want to do?
Michael S.
Have you been able to resolve this issue? If you still require assistance please refer to my previouls reply asking for more details which would help me investigate this issue further.
Thanks Max,
The first one worked fine, but for the second one (position of the labels), I do not understand how to define "p" in your code sample. Besides, I can not find anything in LineChart.ChartText that has VerticalAlignment as an attribute.
Thank you for all your help.
If you backtrack to my original response, you will see the only for each loop. That's where p is defined and that's where you should put the new code in my last post.
How did you add the point labels in the first place? I was assuming that you've added a chart text item at some point, but I can't tell without seeing your code. In any case, using vertical alignment won't help much in this case, but in order to access that property you need to get into the ChartText collection first.UltraChart1.LineChart.ChartText(0).VerticalAlign = StringAlignment.Far
Have you been able to resolve your issues?
Mike, there is a slight problem with the solution below:
If TypeOf p Is Text And p.Path Is Nothing Then Dim label As Text = CType(p, Text) label.bounds.Y -= 10End If
All the labels move up, not just the labels of the graph. It includes the labels of the axis. The labels of the X axis end up in the middle of the axis line. I was unable to figure out how to tell the axis labels from the graph labels.
I would really appreciate your help in this.
Thanks
each axis label will have a Path that is set to something like "Border.Title.Grid.X", so the condition would be false. Please make sure that you're using the latest build of NetAvantage, as I recall this being a problem in the past.
Yes, thank you Michael.
Is everything working for you now?
Thanks Max. Apparently I am using an outdated version. I will get the latest one, and implement your advise.
Thanks again for your timely responses.
Helen