File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 107107 chart1 . render ( ) ;
108108 chart2 . render ( ) ;
109109 chart3 . render ( ) ;
110- //CanvasJSDataAsCSV(chart, ["Filename"]); //Filename is optional - defaults to "chart-data"
111- CanvasJSDataAsCSV ( chart1 , "Chart Data" ) ;
112- CanvasJSDataAsCSV ( chart2 , "Chart Data" ) ;
113- CanvasJSDataAsCSV ( chart3 , "Chart Data" ) ;
110+ //CanvasJSDataAsCSV(chart [,"Filename"]); //Filename is optional - defaults to "chart-data"
111+ //chart.exportAsCSV(["Filename"]);
112+ CanvasJSDataAsCSV ( chart1 , "Chart1 Data" ) ; //chart1.exportAsCSV("Chart1 Data");
113+ CanvasJSDataAsCSV ( chart2 , "Chart2 Data" ) ; //chart2.exportAsCSV("Chart2 Data");
114+ CanvasJSDataAsCSV ( chart3 , "Chart3 Data" ) ; //chart3.exportAsCSV("Chart3 Data");
114115}
115116</ script >
116117</ head >
@@ -146,7 +147,8 @@ <h4 id="howtouse">How to Use?</h4>
146147});
147148chart.render();
148149
149- CanvasJSDataAsCSV(chart, "filename");
150+ CanvasJSDataAsCSV(chart[, "filename"]);
151+ //or chart.exportAsCSV(["filename"]);
150152</ code > </ pre >
151153 < h4 > Live Example</ h4 >
152154 < p > Example 1: When exportEnabled property is set to true</ p >
You can’t perform that action at this time.
0 commit comments