Add ability to change advanced pie chart font size
See original GitHub issueI’m submitting a … (check one with “x”)
[ ] bug report => search github for a similar issue or PR before submitting
[x] feature request
[ ] support request => Please do not submit support request here
Current behavior The advanced pie chart does not provide a way to change the size of the font that renders percentages and totals. Because of this, if you shrink the pie chart, the chart itself shrinks, but the text remains the same size, so you get some very odd mismatches between chart size and font size (e.g. tiny chart and huge font).
Expected behavior Ideally, changing the chart size using the view property would scale the font along with the chart, so the font size remains relative to the chart size.
Reproduction of the problem Go to the official docs here: https://swimlane.gitbooks.io/ngx-charts/content/charts/advanced-pie-chart.html
Change the view array values in app.ts from the default of [700, 400] to something like [700, 200] or [300, 400].
What is the motivation / use case for changing the behavior? The current behavior makes it difficult to scale this chart to smaller sizes, and that presents a visualization problem for some applications of the chart depending on website size, scale.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
We may want to look into making the text sizes relative to the chart size.
How can i modify the css ngx admin