All Projects → nhn → toast-ui.vue-chart

nhn / toast-ui.vue-chart

Licence: MIT license
Toast UI Chart for Vue

Programming Languages

Vue
7211 projects
javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to toast-ui.vue-chart

uncharted
No description or website provided.
Stars: ✭ 31 (-41.51%)
Mutual labels:  chart
animatedcharts
Animated Charts with R using gganimate or plot.ly - Updated to new gganimate version
Stars: ✭ 15 (-71.7%)
Mutual labels:  chart
PieCharts
Easy to use and highly customizable pie charts library for iOS
Stars: ✭ 501 (+845.28%)
Mutual labels:  chart
wp-statistics
Complete WordPress Analytics and Statistics for your site!
Stars: ✭ 83 (+56.6%)
Mutual labels:  chart
chartkick
Create beautiful JavaScript charts with one line of Clojure
Stars: ✭ 22 (-58.49%)
Mutual labels:  chart
jquery-linechart
JQuery plugin for creating charts
Stars: ✭ 42 (-20.75%)
Mutual labels:  chart
Chart.js
Simple HTML5 Charts using the <canvas> tag
Stars: ✭ 55,646 (+104892.45%)
Mutual labels:  chart
git-pretty
🤖 A helpful CLI for your git troubles!
Stars: ✭ 29 (-45.28%)
Mutual labels:  chart
datart
Datart is a next generation Data Visualization Open Platform
Stars: ✭ 1,042 (+1866.04%)
Mutual labels:  chart
chartjs-chart-timeline
Google-like timeline chart for Chart.js.
Stars: ✭ 44 (-16.98%)
Mutual labels:  chart
chart
📊📉 Add beautiful and reusable charts with one line of ruby for Rails 5.x
Stars: ✭ 42 (-20.75%)
Mutual labels:  chart
multi-chart
lit-element building blocks for charts and visualization (based on d3.js v5)
Stars: ✭ 24 (-54.72%)
Mutual labels:  chart
awesome-dataviz
📈 A curated list of awesome data visualization libraries and resources.
Stars: ✭ 3,153 (+5849.06%)
Mutual labels:  chart
Customizable-Crypto-Currency-Dashboard-with-Chart
📺 A Dashboard with the price movements of the selected Cryptocurrencies 💹
Stars: ✭ 79 (+49.06%)
Mutual labels:  chart
helm-postgresql
Helm Chart for postgresql
Stars: ✭ 35 (-33.96%)
Mutual labels:  chart
chartjs-plugin-datasource-prometheus
Chart.js plugin for Prometheus data loading
Stars: ✭ 77 (+45.28%)
Mutual labels:  chart
open-source-monthly
📊 A dashboard for org open source activity
Stars: ✭ 29 (-45.28%)
Mutual labels:  chart
area3d vis
3D Graph Visualization for Kibana 5
Stars: ✭ 28 (-47.17%)
Mutual labels:  chart
sprite
🖌 Draw charts in code. Render in real-time. Embed anywhere as .png.
Stars: ✭ 202 (+281.13%)
Mutual labels:  chart
Chart.js-Rounded-Bar-Charts
Rounded Rectangles in Bar Charts
Stars: ✭ 48 (-9.43%)
Mutual labels:  chart

⚠️Notice: This repository is deprecated️️️️️

TOAST UI Chart Vue Wrapper has been managed separately from the TOAST UI Chart repository. As a result of the distribution of these issues, we decided to deprecated each wrapper repository and manage repository as a mono-repo from the TOAST UI Chart repository.

From now on, please submit issues or contributings related to TOAST UI Vue Wrapper to TOAST UI Chart repository. Thank you🙂.

TOAST UI Chart for Vue

This is Vue component wrapping TOAST UI Chart.

vue2 github version npm version license PRs welcome code with hearth by NHN

🚩 Table of Contents

Collect statistics on the use of open source

