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!
Hello DLVendor,
Thank you for your post. I have been looking through it and I made a research. I found out that there is not built – in functionality that allows you to set different Marker and Series’s Thickness in 3D mode of the xamChart. Still, in 2D mode, you are able to set these properties.
If you want I can create a feature request on your behalf, so it can be included in one of our future releases.
If you have any further questions on this matter do not hesitate to ask.
In the example in the feature browser the 3d scatter line plot has circle markers identifying the data point. When I am using it, I just get the line, no cricle markers. How do I get the markers to display as they do in the feature browser?
Hello,
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.
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
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}" }
?
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.
Thanks for this -- the legend is hiding but not collapsing the duplicate entries