How to print the chart

5 posts, 0 answers
  1. Poonam
    Poonam avatar
    14 posts
    Member since:
    Nov 2012

    Posted 07 Aug 2013 Link to this post

    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
  2. T. Tsonev
    Admin
    T. Tsonev avatar
    2830 posts

    Posted 08 Aug 2013 Link to this post

    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!
  3. Benedict
    Benedict avatar
    6 posts
    Member since:
    Jul 2013

    Posted 11 Aug 2013 Link to this post

    hi, please im trying to print a chart bu t don't know how...could you help me please?
  4. Benedict
    Benedict avatar
    6 posts
    Member since:
    Jul 2013

    Posted 11 Aug 2013 Link to this post

    hi, im trying to print a column chart, could you please help
  5. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2622 posts

    Posted 12 Aug 2013 Link to this post

    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!
Back to Top