Skip to content

Commit

Permalink
ui: remember the selected legends for metric chart (#663)
Browse files Browse the repository at this point in the history
  • Loading branch information
baurine authored Jul 6, 2020
1 parent c45b95b commit ce91862
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions ui/lib/components/MetricChart/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ export default function MetricChart({
...getSeriesProps(type),
})
})
return s
})

return {
Expand Down Expand Up @@ -234,7 +233,6 @@ export default function MetricChart({
inner = (
<ReactEchartsCore
echarts={echarts}
notMerge={true}
lazyUpdate={true}
style={{ height: HEIGHT }}
option={opt}
Expand Down
4 changes: 2 additions & 2 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"classnames": "^2.2.6",
"d3": "^5.15.1",
"dayjs": "^1.8.24",
"echarts": "^4.7.0",
"echarts-for-react": "^2.0.15-beta.1",
"echarts": "^4.8.0",
"echarts-for-react": "^2.0.16",
"framer-motion": "^1.10.3",
"i18next": "^19.4.2",
"i18next-browser-languagedetector": "^4.0.1",
Expand Down
4 changes: 2 additions & 2 deletions ui/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4997,15 +4997,15 @@ ecc-jsbn@~0.1.1:
jsbn "~0.1.0"
safer-buffer "^2.1.0"

echarts-for-react@^2.0.15-beta.1:
echarts-for-react@^2.0.16:
version "2.0.16"
resolved "https://registry.yarnpkg.com/echarts-for-react/-/echarts-for-react-2.0.16.tgz#8134a53dff90882c1e6a95c45ceab21e00f6c9f5"
integrity sha512-VmHCktay2qKt/+wpL/C7thbvIa7dYBEey0/U4Zaqo+qeA4wx+uiCd5NeCsPIhD/0Pv+2qqNswqiNiUCtcgccOw==
dependencies:
fast-deep-equal "^2.0.1"
size-sensor "^1.0.0"

echarts@^4.7.0:
echarts@^4.8.0:
version "4.8.0"
resolved "https://registry.yarnpkg.com/echarts/-/echarts-4.8.0.tgz#b2c1cfb9229b13d368ee104fc8eea600b574d4c4"
integrity sha512-YwShpug8fWngj/RlgxDaYrLBoD+LsZUArrusjNPHpAF+is+gGe38xx4W848AwWMGoi745t3OXM52JedNrv+F6g==
Expand Down

0 comments on commit ce91862

Please sign in to comment.