Skip to content

Releases: nhn/tui.chart

v4.3.1

15 Apr 00:17
Compare
Choose a tag to compare

Bug Fixes

  • Fix the bullet chart scale was not calculated properly(#602, #648)
  • Fix bullet chart with negative values were not drawn correctly(#648)
  • Fix that not reflected when downloading from the export menu after data manipulation(#649)
  • Fix lineScatter chart scale was not calculated properly(#651)
  • Fix the title of the heatmap y-axis was not displayed properly(#644)

v4.3.0

01 Apr 00:42
Compare
Choose a tag to compare

New Features

A new chart type, the Gauge chart announced πŸŽ‰

It supports series options such as clockwise, angleRange, solid, etc. Use these options to display your own charts. This new chart has circularAxis ans plot options. This chart does not support legends..

plot
You can set the range using the plot option.

const options = {
  ...
  plot: {
    bands: [
      { range: [0, 20], color: '#55bf3b' },
      { range: [20, 50], color: '#dddf0d' },
      { range: [50, 110], color: '#df5353' },
    ],
  },
  // using category data
  plot: {
    bands: [
      { range: ['Apple', 'Watermelon'], color: '#df5353' },
      { range: ['Watermelon', 'Grape'], color: '#8700ff' },
      { range: ['Grape', 'Apple'], color: '#ff9800' },
    ],
  },
};
basic using category data
gauge-basic gauge-category-data

series.clockwise options
Determines the direction in which the series is painted.

const chart = new GaugeChart({el, data, {
  ...
  clockwise: false,          // default: true
}});
clockwise counter clockwise
gauge-clockwise gauge-countterclockwise

series.angleRange options
The angleRange uses start and end options to determine the range of the arc.

const chart = new GaugeChart({el, data, {
  ...
  angleRange: {
    start: 45,
    end: 315
  }
}});
apply angleRange with theme
gauge-angleRange gauge-angleRange-with-theme

series.solid options
The solid option is available when there is only one series. If set to solid: true, the a clockhand are not displayed by default. If you want to display the clockhand, set solid.clockHand: true.

const chart = new GaugeChart({el, data, {
  ...
  solid: true
  // or
  solid: {
    clockHand: true // defat: false
  }
}});
with clockHand with dataLabels
gauge-solid-with-theme gauge-solid-with-datalabels

Guide

v4.2.1

30 Mar 07:31
Compare
Choose a tag to compare

Bug Fixes

  • Fix the coordinate chart was not rendered properly.(#641, #628, #634)
  • Fix range plot bands not rendering properly. (#635)
  • Fix chart not rendering properly in webpack5. (#619)
  • Fix the theme was not applied when calling the selectSeries API. (#639)
  • Fix the chart was not drawn properly when setData in the no data state(#629)

v4.2.0

17 Mar 02:07
Compare
Choose a tag to compare

New Features

Legend Item Ellipsis(#614)

Controls the width and overflow options of the legend item. If a value is given to item.width and the overflow setting is not specified, overflow:'ellipsis' is applied.

const options = {
  legend: {
    item: {
      width: 40,
      overflow: 'ellipsis'
    }
  }
};

image

No Data Layer(#607)

No Data Text is options for displaying a message like "No data to display".

Default

image

lang Options

The default text value is "No data to display". Use options.lang.noData when you want to process i18n or change the text.

const options = {
  lang: {
    noData: '😭No Data!!😭',
  },
}

image

theme

The following is a list of themes that can be modified in the No Data Text.

const options = {
  theme: {
    noData: {
      fontSize: 30,
      fontFamily: 'Verdana',
      fontWeight: 'bold',
      color: '#3ee',
    }
  }
}

interface NoDataTheme {
  fontSize?: number;
  fontFamily?: string;
  fontWeight?: string | number;
  color?: string;
}

image

Bug Fixes

  • Fix Cross-Site Scripting Vulnerability (#604, #618) (πŸ“£ @arjunshibu Thanks for CONTRIBUTING!)
  • Fix the spectrum legend layout was not properly exposed (#626)

v4.1.4

09 Mar 01:50
Compare
Choose a tag to compare

Bug Fixes

  • Fix mouse event detect to be correct in scaled area. (#550)
  • Remove the type that is imported and used in the src path. (#609)

v4.1.3

25 Feb 23:52
Compare
Choose a tag to compare

Bug Fixes

  • Fix tooltip and export menu location to be correct in relative position. (#592)
  • Fix the resize event was duplicated. (#600)

v4.1.2

24 Feb 05:55
Compare
Choose a tag to compare

Bug fixes

  • add react-wrapper style props for responsive options(#595)
  • Fix coordinate type hide all series then show a series throws error(#593)

Enhancement

  • radial bar visible data options(#588)

v4.1.1

19 Feb 02:10
Compare
Choose a tag to compare

Bug fixes

  • Fix issue where heatmap series and categories were not synced(#586)

v4.1.0

18 Feb 07:22
Compare
Choose a tag to compare

New Features

A new chart type, the RadialBar chart announced πŸŽ‰

It supports options such as clockwise, angleRange, radiusRange, etc. Use these options to display your own charts. This new chart has circularAxis, verticalAxis. In addition, Radar Chart has improved the concept of the previously ambiguous axis, and uses CircularAxis and verticalAxis.

selectable and eventDetectType options
The selectable option makes the series selectable and defines how to detect the series through the mouse with eventDetectType.

const chart = new RadialBarChart({el, data, {
  series: {
    selectable: true,          // default: false
    eventDetectType: 'grouped' // default: 'point',
  }
}});
point grouped
radialbar-point radialbar-grouped

clockwise options
Determines the direction in which the series is painted.

const chart = new RadialBarChart({el, data, {
  series: {
    clockwise: false,          // default: true
  }
}});
clockwise counter clockwise
radialbar-clockwise radialbar-counterclockwise

angleRange options
The angleRange uses start and end options to determine the range of the arc.

const chart = new RadialBarChart({el, data, {
  ...
  series: {
    angleRange: {
      start: 45,
      end: 315
    }
  }
}});
angleRange with theme
radialBar-angleRange radialbar-angleRange-theme

|

radiusRange options
The radiusRange uses inner and outer options to define the radii of inner and outer circles.

const chart = new RadialBarChart({el, data, {
  series: {
    radiusRange: {
      inner: 50,
      outer: '90%'
    }
  }
}});
radiusRange with theme
radialbar-radiusRange radialbar-radiusrange-theme

Guide

addOutlier API (#557)

Using addOutlier(), you can add new outlier data to the BoxPlot chart.

public addOutlier(seriesIndex: number, outliers: number[][])

/* example */
const boxPlotChart = new BoxPlotChart({ el, data, options });

boxPlotChart.addOutlier(1, [[1, 50], [3, 30]]);

Data visible options

  • Compatible with: Line, Area, LineArea, Bar, Column, ColumnLine, Bullet, BoxPlot, Scatter, LineScatter, Bubble, Pie, NestedPie, Radar

⚠️ RadialBar chart will be supported in 4.1.1

Each series can have visible option. The visible option determines whether the series is displayed when the chart is first drawn. The default is true. Both basic chart and range chart use the same way.

const data = {
  categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
  series: [
    {
      name: 'Seoul',
      data: [20, 40, 25, 50, 15, 45],
      visible: false,
    },
  ],
}

Bug Fixes

  • Fix bug where colors are not properly exposed when there are more than 27 series(#555)
  • Automatically change the legend layout when the number of series is large.(#562)
  • Fix bug where the container's width and height were not specified and when 'auto' was used(#568)
  • Remove alias used when importing types(#561)
  • Fix bug that the position was not properly exposed when scrolling the export menu.(#578)
  • Fix bug where the data of the selected series was not provide selectSeries()(#582)

v4.0.4

03 Feb 23:57
Compare
Choose a tag to compare

Bug Fixes

  • Fixed an error that occurred when calling API right after chart creation. (#558)