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

Help with SVG()

0 Answers 73 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Neil
Top achievements
Rank 1
Neil asked on 08 Oct 2012, 11:00 AM
Hey, could someone please help me with descent peace of code how to save a SVG to file system and then convert it to png, I looked at a lot of samples but couldnt make them work for me.
Any atempt appreciated.
Heres my code for the chart;

$("#chart3").kendoChart({
                        theme: $(document).data("kendoSkin") || "default",
                        dataSource: {
                            transport: {
                                read: {
                                    url: "Data/data.json",
                                    //url: "ChartDataService.svc/DoWork",
                                    dataType: "json"
                                }
                            }                           
                        },
                        title: {
                            text: "Daily Alarm Rate"
                        },
                        legend: {
                            visible: false,
                            position: "top"
                        },
                        seriesDefaults: {
                            type: "scatter",
                            color: "#347C2C",
                            labels: {
                                visible: true,
                                template: "#= series.name #",
                                position: "right"
                            }
                        },


                        series: [{
                            xField: "ChartUpsPerc",
                            yField: "Avg"
                        }],


                        xAxis: {
                            min: 0,
                            labels: {
                                format: "${0}"
                            },
                            title: {
                                text: "Price"
                            }
                        },
                        yAxis: {
                            min: 0,
                            labels: {
                                format: "{0}%"
                            },
                            title: {
                                text: "Performance Ratio"
                            }
                        },
                        tooltip: {
                            visible: true,
                            format: "{0:N0}",
                            template: "Date: ${dataItem.Avg}<BR>Value: ${value}"
                        }
                    });

No answers yet. Maybe you can help?

Tags
Charts
Asked by
Neil
Top achievements
Rank 1
Share this question
or