This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hello We are upgrading an old Windows forms graph to WPF by using your WPF Elements Chart Element. In the old graph the user could choose to display each serie as a line, as dots or as lines and dots. Mark that this is not the same as setting the DashArray on the DataSerie. We want each dot to correspond to a data value. Would it be possible if we just choose to display just the dots to be able to mark the line by clicking on the area between two dots, where the lines is supposed to be? See attached screen shots for more information. Best regards Nicklas |
|
|
Hello Nicklass On a LineSeries, you can display symbols at each data point by setting the SymbolStyle of the LineSeries. In the SymbolStyle, set the Template property to define the look of the symbol. Make sure to also set the margin to center the symbol. For example if your symbol is 8 or 9 pixels wide & high, then you'll want a margin of -4,-4,4,4 to push the symbol to be centered at the render position. We have examples of apply symbol styles in the SampleExplorer. To hide a line, you can set the LineStyle property of the LineSeries to be a custom style that sets the visibility, opacity or stroke to hide the line. Let me know if you have questions about doing any of this. -Jason Fauchelle |
|
|
It will be extremely slow if you put a symbol to a line series as long as the number of data points more 200. (it is slower to draw scatter series and a line at the same time with the same data) Is it possible for performance improvement on this? I know Jason put a lot of efforts to improve the line series without symbol a lot. Gordon |
|
|
It may be possible to improve performance by providing a way to manually render shapes directly, rather than setting a template. This would of course however remove all interactions with points - selection, tooltips etc. And the API would not be very convenient to use compared to using WPF templates. This is on my backlog, but it could be a while before I can look at this. -Jason Fauchelle |
|
|
Thanks, Jason. But the tooltip is one of the important thing for us to care and point selections is the other thing we want... |
|