data-forge-to-highstock
v0.0.18
Published
Data-Forge plugin for transforming data to the Highstock format.
Downloads
24
Maintainers
Readme
data-forge-to-highstock
Data-Forge plugin for transforming data to the Highstock format.
Installation
You need Data-Forge to use this plugin.
For Nodejs:
npm install --save data-forge-to-highstock
For the browser:
bower install --save data-forge-to-highstock
Setup
For Nodejs:
var dataForge = require('data-forge');
dataForge.use(require('data-forge-to-highstock'));
For the browser:
<script src="bower_components/data-forge/data-forge.js"></script>
<script src="bower_components/data-forge-to-highstock/to-highstock.dist.js"></script>
Usage
var dataFrame = ... some data ...
var highstockData = dataFrame.toHighstock();
Or
var highstockData = dataFrame.toHighstockOHLC();
You now use highstockData
as an input to your Highstock chart.
For more information
Please see the related article about graphing financial data with Data-Forge and Highstock.