diff --git a/src/components/ActiveChart/index.js b/src/components/ActiveChart/index.js index 073f3b16..3d9fbbaf 100644 --- a/src/components/ActiveChart/index.js +++ b/src/components/ActiveChart/index.js @@ -75,9 +75,17 @@ export default class ActiveChart extends Component { /> {activeData && ( -
-

{[...activeData].sort()[activeData.length - 1].y + 200} 亿元

-

{[...activeData].sort()[Math.floor(activeData.length / 2)].y} 亿元

+
+
+

{[...activeData].sort()[activeData.length - 1].y + 200} 亿元

+

{[...activeData].sort()[Math.floor(activeData.length / 2)].y} 亿元

+
+
+
+
+
+
+
)} {activeData && ( diff --git a/src/components/ActiveChart/index.less b/src/components/ActiveChart/index.less index 8ecc3237..99079a55 100644 --- a/src/components/ActiveChart/index.less +++ b/src/components/ActiveChart/index.less @@ -29,3 +29,23 @@ text-align: right; } } +.dashedLine { + position: relative; + height: 1px; + top: -70px; + left: -3px; + + .line { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-image: linear-gradient(to right, transparent 50%, #e9e9e9 50%); + background-size: 6px; + } +} + +.dashedLine:last-child { + top: -36px; +}