mode / alamode

A community-maintained library of visualizations for Mode reports
MIT License
70 stars 67 forks source link

Chart Annotations don't work with the "Group By" chart option #2

Closed aalpern closed 7 years ago

aalpern commented 7 years ago

When using the "Group By" option on a line chart, the chartAnnotations() fails, because the calculated pointNumber is incorrect. The data matches are made in the array of all data points, which means that the point number on the X-axis may be non-existent, since the maximum number of points is actually length(data) / # of groups.