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}"
}
});
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}"
}
});