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

[Solved] Create SVG charts on the fly

1 Answer 67 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Christian
Top achievements
Rank 1
Christian asked on 15 May 2012, 12:56 PM
Hi,
I would like to create SVG charts on the fly without views and controllers... Is it possible?
I started creating "new Chart<Model>(...)" but how to initialize ctor parameters?

I have a service, which creates html based emails. Now I want embed an SVG chart into it.

Any suggestions how to do this?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Accepted
T. Tsonev
Telerik team
answered on 16 May 2012, 08:55 AM
Hi,

The actual SVG is generated in the browser and not on the server. Therefore the Chart MVC extension is not directly usable in your scenario.

That said, it's not impossible to generate the graphics on the server. You can take the rendered HTML page and use a headless browser to generate an image out of it. We haven't tried this, but the approach is sound in principle.

I hope this helps.

All the best,
Tsvetomir Tsonev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
Tags
Chart
Asked by
Christian
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or