Skip to content
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

Documentation: Axis headers page #48

Closed
samkristoff opened this issue Oct 27, 2021 · 1 comment
Closed

Documentation: Axis headers page #48

samkristoff opened this issue Oct 27, 2021 · 1 comment

Comments

@samkristoff
Copy link

On the Axis header page in the Legend in header section the example code should use chart.series.values rather than chart.series since the legend.data.setAll() call expects an array.

var legend = yAxis.axisHeader.children.push(am5.Legend.new(root, {}));
legend.data.setAll(chart.series);

should be

var legend = yAxis.axisHeader.children.push(am5.Legend.new(root, {}));
legend.data.setAll(chart.series.values);
@martynasma
Copy link
Collaborator

Thanks for the heads up! Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants