Coder Social home page Coder Social logo

rja71 / export-csv Goto Github PK

View Code? Open in Web Editor NEW

This project forked from highcharts/export-csv

0.0 1.0 0.0 73 KB

Highcharts plugin to export chart data to CSV

Home Page: http://www.highcharts.com/plugin-registry/single/7/Export-CSV

License: MIT License

JavaScript 100.00%

export-csv's Introduction

export-csv

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.

Demos

Options

  • exporting.csv.columnHeaderFormatter Formatter callback for the column headers. Parameters are series (the series 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.

  • 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.

Methods

  • 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.

export-csv's People

Contributors

torsteinhonsi avatar siralexiner avatar stegano avatar jon-a-nygaard avatar mzagol avatar a---- avatar felixfbecker avatar ulrik59 avatar raunakkathuria avatar vicgarcia avatar d-nation avatar oysteinmoseng avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.