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

How to print the chart

4 Answers 489 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Poonam
Top achievements
Rank 1
Poonam asked on 07 Aug 2013, 10:40 PM
Hi,
I am using kendo charts in my application and through the button I am launching a popup to print the chart. Sometimes, the size of the chart is bigger than the content area of the pop up and it shows scrollbars, and beacause of the scrollbars I am not able to print the entire contents of the chart.

 Please let me know how I can resize the chart before printing it.

Thank you,

Poonam

4 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 08 Aug 2013, 11:58 AM
Hello,

Calling redraw() should reset the chart size to the size of the container (the div used to initialize the chart).
Try calling it on the affected instances once the popup is displayed.

    $(".k-chart", popupElement).data("kendoChart").redraw();

I hope this helps.

Regards,
T. Tsonev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Benedict
Top achievements
Rank 1
answered on 11 Aug 2013, 09:38 PM
hi, please im trying to print a chart bu t don't know how...could you help me please?
0
Benedict
Top achievements
Rank 1
answered on 11 Aug 2013, 09:39 PM
hi, im trying to print a column chart, could you please help
0
Iliana Dyankova
Telerik team
answered on 12 Aug 2013, 11:36 AM
Hello Benedict,

I am afraid exporting / printing is out-of-scope of Kendo UI Chart supported features and in order to achieve the desired result you need a custom implementation. For example you could follow the approach suggested in this code library project.

Regards,
Iliana Nikolova
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Charts
Asked by
Poonam
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Benedict
Top achievements
Rank 1
Iliana Dyankova
Telerik team
Share this question
or