Vue Wrapper of TOAST UI Chart applies Google Analytics (GA) to collect statistics on the use of open source, in order to identify how widely TOAST UI Chart is used throughout the world. It also serves as important index to determine the future course of projects. location.hostname (e.g. > “ui.toast.com") is to be collected and the sole purpose is nothing but to measure statistics on the usage. To disable GA, use the following usageStatistics options when declare Vue Wrapper compoent.

var options = {
    ...
    usageStatistics: false
}

Or, include tui-code-snippet.js (v1.4.0 or later) and then immediately write the options as follows:

tui.usageStatistics = false;

💾 Install

Using npm

npm install --save @toast-ui/vue-chart

📊 Usage

Load

You can use Toast UI Chart for Vue as moudule format or namespace. When using module format, you should load tui-chart.css in the script. Also, map files are not included, so if you want to use a map chart, you have to import map files in the same way.

  • Using Ecmascript module

    import 'tui-chart/dist/tui-chart.css'
    import { barChart, lineChart } from '@toast-ui/vue-chart'
  • Using Commonjs module

    require('tui-chart/dist/tui-chart.css');
    var toastui = require('@toast-ui/vue-chart');
    var barChart = toastui.barChart;
    var lineChart = toastui.lineChart;
  • Using namespace

    var barChart = toastui.barChart;
    var lineChart = toastui.lineChart;
  • Using map files

    import 'tui-chart/dist/maps/south-korea';
    import { mapChart } from '@toast-ui/vue-chart'

Components

You can use all kinds of charts in tui.chart. Vue Components for each chart types are:

  • barChart
  • columnChart
  • lineChart
  • areaChart
  • bubbleChart
  • scatterChart
  • pieChart
  • comboChart
  • mapChart
  • heatmapChart
  • treemapChart
  • radialChart
  • boxplotChart
  • bulletChart

Implement

  1. If you want to use barChart, insert <bar-chart> in the template or html. data prop is required.

    <bar-chart :data="chartData"/>
  2. Load chart component and then add it to the components in your component or Vue instance.

    If you want to use barChart, implement like this:

    import 'tui-chart/dist/tui-chart.css'
    import { barChart } from '@toast-ui/vue-chart'
    
    export default {
        components: {
            'bar-chart': barChart
        },
        data() {
            return {
                chartData: { // for 'data' prop of 'bar-chart'
                    categories: ['July', 'Aug', 'Sep', 'Oct', 'Nov'],
                    series: [
                        {
                            name: 'Budget',
                            data: [3000, 5000, 7000, 6000, 4000]
                        },
                        {
                            name: 'Income',
                            data: [1000, 7000, 2000, 5000, 3000]
                        }
                    ]
                }
            }
        }
    }

    or

    import 'tui-chart/dist/tui-chart.css'
    import { barChart } from '@toast-ui/vue-chart'
    
    new Vue({
        el: '#app',
        components: {
            'bar-chart': barChart
        },
        data() {
            return {
                chartData: { // for 'data' prop of 'bar-chart'
                    categories: ['July', 'Aug', 'Sep', 'Oct', 'Nov'],
                    series: [
                        {
                            name: 'Budget',
                            data: [3000, 5000, 7000, 6000, 4000]
                        },
                        {
                            name: 'Income',
                            data: [1000, 7000, 2000, 5000, 3000]
                        }
                    ]
                }
            }
        }
    });

Props

You can use data, options, theme props for initailize tui.chart.

If you want to use other maps, you should use map prop.

For more detail with example, see Getting-Started

Name Type Required Description
data Object O This prop is for data of the chart. When you change data, chart is rendering for changing data.
options Object X This prop is for options of tui.chart. You can configuration about chart.
theme Object X This prop can change theme of the chart.
map Object X If you want to use other maps, you set Object that is required name and value.

Event

For more detail with example, see Getting-Started

Name Description
load This event occurs when the chart is loaded, except options has showLabel: true in the series.
selectLegend This event occurs when the label of legend is clicked.
selectSeries This event occurs when options has allowSelect: true in the series and then the series is selected.
unselectSeries This event occurs when options has allowSelect: true in the series and then the series is unselected.
beforeShowTooltip This event occurs before tooltip show.
afterShowTooltip This event occurs after tooltip show.
beforeHideTooltip This event occurs before tooltip hide.
zoom This event occurs when change rate of zoom.
changeCheckedLegends This event occurs when the legend's checkbox changes.

Method

For use method, first you need to assign ref attribute of element like this:

<bar-chart ref="tuiBarChart" data="chartData"/>

After then you can use methods through this.$refs. We provide invoke method. You can use invoke method to call the method of tui.chart. First argument of invoke is name of the method and second argument is parameters of the method.

this.$refs.tuiBarChart.invoke('resize', {
    width: 500,
    height: 500
});
const checkedLegend = this.$refs.tuiBarChart.invoke('getCheckedLegend');

In the api document, check the methods for each chart type.

🔧 Pull Request Steps

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/{your-personal-repo}/[[repo name]].git
$ cd [[repo name]]
$ npm install

Develop

Let's start development!

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.

📙 Documents

💬 Contributing

📜 License

This software is licensed under the MIT © NHN.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].