Closed
Description
Since updating to master, I see the following error when displaying a chart:
Failed to execute query: '#1-clip' is not a valid selector.
I'm pretty sure this is due to pr #733
Digging a bit more, the issue is that the default anchor name starts with a number ... and DOM ids must start with a letter. Making the change below (i.e. changing '' in the last line to 'id') fixes the issue as the id now starts with a letter.
_chart.anchorName = function () {
var a = _chart.anchor();
if (a && a.id) {
return a.id;
}
if (a && a.replace) {
return a.replace('#', '');
}
return 'id' + _chart.chartID();
};