This is a migrated thread and some comments may be shown as answers.

Loss of styling options when changing render options to bitmap

2 Answers 137 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Jeremy
Top achievements
Rank 1
Jeremy asked on 27 Nov 2019, 04:54 PM

I have created a chart with dynamically populated data that needs to hold thousands of data points.  For performance, I wanted to set the renderoptions on a lineseries to bitmap rendering instead of the default xaml rendering.  However, when switching to bitmap rendering, I lose the ability to set the strokeshapestyle on the line series.  It appears that the dashed line I was expecting to see is replaced with a solid line.  I knew that I would lose the ability to set the line thickness in bitmap rendering.  Do I also lose any ability to style the stroke of the line?

Thank you for any help you can provide.

2 Answers, 1 is accepted

Sort by
0
Accepted
Martin Ivanov
Telerik team
answered on 02 Dec 2019, 11:11 AM

Hello Jeremy,

Indeed, the lightweight render options of the chart come with few limitations. One is that the stroke thickness and dash array of the line cannot be changed when the BitmapRenderOptions are used. To resolve this and preserve the StrokeShapeStyle, you can use the Direct2DRenderOptions instead of the bitmap ones. Can you please try this and let me know how it goes?

Regards,
Martin Ivanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Jeremy
Top achievements
Rank 1
answered on 03 Dec 2019, 04:01 PM
Thank you for the prompt response Martin.  I changed to the Direct2D and was able to successfully set the strokeshapestyle.  Thank you!
Tags
ChartView
Asked by
Jeremy
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Jeremy
Top achievements
Rank 1
Share this question
or