Generate static sparkline server side

4 posts, 0 answers
  1. Matt
    Matt avatar
    9 posts
    Member since:
    Feb 2008

    Posted 15 Jun 2017 Link to this post

    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.
  2. Tsvetina
    Admin
    Tsvetina avatar
    2481 posts

    Posted 19 Jun 2017 Link to this post

    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.
  3. Matt
    Matt avatar
    9 posts
    Member since:
    Feb 2008

    Posted 19 Jun 2017 Link to this post

    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)?
  4. Tsvetina
    Admin
    Tsvetina avatar
    2481 posts

    Posted 21 Jun 2017 Link to this post

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