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

Chart SVG generated is not renedering as it is

2 Answers 14 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.
Amol
Top achievements
Rank 1
Amol asked on 27 Sep 2012, 07:57 AM
Hello There,

I am trying to export the Chart to image format.

For that, I am taking SVG format from js script as follows

 

 

var chart = $('#CurrentPieChart').data('tChart');

 

 

 

var svg = chart.svg();

 


and the svg generated is as follows

<svg xmlns='http://www.w3.org/2000/svg' version='1.1' width='300px'
height='180px'>
<path d='M0 0 300 0 300 180 0 180 z'  stroke=''   stroke-width='0'  stroke-linecap='square' stroke-linejoin='round' fill-opacity='1' stroke-opacity='1'
fill='none'></path><path d='M5 5 295 5 295 175 5 175 z'   stroke-linecap='square' stroke-linejoin='round' fill-opacity='1' stroke-opacity='1' fill='none'>
</path><path d='M5 5 295 5 295 175 5 175 z'  stroke=''   stroke-linecap='square' stroke-linejoin='round' fill-opacity='1' stroke-opacity='1' fill='none'>
</path>
<g></g>
</svg>


I copied this and try to render it as itis on w3school, and seems its not showing anything.
Am I missing something ? Please help.
Thanks.

2 Answers, 1 is accepted

Sort by
0
Hristo Germanov
Telerik team
answered on 27 Sep 2012, 08:26 AM
Hi Amol,

Unfortunately I am not able to reproduce this issue locally. Could you please send us a simple test project which reproduces the depicted issue? Thus I will be able to observe the problem and advice you further.

Regards,
Hristo Germanov
the Telerik team
Check out the successor of Telerik MVC Extensions - Kendo UI for ASP.NET MVC - and deem it for new ASP.NET MVC development.
0
Amol
Top achievements
Rank 1
answered on 27 Sep 2012, 12:32 PM
wohoooo... It was becuase I was taking the svg in load event.
I got the image exported successfully. Only problem is lengend text is not appearing. But I will work on it, will get back to same post if Have issues.

Thanks.
Tags
Chart
Asked by
Amol
Top achievements
Rank 1
Answers by
Hristo Germanov
Telerik team
Amol
Top achievements
Rank 1
Share this question
or