Hello,
Could someone point me in the right direction for adding a line chart to a PDF.
In the past I've rendered charts in a browser and exported the image so I can drop it into a PDF document. This requires user interaction to load the page into a browser in order to render the chart.
I am keen to understand if I can utilise some of the Telerik chart functionality to render a chart when the PDF is generated (I'm currently using RadFixedDocument) - or is it a case of actually drawing the chart?
Thanks
Chris
5 Answers, 1 is accepted
Hi Chris,
What is the type of application that you are currently using?
Although our library has an API for drawing various objects and it is possible to draw a chart manually, there is no functionality that will allow you to draw an entire chart by using the data. I believe that your current approach is ok and you can continue using it. Another approach will be to use one of the desktop suites (WPF or WinForms) to export the chart to an image and create the PDF. For example here is how you can export the WPF chart to an image: WPF ChartView Export.
I hope this helps. Should you have any other questions do not hesitate to ask.
Regards,
Dimitar
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Hi Dimitar,
Thanks for the info. We're using a mix - RadCartesianChart in a Xamarin app and Kendo Chart for browser based so could potentially save the image when it is rendered in the device or browser.
To save time I'll use a 3rd party API for the chart image as it needs to generated by a service rather than a user interaction.
Hello Chris,
Ok, I am glad that you have a solution for your case. Can you share which library are you using for this?
Do not hesitate to contact us if you have other questions.Regards,
Dimitar
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Hi Chris,
Thank you for sharing this with us. Indeed it looks like a good library for this.
Do not hesitate to contact us if you have other questions.
Regards,
Dimitar
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.