We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, and thanks for this great project!
Describe the bug
The documentation states that setting colorByCategories to true should create columns with different colors. The documentation does not state that a color parameter is required (https://github.com/nhn/tui.chart/blob/main/apps/chart/src/component/boxSeries.ts#L428).
colorByCategories
color
This throws an error:
Uncaught TypeError: can't access property "toLowerCase", colorName is undefined colorNameToHex https://uicdn.toast.com/chart/latest/toastui-chart.js:8356 getRGBA https://uicdn.toast.com/chart/latest/toastui-chart.js:8384 getSeriesColor https://uicdn.toast.com/chart/latest/toastui-chart.js:30888 renderSeriesModel https://uicdn.toast.com/chart/latest/toastui-chart.js:30453 renderSeriesModel https://uicdn.toast.com/chart/latest/toastui-chart.js:30448 renderSeriesModel https://uicdn.toast.com/chart/latest/toastui-chart.js:30439 render https://uicdn.toast.com/chart/latest/toastui-chart.js:30347 proc https://uicdn.toast.com/chart/latest/toastui-chart.js:16642 timer https://uicdn.toast.com/chart/latest/toastui-chart.js:7437 setTimeout handler*debounced https://uicdn.toast.com/chart/latest/toastui-chart.js:7436 add https://uicdn.toast.com/chart/latest/toastui-chart.js:16650 observer https://uicdn.toast.com/chart/latest/toastui-chart.js:7660 invokeObs https://uicdn.toast.com/chart/latest/toastui-chart.js:7809 invokeObs https://uicdn.toast.com/chart/latest/toastui-chart.js:7808 set https://uicdn.toast.com/chart/latest/toastui-chart.js:7754 store_extend https://uicdn.toast.com/chart/latest/toastui-chart.js:8049 initLegendState https://uicdn.toast.com/chart/latest/toastui-chart.js:16054 dispatch https://uicdn.toast.com/chart/latest/toastui-chart.js:7964 setData https://uicdn.toast.com/chart/latest/toastui-chart.js:14234 dispatch https://uicdn.toast.com/chart/latest/toastui-chart.js:7964 setData https://uicdn.toast.com/chart/latest/toastui-chart.js:33326 <anonymous> pen.js:105
To Reproduce
See https://codepen.io/nicofrand/pen/PoQxPgm
Steps to reproduce the behavior:
chart.setData
true
column
Code:
const el = document.getElementById('chart-area'); const emptyData = { categories: [], series: { column: [], line: [], } }; const data = { categories: ['Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct'], series: { column: [ { name: 'Temp', data: [11.3, 17.0, 21.0, 24.4, 25.2, 20.4, 13.9], colorByCategories: true } ], line: [ { name: 'Average', data: [11, 15.1, 17.8, 19.7, 19.5, 16.5, 12.3], }, ], }, }; const options = { chart: { width: 900, height: 500 }, usageStatistics: false, legend: { visible: false }, exportMenu: { visible: false }, xAxis: { pointOnColumn: true }, yAxis: [ { title: "Temp °", chartType: "line" }, { title: "Average", chartType: "column" } ], series: { line: { showDot: true } }, }; const chart = toastui.Chart.columnLineChart({ el, data: emptyData, options }); chart.setData(data);
Expected behavior
The columns are drawn, each with a different color.
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered:
@nicofrand Sorry for the late reply. I was able to reproduce this issue. I'll check it.
Sorry, something went wrong.
This issue has been automatically marked as inactive because there hasn’t been much going on it lately. It is going to be closed after 7 days. Thanks!
Just adding a comment so that the stale bot does not close it automatically.
Hi,
this is still active!
No branches or pull requests
Hi, and thanks for this great project!
Describe the bug
The documentation states that setting
colorByCategories
to true should create columns with different colors.The documentation does not state that a
color
parameter is required (https://github.com/nhn/tui.chart/blob/main/apps/chart/src/component/boxSeries.ts#L428).This throws an error:
To Reproduce
See https://codepen.io/nicofrand/pen/PoQxPgm
Steps to reproduce the behavior:
chart.setData
withcolorByCategories
set totrue
in thecolumn
serie. (code below)Code:
Expected behavior
The columns are drawn, each with a different color.
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: