File tree Expand file tree Collapse file tree 1 file changed +21
-5
lines changed
docs/custom/demo/DoubleOverlapArea Expand file tree Collapse file tree 1 file changed +21
-5
lines changed Original file line number Diff line number Diff line change 1
1
import type { DoubleOverlapAreaProps , IGradient , IMarkLineSpec } from '@sensoro-design/chart' ;
2
2
import { useGetState } from '@rcuse/core' ;
3
3
import { DoubleOverlapArea } from '@sensoro-design/chart' ;
4
- import { colorGreyPro09 , colorWhite } from '@sensoro-design/chart-theme' ;
4
+ import { colorBlue06 , colorGreyPro09 , colorWhite } from '@sensoro-design/chart-theme' ;
5
5
import { isNull } from 'es-toolkit/predicate' ;
6
6
import React from 'react' ;
7
7
@@ -107,10 +107,22 @@ function Example() {
107
107
const markLine : IMarkLineSpec [ ] = [ ] ;
108
108
109
109
if ( ! isNull ( selectVal ) ) {
110
- markLine . push ( getMarkLineItem ( {
111
- x : selectVal ,
112
- label : firstSelect ? getMarkLineLabel ( ) : undefined ,
113
- } ) ) ;
110
+ markLine . push (
111
+ getMarkLineItem ( {
112
+ x : selectVal ,
113
+ label : firstSelect ? getMarkLineLabel ( ) : undefined ,
114
+ } ) ,
115
+ getMarkLineItem ( {
116
+ x : selectVal ,
117
+ line : {
118
+ style : {
119
+ stroke : colorBlue06 ,
120
+ lineWidth : 1 ,
121
+ lineDash : [ 3 , 2 ] ,
122
+ } ,
123
+ } ,
124
+ } ) ,
125
+ ) ;
114
126
}
115
127
116
128
if ( timeoutRef . current ) {
@@ -153,6 +165,10 @@ function Example() {
153
165
visible : true ,
154
166
line : {
155
167
type : 'line' ,
168
+ width : 1 ,
169
+ style : {
170
+ stroke : colorBlue06 ,
171
+ } ,
156
172
} ,
157
173
} ,
158
174
followTooltip : true ,
You can’t perform that action at this time.
0 commit comments