1.20.3 • Published 3 months ago

@dvsl/zoomcharts v1.20.3

Weekly downloads
428
License
SEE LICENSE IN <l...
Repository
github
Last release
3 months ago

ZoomCharts

The world's most interactive data visualization software

Download and install ZoomCharts

Please note that there are several ways to use ZoomCharts. For general installation instructions, see the docs.

Use our CDN

Instead of downloading, you can use our CDN to access files directly. See zoomcharts.com/developers/en/overview/installation.html for details.

<script src="https://cdn.zoomcharts-cloud.com/1/stable/zoomcharts.js"></script>

Install from npm

See npm documentation on how to get started with npm.

npm install --save @dvsl/zoomcharts

Load ZoomCharts as an ES6 module

ZoomCharts can be loaded as an ES6 module with the use of transpilers - Babel and TypeScript.

Babel

import { TimeChart } from "@dvsl/zoomcharts" 

//Generate the chart
var t = new TimeChart({
    //options
})

TypeScript

import * as zc from "@dvsl/zoomcharts"

let TimeChart = zc.TimeChart;

//Generate the chart
var t = new TimeChart({
    //options
})

Build and debug

If you want to do modifications to ZoomCharts or fix issues, you may build your own files. ZoomCharts uses Webpack as the build system.

npm i webpack webpack-cli copy-webpack-plugin --save-dev

Poject structure

.
├── index.html
├── package.json
├── index.js
└── webpack.config.js

Setup package.json file

{
  "name": "zoomcharts-webpack",
  "version": "1.0.0",
  "description": "",
  "main": "./build/bundle.js",
  "scripts": {
    "start": "webpack --config webpack.config.js",
    "webpack": "webpack"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "@dvsl/zoomcharts": "^1.18.4"
  },
  "devDependencies": {
    "copy-webpack-plugin": "^4.5.2",
    "webpack": "^4.15.0",
    "webpack-cli": "^3.0.8"
  }
}

Create webpack.config.js file

const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
module.exports = {
    entry: './index.js',
    output: {
        path: path.resolve(__dirname, 'build'),
        filename: 'bundle.js'
    },
    plugins: [
        new CopyWebpackPlugin([
            {
                from: './node_modules/@dvsl/zoomcharts/lib/assets',
                to: 'assets'
            }
        ])
    ]
};
1.20.3

3 months ago

1.19.2-1

2 years ago

1.19.1-1

2 years ago

1.18.20-nightly

3 years ago

1.19.0-1

3 years ago

1.18.13-nightly

4 years ago

1.18.12

4 years ago

1.18.11-latest

4 years ago

1.18.11-nightly

4 years ago

1.18.11

4 years ago

1.18.11-nigthly

4 years ago

1.18.10

4 years ago

1.18.9-nightly

6 years ago

1.18.8

6 years ago

1.16.5

6 years ago

1.18.5

6 years ago

1.18.4

6 years ago