react-giojs

0.0.5 • Public • Published

Gio logo

React-Giojs

npm version license badge dependencies badge build coverage

React-Giojs is a react version of the open source library Gio.js, Gio.js is an open source library for data visualization library based on a 3D globe. This library is inspired by the Arms Trade Visualization project developed by Michael Chang and presented during Google Ideas INFO 2012. See original post. What makes Gio.js different is that it is fully customizable for users and friendly to future developers.

Getting Started

Installation

  • Option 1: npm
npm install react-giojs --save
  • Option 2: yarn
yarn add react-giojs

Usage

After install react-giojs, create a Gio tag to render the 3D Gio globe:

import React, {Component} from 'react';
import axios from 'axios';
 
// import gio component from "react-giojs"
 
import Gio from 'react-giojs';
 
class App extends Component {
 
    constructor() {
        super();
 
        this.state = {
            data: null
        };
    }
 
    componentDidMount() {
        axios.get(`../data/sampleData.json`)
            .then(response => this.setState({data: response.data}))
    }
 
    render() {
 
        return (
        
            // add data to "data" attribute, and render <Gio> tag
        
            <Gio data={this.state.data} />
        )
    }
}
 
export default App;
 

If everything goes well, you should see this.

Documentation

Readme

Keywords

none

Package Sidebar

Install

npm i react-giojs

Weekly Downloads

2

Version

0.0.5

License

Apache-2.0

Unpacked Size

2.51 MB

Total Files

12

Last publish

Collaborators

  • giojs