I have an ultradatachart with several LineSeries. I would like one of the series to have a dashed line instead of a solid line. I haven't been able to locate any property like LineStyle for the series.
I need this to work. Is there any way to change the line style for a line series?
Hello James,
Thank you for contacting Infragistics Developer Support.
I have been investigating into this behavior you are looking to achieve, and the UltraDataChart is essentially meant to be a port of the XamDataChart control from our WPF toolset in that it will work the same way, but it has not yet reached full parity. At the moment, a dash array for the LineSeries in the UltraDataChart is not a supported feature and in order to ensure it gets implemented, I would recommend suggesting a new product idea for this at our Windows Forms Ideas Site. This will place you in direct communication with our product management teams who plan and prioritize upcoming features and development based on community and user feedback.
The best workaround I can recommend in this case is to host the WPF XamDataChart in your Windows Forms application as the series in this chart support a dash array. You can read about how to host a WPF control in Windows Forms at this article.
Please let me know if you have any other questions or concerns on this matter.
Sincerely, Andrew Goldenbaum Software Developer
Andrew,
Thank you for your reply.I am actually using the ultradatachart to create an image to be placed into a PDF report. I am able to create an ultradatachart without having to use a Winform - can the XamDataChart be created the same way?
I would like you to take a look at the sample project that I am attaching, which shows how you can render a XamDataChart into an image without placing it on a Form in a Windows Forms project.
Essentially, the XamDataChart calls its Measure(), Arrange(), and Flush() methods prior to being rendered into a RenderTargetBitmap. From the RenderTargetBitmap, you can create an image or save it out to an image like is done in the sample project.
I hope this helps you. Please let me know if you have any other questions or concerns on this matter.
DataChartHostImage.zip