GithubHelp home page GithubHelp logo

hhy5277 / tui.chart Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nhn/tui.chart

0.0 2.0 0.0 25.18 MB

๐Ÿž๐Ÿฏ Beautiful chart for data visualization.

Home Page: http://ui.toast.com/tui-chart/

License: MIT License

JavaScript 98.06% CSS 1.94%

tui.chart's Introduction

Toast UI Chart

๐Ÿž๐Ÿ“ˆ Spread your data on TOAST UI Chart. TOAST UI Chart is Beautiful Statistical Data Visualization library

GitHub release npm bower GitHub license PRs welcome code with hearth by NHN Entertainment

chart_animation all

๐Ÿšฉ Table of Contents

๐ŸŒ Browser Support

Chrome Chrome Firefox Firefox Safari Safari Edge Edge IE Internet Explorer
Yes Yes Yes Yes 8+

๐ŸŒˆ True Cross Browser Charts And It's Beautiful!

IE8 CHROME
IE8 CHROME

No one like the legacy. But sometimes it matters. That is why we started this project. As we couldn't find a project which supporting legacy browsers, maintained reliably, and free for commercial use.

You can see the charts in IE8 exactly as it looks in Chrome. Of course, there are other projects that support the legacy browser. However, They may have limited functions, look different or require polyfill that negatively affects performance. The TOAST UI Chart guarantees an identical look for all browsers. ToastUI uses the native browser formats, such as SVG and RVML. So, it requires no polyfill and draws faster.

The TOAST UI Chart will continue to support legacy browsers as MIT license No wonder the other open source charts stop supporting legacy browsers. It's hard to find open-source charts which are reliably maintained. And some of the decent charts ask commercial licenses. The TOAST UI Chart has over 50 releases since Jun. 2015 under MIT License. The TOAST UI Chart is the answer if you have same requirements as us.

๐ŸŽจ Features

The TOAST UI Chart is an open source JavaScript library that can be used in legacy browsers including IE8. It is intuitive and easy to apply without any other learning. If you like, you can change the chart in detail using many options and custom themes.

Single Charts

The TOAST UI Chart provides many kinds of charts to visualize the various form of data.

Bar
Column
Line
Area
Radial
Bubble
Scatter
Pie(General)
Pie(Donut)
2018-03-13 10 33 49 2018-03-13 10 44 51 2018-03-13 10 46 31 2018-03-13 10 43 07
Heatmap
Treemap
Map Boxplot Bullet
2018-03-13 10 47 56 2018-03-13 10 51 01 2018-03-13 10 59 27 2018-03-13 11 01 46

Combo Charts

The TOAST UI Chart covers even more complex data visualization.

Column-Line Pie-Donut Line-Area Line-Scatter
2018-03-13 11 04 48 2018-03-13 11 06 16 2018-03-13 11 07 44 2018-03-13 11 19 42

Customize

Sometimes you may want more options to cover how to visualize data. Then try to customize the detail of the charts. You can change almost everything you see.

Various expressions Custom theme Stack option Diverging option Group tooltip
2018-03-13 11 43 13 2018-03-13 11 40 43 2018-03-13 11 44 15 2018-03-13 11 45 15 2018-03-13 11 46 39

And More From Examples

Check out Example and wiki to discover more.

๐Ÿ’พ Install

The TOAST UI products can be used by using the package manager or downloading the source directly. However, we highly recommend using the package manager.

Via Package Manager

The TOAST UI products are registered in two package managers, npm and bower. You can conveniently install it using the commands provided by each package manager. When using npm, be sure to use it in the environment Node.js is installed.

npm

$ npm install --save tui-chart # Latest version
$ npm install --save tui-chart@<version> # Specific version

bower

$ bower install tui-chart # Latest version
$ bower install tui-chart#<tag> # Specific version

Download Source Files

๐Ÿ”จ Usage

HTML

Add the container element where TOAST UI Chart will be created.

<div id="chart"></div>

JavaScript

Load

The TOAST UI Chart can be used by creating an instance with the constructor function. To get the constructor function, you should import the module using one of the following three ways depending on your environment.

var chart = tui.chart; /* namespace */
var chart = require('tui-chart'); /* CommonJS in Node.js */
import {chart} from 'tui-chart'; /* ES6 in Node.js */

Factory function needs three paramters: container, data, options

  • Container: Wrapper HTMLElements that will contain charts as a child
  • data: numeric data need to make charts
  • options: functional options like legend aligment or tooltip visiblities
var container = document.getElementById('chart-area');
var data = {
    category: [...], series: [...]
};
var options = {
    chart: {width: 700, height: 400}
};

chart.barChart(container, data, options);

See details for additional informations.

๐Ÿ”ง Development

The TOAST UI products are open source, so you can create a pull request(PR) after you fix issues. Run npm scripts and develop yourself with the following process.

Setup

Fork develop branch into your personal repository. Clone it to local computer. Install node modules. Before starting development, you should check to haveany errors.

$ git clone https://github.com/{username}/tui.chart.git
$ cd tui.chart
$ npm install
$ npm run test

Develop

Let's start development! You can see your code is reflected as soon as you saving the codes by running a server. Don't miss adding test cases and then make green rights.

Run webpack-dev-server

$ npm run serve
$ npm run serve:ie8 # Run on Internet Explorer 8

Run karma test

$ npm run test

Pull Request

Before PR, check to test lastly and then check any errors. If it has no error, commit and then push it!

For more information on PR's step, please see links of Contributing section.

Pull requests

Before PR, check build lastly and then check any errors. If it has no error, commit and then push it!

$ npm run deploy
$ npm run test

๐Ÿ“™ Documents

You can also see the older versions of API page on the releases page.

๐Ÿ’ฌ Contributing

๐Ÿž TOAST UI Family

๐Ÿ“œ License

This software is licensed under the MIT ยฉ NHN Entertainment.

tui.chart's People

Contributors

extremefe avatar jinwoo-kim-nhn avatar junghwan-park avatar kyuwoo-choi avatar shiren avatar xjohn600 avatar

Watchers

 avatar  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.