From 481787a7aae492ebda5565d7e8a817b24ff5e7e5 Mon Sep 17 00:00:00 2001 From: nikogu <644506165@qq.com> Date: Wed, 3 Jan 2018 11:00:07 +0800 Subject: [PATCH] fixed charts color style --- src/components/Charts/Bar/index.js | 22 +++++++++++++++++----- src/components/Charts/MiniArea/index.js | 3 +-- src/components/Charts/index.less | 2 +- src/g2.js | 13 ++++++++++++- src/routes/Dashboard/Analysis.js | 2 +- 5 files changed, 32 insertions(+), 10 deletions(-) diff --git a/src/components/Charts/Bar/index.js b/src/components/Charts/Bar/index.js index c63bc92b..9eee7a07 100644 --- a/src/components/Charts/Bar/index.js +++ b/src/components/Charts/Bar/index.js @@ -55,7 +55,14 @@ class Bar extends Component { }; render() { - const { height, title, forceFit = true, data, color = 'rgba(24, 144, 255, 0.85)', padding } = this.props; + const { + height, + title, + forceFit = true, + data, + color = 'rgba(24, 144, 255, 0.85)', + padding, + } = this.props; const { autoHideXLabels } = this.state; @@ -79,16 +86,21 @@ class Bar extends Component { return (