Open AaronLavers opened 4 years ago
Also, while this is an issue, there's a bug noted in https://github.com/swimlane/ngx-charts/issues/672 which is persisting with the latest version - All charts using gradients render as just black in iOS/Safari, and would require a fix to make the gradients usable in a production environment
I would really love this address as well.
@AaronLavers do you have a plunkr or repo where I can see the chart you posted with the total in the middle?
Describe the bug When using the ngx-charts-pie-chart feature with an arc-width set (i.e. doughnut chart), the gradient effect is not easily visible.
To Reproduce Steps to reproduce the behavior:
Expected behavior The radius - or gradient cs/cy position - should adjust with respect to the arc-width so that the gradient is still visible - having inputs to set this would help. Alternatively a setting to choose between radialGradient and linearGradient would be helpful, as a linearGradient would fill the arc radius for a nice effect.
Screenshots
Charts with doughnut setting and gradient true.. gradient cant be easily seen![Annotation 2019-12-04 113529a](https://user-images.githubusercontent.com/13740436/70111091-1e6e5080-168c-11ea-80d8-6ec21eeb3840.jpg)
Adjusting gradient to actually see the effect![Annotation 2019-12-04 113529b](https://user-images.githubusercontent.com/13740436/70111102-23cb9b00-168c-11ea-878a-2021f1476d0b.jpg)
ngx-charts version 12.0.1