This is a migrated thread and some comments may be shown as answers.
Line Charts on PDF documents
5 Answers 12 Views
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 12 Mar 2021, 06:51 PM

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

Sort by
0
Dimitar
Telerik team
answered on 15 Mar 2021, 12:09 PM

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.

0
Chris
Top achievements
Rank 1
answered on 15 Mar 2021, 01:30 PM

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.  

0
Dimitar
Telerik team
answered on 16 Mar 2021, 07:32 AM

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.

0
Chris
Top achievements
Rank 1
answered on 16 Mar 2021, 09:24 AM
Yep sure - https://www.image-charts.com/ at the moment.
0
Dimitar
Telerik team
answered on 17 Mar 2021, 06:18 AM

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/.

Asked by
Chris
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Chris
Top achievements
Rank 1
Share this question
or