Hi, i'm trying to use xamDatachart using the LineSeries. I've set the thickness to 1 but it's still too thick a line to use. Using snoop i can see that 3 paths are actually created 1 with a fill and 2 with stroke applied. If remove the fill line and 1 of the path lines i get to what i want, an actual thin line.
I've attached 2 screenshots of before and after hiding the extra 2 paths.
Is there anyway to access these lines and remove them?
Hello Gleb,
Thank you for your post!
I have been looking into it. There are three paths in the LineSeries, currently only one of them is drawing the Series. Using a Snoop, when you hover over the Paths you would be able to see, that only one of them draws the line of the LineSeries.
What I can suggest is to set the Thickness property to a smaller value than 1. For example - 0.5. One other thing I can suggest is to set the Resolution property of the Series. More about this property you can find on the following links:
http://help.infragistics.com/Help/Doc/WindowsPhone/2012.1/CLR4.0/html/xamDataChart_Chart_Performance.html,
http://www.infragistics.com/community/blogs/kiril_matev/archive/2011/04/07/tuning-the-xamdatachart-for-blazing-fast-charting.aspx.
Please do not hesitate to let me know if you have any further questions on this matter.
Thanks for the response Gergana.
All 3 lines are definitely being used, the two screenshots I made are from me changing the visibility of the lines via snoop.
In snoop we see:
Path - Fill set to a brush, no stroke
Path - Stroke set to a brush and thickness set to 1
All 3 paths have a slightly different data set as well.
I've also checked the WPF samples and we can see in the "Binding High Volume Data" sample it's quite obvious that 3 lines are being used.
Thanks.
I've investigated a bit more and the 3 lines are only visible when using a CategoryDateTimeXAxis, if i switch to CategoryXAxis only 1 line is used but the graph is incorrect as our data is not evenly spaced.
Thanks
I have been looking into your issue.
The three paths are used when you have large data and multiple points on one place. This is created for optimization of the XamDataChart performance.
Currently, the best way to reduce the thickness of the line is by setting the Resolution property of the Series. Using this property more points would be rendered on the XamDataChart and the line would be more thinner.
Please note, that the Resolution property is created for optimizing the performance of the XamDataChart and by setting it there might be a cause a slowing down of the rendering of the XamDataChart. More about the Resolution property you can find on the following link from our documentation: http://help.infragistics.com/Help/Doc/WPF/2014.1/CLR4.0/html/InfragisticsWPF4.Controls.Charts.XamDataChart.v14.1~Infragistics.Controls.Charts.Series~Resolution.html.
I have implemented the above mentioned scenario for you in a small sample application. Please find the attachment and feel free to let me know if you have any further questions on this matter.
Thanks Gergana, we are already setting the resolution to 0 and this was when the line was too thick and losing detail compared with other graphing libraries.