Skip to content

zingchart-demos/zingchart-react-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo for the ZingChart zingchart-react wrapper

This project demonstrates creating and interacting with a ZingChart instance using React. It's written using React 17 function components and hooks.

Running the demo

You'll need an environment with node and npm installed. After cloning this repository:

cd zingchart-react-demo
npm install
npm run start

You should then be able to view the demo in your browser at localhost:3000.

Starting a new project

This project was bootstrapped with Create React App via this sequence of commands:

npx create-react-app zingchart-react-demo
cd zingchart-react-demo
npm install
npm install zingchart-react
npm install react-router-dom
npm run start

Note: ZingChart does not currently list React 17 as a valid dependency, we bypass the error message in the .npmrc file.