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
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!
Thank you for contacting us. In short, the 0 indexed value shouldn’t be considered as a series name but setting the label option with 0 makes it possible.
Internal note
It comes from the SeriesBuilder’s read function, more precisely from the below piece of code that is responsible for removing index of the x property. Setting any custom parameter with 0 index makes it still considered when looking for an index of a name.
if (typeof this.name === 'undefined' && builder.readers.length >= 2) {
columnIndexes = builder.getReferencedColumnIndexes();
if (columnIndexes.length >= 2) {
// remove the first one (x col)
columnIndexes.shift();
// Sort the remaining
columnIndexes.sort(function(a, b) {
return a - b;
});
// Now use the lowest index as name column
this.name = columns[columnIndexes.shift()].name;
}
}
Hi, could we get back to the topic, since this is currently a big blocker in our project.
I've prepared the jsfiddle demo (https://jsfiddle.net/rs4vLu78/58/) to depict what's the problem, I would expect here to have different labels for series, independently from the seriesMapping contains.
Activity
sebastianbochan commentedon Jan 28, 2019
Hi @kai2468,
Thank you for reporting.
Internal note
@TorsteinHonsi is it a bug or default functionality? I was not able to find any information about it in docs.
stale commentedon Sep 1, 2020
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!
kai2468 commentedon Jan 27, 2021
Any chance this can get looked at?
PaulDalek commentedon Jan 28, 2021
Unstale.
PaulDalek commentedon Jan 28, 2021
Hi @kai2468
Thank you for contacting us. In short, the 0 indexed value shouldn’t be considered as a series name but setting the
labeloption with 0 makes it possible.Internal note
It comes from the SeriesBuilder’s
readfunction, more precisely from the below piece of code that is responsible for removing index of thexproperty. Setting any custom parameter with 0 index makes it still considered when looking for an index of a name.maciejBL commentedon Jan 26, 2023
Hi, could we get back to the topic, since this is currently a big blocker in our project.
I've prepared the jsfiddle demo (https://jsfiddle.net/rs4vLu78/58/) to depict what's the problem, I would expect here to have different labels for series, independently from the
seriesMappingcontains.Fixed #10005, wrong series name and legend item by using seriesMapping.
Fixed #10005, wrong series name and legend item by using seriesMapping.