score:1
Accepted answer
You could extend Highcharts and wrap the getCSV
function, or edit what happens when you click the Download CSV
menu item.
An example of editing what happens when you click the menu item (JSFiddle):
menuItems: [{
textKey: 'downloadCSV',
onclick: function () {
var csv = this.getCSV(true);
csv += '\n"My source 1","My source 2","My source 3"';
this.fileDownload(
'data:text/csv,\uFEFF' + encodeURIComponent(csv),
'csv',
csv,
'text/csv'
);
}
}]
An example of extending Highcharts (JSFiddle):
(function (H) {
H.wrap(H.Chart.prototype, 'getCSV', function (proceed, useLocalDecimalPoint) {
// Run the original proceed method
result = proceed.apply(this, Array.prototype.slice.call(arguments, 1));
result += '\n"My source 1","My source 2","My source 3"';
return result;
});
}(Highcharts));
Source: stackoverflow.com
Related Query
- Add Source to Highcharts Export CSV
- Highcharts add export as csv
- Highcharts add legend on export
- Highcharts - add additional export options without losing default ones
- How to export CSV and XLS with external button in Highcharts
- export csv from highcharts
- How do i add mouse wheel code in Angular2 highcharts in typescript
- CSV export hidden series in Highcharts
- Filename not assigned to csv export in HighCharts on Mac
- Highcharts add image on export
- Export to CSV button outside chart using Highcharts
- Highcharts series visibility with csv data source
- Highcharts csv export issue
- Highcharts SVG Export from Python Server Side Code
- Dynamically add and remove custom export button in highcharts
- Highcharts remove column defined by keys from export to CSV
- Highcharts xAxis formatter export to csv
- Export Highcharts polar chart csv with categories in place of polar coordinates
- Highcharts - Export CSV include additional data
- Export data from highcharts in csv file with dates in milliseconds
- Run Highcharts on Server side code to add to Word document
- Add text over export button in Highcharts
- Highcharts Export to CSV No Data Grouping
- Highcharts CSV export changes the chart JS object
- How to add flags to highcharts export server when started as a module
- Calling Highcharts export to jpeg but the source is https and exporting is http (security warnings issued by browser)
- Export multiple series from highcharts into CSV
- Export Highcharts code from jsfiddle
- The HighCharts CSV export module went missing
- Add additional data to a Highcharts series for use in formatters
More Query from same tag
- How Can I Hide a Pie Chart's Slice in HighCharts Without Removing It From the Legend?
- create R highchart table with sparkline
- Highchart legends,label are not responsive to mobile mode and it looks too smaller
- How do you add text to the bottom center of legend and bottom center of chart under legend?
- Uncaught TypeError: Cannot read property '0' of undefined javascript error and with highcharts
- Function does not work on first render instead the series is generated after the subsequent renders
- Selecting different types of charts
- Highcharts multi line graphs
- y-axes of Highcharts line chart
- Highchart/ROR - Extract data from database table
- HighCharts: get Y and X value
- Why does this highchart plot not render in IE or chrome?
- Making a master-detail Highchart in Stackoverflow style
- Highcharts show only particular ticks when large number of x-axis ticks
- Highcharts spline dataLabels overlapping
- Represent extreme values on Doughnut chart in SSRS
- highmaps usa county map not coloring counties for Nebraska, New Mexico, or New York
- Show Highcharts tooltip at the bottom of the chart in responsive mobile version
- Highcharts - CUSTOM DATA LABELS in line series, are disappearing on window resize
- Highcharts pie with a single value in %
- How to export Highcharts with CMYK colors?
- HighCharts reading from CSV basic example
- Implement slider in highcharts
- Highchart stacked column tooltip issue
- Why my radar chart (HighCharts) is not fully filled to its parent container's size?
- Toggling legend text click event in highcharts
- HighCharts - Add dynamic new functions
- Html not rendering chart
- How to achieve Multiple drill down using the Axis Labels
- Google AdWords Location Criterion Id to ISO 3166-2