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

Generate static sparkline server side

3 Answers 16 Views
Sparkline
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 15 Jun 2017, 01:47 PM
Is there a way to generate a static sparkline chart on the server? I'd like to include a sparkline in a system-generated email.

3 Answers, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 19 Jun 2017, 01:21 PM
Hello Matt,

The Kendo UI code runs on the client, even when the MVC helpers are used. What they do is render the initialization scripts for the widgets on the client (explanation available here). This being said, there is no server-side representation of the Sparkline available. 
One possibility would be to generate the Sparkline on the client and export it to an image format (identical exportImage method is available for the Sparkline). Then, send the image to the server for further use. Possible implementation has been shown in this forum post.

Regards,
Tsvetina
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Matt
Top achievements
Rank 1
answered on 19 Jun 2017, 01:25 PM
Are there any other SKUs that can accomplish this, like Telerik Reporting or UI for WinForms (e.g. offer an export to jpeg option after programmatically generating the control)?
0
Tsvetina
Telerik team
answered on 21 Jun 2017, 08:17 AM
Hello Matt,

You should be able to use Telerik Reporting to create a Chart in-memory and then export it on the server. However, I would advise you to also ask about this in the Telerik Reporting forums to get confirmation if this approach is feasible.

Regards,
Tsvetina
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Sparkline
Asked by
Matt
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Matt
Top achievements
Rank 1
Share this question
or