Giter VIP home page Giter VIP logo

export-csv's Introduction

export-csv

This plugin allows the user to export the chart data to various formats and views.

Deprecation notice

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 code.highcharts.com and is available with the Highcharts npm package. Issues should now be reported in the Highcharts repo.

Demos

Options

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

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 oysteinmoseng avatar a---- avatar eguitarz avatar felixfbecker avatar ulrik59 avatar raunakkathuria avatar vicgarcia avatar nikini avatar d-nation avatar

Watchers

Huidong Tian 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.