-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
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
Chart height grows indefinitely when width and height are set to 'auto' #551
Comments
I checked the issue. Thanks for the bug reporting! This bug will be fixed and released soon. |
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! |
Hi, sorry for the delay. I just checked, and when setting height and width to 'auto', and the container height and width to 100%, the chart still grows indefinitely See snippet that i used at 'https://nhn.github.io/tui.chart/latest/tutorial-example06-01-column-chart-basic' const el = document.getElementById('chart-area');
el.style.width = '100%';
el.style.height = '100%';
const data = {
categories: ['Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
series: [
{
name: 'Budget',
data: [5000, 3000, 5000, 7000, 6000, 4000, 1000],
},
{
name: 'Income',
data: [8000, 4000, 7000, 2000, 6000, 3000, 5000],
},
{
name: 'Expenses',
data: [4000, 4000, 6000, 3000, 4000, 5000, 7000],
},
{
name: 'Debt',
data: [3000, 4000, 3000, 1000, 2000, 4000, 3000],
},
],
};
const options = {
chart: { title: 'Monthly Revenue', width: 'auto', height: 'auto' },
};
const chart = toastui.Chart.columnChart({ el, data, options }); |
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! |
Even today, this issue is still present |
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! |
This issue will be closed due to inactivity. Thanks for your contribution! |
Describe the bug
Setting width and height to 'auto', the chart height grows indefinitely
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Height should not grows indefinitely
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Probably infinite loop chart resizes container -> container resizes chart
The text was updated successfully, but these errors were encountered: