File tree 3 files changed +15
-1
lines changed
3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,23 @@ export class TinyArea extends Plot<TinyAreaOptions> {
10
10
/** 图表类型 */
11
11
public type : string = 'tiny-area' ;
12
12
13
- protected getDefaultOptions ( ) {
13
+ protected getDefaultOptions ( options : TinyAreaOptions ) {
14
14
return {
15
+ appendPadding : 2 ,
15
16
tooltip : {
16
17
...DEFAULT_TOOLTIP_OPTIONS ,
17
18
} ,
19
+ // 默认样式
20
+ color : 'l(90) 0:#5B8FF9 1:#ffffff' ,
21
+ areaStyle : {
22
+ fillOpacity : 0.6 ,
23
+ } ,
24
+ line : {
25
+ size : 1 ,
26
+ style : {
27
+ stroke : '#5B8FF9' ,
28
+ } ,
29
+ } ,
18
30
} ;
19
31
}
20
32
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ export class TinyColumn extends Plot<TinyColumnOptions> {
12
12
13
13
protected getDefaultOptions ( ) {
14
14
return {
15
+ appendPadding : 2 ,
15
16
tooltip : {
16
17
...DEFAULT_TOOLTIP_OPTIONS ,
17
18
} ,
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ export class TinyLine extends Plot<TinyLineOptions> {
12
12
13
13
protected getDefaultOptions ( ) {
14
14
return {
15
+ appendPadding : 2 ,
15
16
tooltip : {
16
17
...DEFAULT_TOOLTIP_OPTIONS ,
17
18
} ,
You can’t perform that action at this time.
0 commit comments