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

Sparkline dots hidden by CSS are visible in PDF export

1 Answer 47 Views
Sparkline
This is a migrated thread and some comments may be shown as answers.
Coding Machine
Top achievements
Rank 2
Iron
Coding Machine asked on 09 Apr 2015, 06:43 PM

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 - http://dojo.telerik.com/@dimaka/OqehE 

Also please see the screenshot attached. 

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

Thank you!

1 Answer, 1 is accepted

Sort by
0
Mihai
Telerik team
answered on 13 Apr 2015, 01:11 PM
Hello,

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.

Regards,
Mihai
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Sparkline
Asked by
Coding Machine
Top achievements
Rank 2
Iron
Answers by
Mihai
Telerik team
Share this question
or