@jinwoo-kim-nhn jinwoo-kim-nhn released this Oct 12, 2018 · 1 commit to master since this release

Assets 2

Added

  • Added setData api - you can change the data in the chart and draw it.

    //...
    var chart = tui.chart.barChart(data);
    
    chart.setData({
        categories: ['June', 'July', 'Aug', 'Sep', 'Oct', 'Nov'],
        series: [
            {
                name: 'Budget',
                data: [5000, 3000, 5000, 7000, 6000, 4000],
                visible: false
            },
            {
                name: 'Income',
                data: [8000, 1000, 7000, 2000, 5000, 3000]
            }
        ]
    });
  • Added getCheckedLegend api - you can to be know legend checkbox state.

    //...
    var chart = tui.chart.barChart(data);
    
    var checkedLegendInfo = chart.getCheckedLegend();
    
    console.log(checkedLegendInfo);
  • Added changeChecedLenged event as a public event.

    //...
    var chart = tui.chart.barChart(data);
    
    chart.on('changeCheckedLegends', function(info) {
      console.log(info);
    });

Changed

  • Improved ga hostname collection method. (From tui-code-snippet version v1.4.0)

Fixed

  • Fixed a bug that caused data to return to the previous version when the legend checkbox was changed after calling rerender.(rerender API has been deprecated. It is recommended to use setData api instead.)