You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I face the problem when I use chart.data.names to update legend. The top chart x axis is moving up and the second one it was moving down.
It seem to be that whenever we have legend more than one line something wrong with x axis happen. You can simulate my case with the code below.
var chart = c3.generate({
data: {
columns: [
['data1', 30, 200, 100, 400, 150, 250],
['data2', 130, 100, 140, 300, 200, 50],
['data3', 100, 50, 150, 200, 300, 100]
],
type: 'bar'
}
});
setTimeout(function () {
chart.data.names({data1: 'New long long long long long long long long long long long long long long long long long name of data1',
data2: 'New long long long long long long long long long long long long long long long long long name of data2',
data3: 'New long long long long long long long long long long long long long long long long long name of data3'});
}, 2000);
The text was updated successfully, but these errors were encountered:
Hi, I face the problem when I use chart.data.names to update legend. The top chart x axis is moving up and the second one it was moving down.
It seem to be that whenever we have legend more than one line something wrong with x axis happen. You can simulate my case with the code below.
The text was updated successfully, but these errors were encountered: