swimlane / ngx-charts

:bar_chart: Declarative Charting Framework for Angular
https://swimlane.github.io/ngx-charts/
MIT License
4.29k stars 1.15k forks source link

Chart color is changing when data is changing #750

Open mickeyzlt opened 6 years ago

mickeyzlt commented 6 years ago

I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here

Current behavior I'm using Area Chart to show different "ranges" data. I'm changing it with select-option When the component is initializing, the graph color is the one I declared. But once I'm selecting different "range"/data , the color is changing to default white that is taken from the css file.

Expected behavior

I would like that the color wouldn't change when I'm changing the data.

*Browser: Chrome

marjan-georgiev commented 6 years ago

Could you provide a stackblitz where this can be reproduced please?