Headline
CVE-2021-4325: Release v4.2.0 · nhn/tui.chart
A vulnerability, which was classified as problematic, has been found in NHN TOAST UI Chart 4.1.4. This issue affects some unknown processing of the component Legend Handler. The manipulation leads to cross site scripting. The attack may be initiated remotely. Upgrading to version 4.2.0 is able to address this issue. The name of the patch is 1a3f455d17df379e11b501bb5ba1dd1bcc41d63e. It is recommended to upgrade the affected component. The identifier VDB-221501 was assigned to this vulnerability.
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’ } } };
No Data Layer(#607)
No Data Text is options for displaying a message like "No data to display".
Default
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!!😭’, }, }
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; }
Bug Fixes
- Fix Cross-Site Scripting Vulnerability (#604, #618) (📣 @arjunshibu Thanks for CONTRIBUTING!)
- Fix the spectrum legend layout was not properly exposed (#626)