
Research
/Security News
11 Malicious Go Packages Distribute Obfuscated Remote Payloads
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
highcharts-export-csv
Advanced tools
Highcharts plugin to export the chart data to CSV, XLS or HTML table
This plugin allows the user to export the chart data to various formats and views.
The contents of the plugin is located in the JavaScript file "export-csv.js". This plugin is published under the MIT license, and the license document is included in the repository.
Given the popularity of this plugin, it has been taken in as a Highcharts module since v5.0.11 (2017-05-04), and development will continue in the official Highcharts repo. This means it can be loaded from https://code.highcharts.com/modules/export-data.js and is available with the [https://www.npmjs.com/package/highcharts](Highcharts npm package). Issues should now be reported in the Highcharts repo.
exporting.csv.columnHeaderFormatter
Formatter callback for the column headers. Parameters are item
(the series or axis object), key
(the point key, for example y
or z
), and keyLength
. By default it returns the series name, followed by the key if there is more than one key. For the axis it returns the axis title or "Category" or "DateTime" by default.
exporting.csv.dateFormat
Which date format to use for exported dates on a datetime X axis. See Highcharts.dateFormat.
exporting.csv.itemDelimiter
The item delimiter, defaults to ,
. Use ;
for direct import to Excel.
exporting.csv.lineDelimiter
The line delimiter, defaults to \\n
.
series.includeInCSVExport
Set this to false to prevent an individual series from being exported. To prevent the navigator in a stock chart, set navigator.series.includeInCSVExport
to false.
Chart.getCSV()
Returns the current chart data as a CSV string
Chart.getTable()
Returns the current chart data as a HTML table string, ready to be inserted into the DOM using innerHTML
.
Chart.getDataRows()
Returns the current chart data as a two dimensional array.
Chart.viewData()
Inserts a data table below the chart container.
FAQs
Highcharts plugin to export the chart data to CSV, XLS or HTML table
The npm package highcharts-export-csv receives a total of 937 weekly downloads. As such, highcharts-export-csv popularity was classified as not popular.
We found that highcharts-export-csv demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).