Hi,
I am trying to put markers into a 3D Scatter Line Chart (as you have in the xamFeatureBrowser). My code looks something like:
var s1 = new Series { ChartType = ChartType.ScatterLine, Label = "1", DataMapping = "ValueX=X; ValueY=Y; ValueZ=Z", DataSource = data, Marker = new Marker { Type = MarkerType.Circle, Fill = Brushes.Red, MarkerSize = 2} }; Chart.Series.Add(s1);
This doesn't seem to be working. Also, I'd love to make the line thinner (I have a large number of series), but cannot get that to happen either.
Thanks!
Thanks for this -- the legend is hiding but not collapsing the duplicate entries
Hello,
I have attached a sample project with a ScatterLineChart 3D. It shows how to set same colors and remove the unnecessary label in legend. It uses data trigger, so if you have more Series I suggest you check their names, too. As I explained in my previous post the Marker functionality is not available for 3D charts.
Looking forward for your reply.
One further question: Can I get the markers to display the values on the 3d chart
eg
Marker = new Marker { Type = MarkerType.Circle, MarkerSize = 2, Format = "{Value}" }
?
If I am using two chart series to display the one logical series -- two questions:
how do I get one, but not the other, to appear in the legend?
How do I ensure that the color is the same for both? (I have a user selected number of series)
for both I am dynamically populating the series in c# not xaml
In the feature browser for the 3D scatter line chart are used two types of Series. The first one is ScatterLine and the second one is Scatter. This is why it seems like there are markers. If this covers your scenario, I suggest you use the same approach.
If you need any further clarification on this matter do not hesitate to ask.