Sparkline dots hidden by CSS are visible in PDF export

2 posts, 0 answers
  1. Dmitry Pavlov
    Dmitry Pavlov avatar
    8 posts
    Member since:
    Aug 2010

    Posted 09 Apr 2015 Link to this post

    I have sparklines on my page where I hide all dots except the last one. 

    But when I export these sparklines to PDF - all dots become visible for some reasons..

    I prepared the demo to reproduce this scenario - 

    Also please see the screenshot attached. 

    Please let me know how to keep sparkline dots hidden in exported PDF. 

    Thank you!

  2. Mihai
    Mihai avatar
    153 posts

    Posted 13 Apr 2015 Link to this post


    Unfortunately, I can't see any way to achieve what you need.  The charts are not rendered into PDF by drawing the <svg> element (SVG elements are not supported by the PDF renderer).  When a <svg> element belonging to a Kendo Chart widget is encountered, the widget draws itself directly into PDF, via the drawing API -> PDF backend.  At this stage, any styles you define for the SVG nodes do not apply, because there is no SVG generated.

    Hope this clarifies.

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top