GithubHelp home page GithubHelp logo

mbjallow6 / zingchart Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zingchart/zingchart

0.0 1.0 0.0 36.9 MB

A declarative, efficient, and simple JavaScript library for building responsive charts

Home Page: https://www.zingchart.com

JavaScript 100.00%

zingchart's Introduction

Build v2.8.8

A declarative, efficient, and simple JavaScript library for building responsive charts. With integrations in Angular, React, Vue, JQuery, PHP, Ember, & Backbone.

Resources:

Install

bower

bower install zingchart

npm

npm install zingchart

cdn

https://cdn.zingchart.com/zingchart.min.js

cdn on cdnjs

https://cdnjs.com/libraries/zingchart

Quick Start es5

Include a reference to the zingchart library

<!DOCTYPE html>
<html>
<head>
  <!--Script Reference [1] -->
  <script src="/zingchart/zingchart.min.js"></script>

</head>
<body>
  <!--Chart Component [2] -->
  <div id="myChart"></div>

  <script>
    let chartData = {
      type: 'pareto',
      series: [
        {
          values: [
            4642,
            4345,
            2350,
            1251
          ]
        }
      ]
    };

    // Render Method[3]
    zingchart.render({ 
      id: 'myChart',
      data: chartData,
      height: 400,
      width: '100%'
    });
  </script>
</body>
</html>

Quick Start es6 Imports

A general best practice to use ZingChart in any of your frameworks is used in the following:

import {zingchart, ZC} from 'zingchart/es6';

And if you have and modules you want to include you do the following

import {pareto} from 'zingchart/modules-es6/zingchart-pareto.min.js';

Quick Start es6 w/Script Modules

<!DOCTYPE html>
<html>
<head>
  <!-- Import Library [1] -->
  <script type="module">
    import {zingchart, ZC} from './zingchart/es6.js';
    import './zingchart/modules-es6/zingchart-pareto.min.js';
  </script>
  <!-- fallback for no module support -->
  <script nomodule src="/zingchart/zingchart.min.js"></script>
</head>
<body>
  <!-- Chart Component [2] -->
  <div id="myChart"></div>

  <script>
    let chartConfig = {
      type: 'pareto',
      series: [
        {
          values: [
            4642,
            4345,
            2350,
            1251
          ]
        }
      ]
    };

    // Render Method[3]
    zingchart.render({ 
      id: 'myChart',
      data: chartConfig,
      height: 400,
      width: '100%'
    });
  </script>
</body>
</html>

Browserify

This package supports the CommonJS module format to be used with bundlers such as Browserify when being used with NPM.

Usage : var zingchart = require('zingchart');

Package Directory

The package includes the following:

|   README.md
├── client
│   ├── zingchart.min.js
│   ├── modules
├── custom
│   ├── build.js
|   ...

Integrations

ZingChart is wrapped in a variety of ways for easy consumption with popular JS libraries and frameworks. Official releases are shown here. If you have a third party integration please contact us for inclusion.

Contextual Demos

We're always working on new demos to help users get started using ZingChart with their framework or database. Take a look at our Demo repo to see if we've covered your toolset. Let us know if we haven't or if you need help with an existing implementation.

Support

If you need any assistance or would like to report any bugs found in ZingChart, please contact us at [email protected] or through our chat client on our website www.zingchart.com

zingchart's People

Contributors

mike-schultz avatar nkang2020 avatar gnardecky avatar jbogartpint avatar nmastracchio avatar damntrecky avatar peterdavehello avatar dspint avatar zingchart-bot avatar bsitruk avatar animaldna avatar tpowell avatar derekfletes avatar

Watchers

James Cloos 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.