I am using a time series scatter chart with multiple series. How Do I get the legend to show a name and the color for each of the series in the graph? I have enabled the legend to show at the bottom, changing the legend.dataassociation does not seem to have any effect.
Hello wltaylor,
I made small sample for you where I`m using ScatterChart (you could use option ConnectedWithLInes = true / false) with desired behavior of the legend. Please take a look at the attached sample for more details and let me know if you have any questions.
Regards
Here is the sample:
Sorry but the sample was not of much help. I am not using a composite chart and therefore do not need to create all of the chart layers. I am only using a scatter chart with multiple series...
gSeries = New Infragistics.UltraChart.Resources.Appearance.NumericTimeSeries gSeries.DataBind(tblSQLData, "Date", cboGraphVal.Text) chartData.Series.Add(gSeries)
In you sample you create a new legend, Why is there not already one present. I turn my legend on by
chartData.Legend.Visible = True
which shows a blank legend. I am only simply asking how to put items into the legend? Where do the legend items come from? what gives them their title, symbol, etc?
HI,
Thanks for provided details. Could you please take a look at the new sample. I suppose that you miss to add Labels to each of your series. Please take a look at the sample for more details and let me know if you have any questions.
Hello,
Have you been able to resolve your issue ? Did you have a time to take a look at the new sample .
If you still have any concerns or questions I will be glad to help. If you need any additional assistance don’t hesitate to ask.
Georgi,
Thanks, the Series.Label property was exactly what was needed. For my next trick... The data that I am plotting has suggested max and min values. How can I plot a line across the chart at the points that of the Max and Min value(s)?
Hi,
Thanks for your response.
About your question, maybe you have two possible options:
Option 1: You could achieve this behavior with composite chart where you will use Layer with ScatterChart and another Layer with LineChart ( to connect your MIn and Max values)
Option 2: You could used only ScatterChart, but in this approach your should handle FillSceneGraph event and drawn your custom Primitive (of type Line Primitive)
Please let me know if you have any questions.