Show values on chart for pdf export

1 Answer 20 Views
Chart
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Marco asked on 02 Apr 2025, 07:25 AM | edited on 02 Apr 2025, 01:10 PM

Hy,

I have the following graph that displays the values ​​when I hover over the column with the mouse:

With the "PDF Export" button highlighted in yellow I export the graph to PDF using the chart API: https://demos.telerik.com/aspnet-core/chart-api/pdf-export

Attached you can find the export in pdf that is created.

How can I display the values ​​of the two series in the pdf file?

Thanks for any help

1 Answer, 1 is accepted

Sort by
0
Accepted
Eyup
Telerik team
answered on 04 Apr 2025, 09:04 AM

Hello Marco,

 

Thank you for reaching out.

You can achieve this requirement by showing the Chart values in the labels:
https://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/chart/configuration/series.labels.template

I have prepared a live sample for your convenience:
https://dojo.telerik.com/GrkNNQCb/7

    labels: {
      visible: true,
      template: "Value: #: value #%"
    },
And the exported PDF file will now contain the column values as well:

Can you please check the sample and let me know if it helps you?

 

Regards,
Eyup
Progress Telerik

Enjoyed our products? Share your experience on G2 and receive a $25 Amazon gift card for a limited time!

Marco
Top achievements
Rank 3
Iron
Iron
Iron
commented on 07 Apr 2025, 06:17 AM

Hy Eyup,

I checked your sample. I had never seen the "visible" boolean property....

Thank you

Tags
Chart
Asked by
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Answers by
Eyup
Telerik team
Share this question
or