File tree Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,14 @@ const columnChart = () => {
91
91
fill : {
92
92
opacity : component . get ( 'columnChartModel.opacity' ) || 0.5
93
93
} ,
94
+
95
+ tooltip : {
96
+ y : {
97
+ formatter : function ( value , series ) {
98
+ return data [ series . dataPointIndex ] . extras . formatted || value ;
99
+ }
100
+ }
101
+ } ,
94
102
} ;
95
103
96
104
const colors = component . get ( 'columnChartModel.colors' ) ;
Original file line number Diff line number Diff line change @@ -96,6 +96,14 @@ const lineChart = () => {
96
96
}
97
97
)
98
98
} ,
99
+
100
+ tooltip : {
101
+ y : {
102
+ formatter : function ( value , series ) {
103
+ return data [ series . dataPointIndex ] . extras . formatted || value ;
104
+ }
105
+ }
106
+ } ,
99
107
} ;
100
108
101
109
this . chart = new ApexCharts ( this . $refs . container , options ) ;
Original file line number Diff line number Diff line change @@ -73,6 +73,14 @@ const pieChart = () => {
73
73
] ,
74
74
75
75
legend : component . get ( 'pieChartModel.legend' ) || { } ,
76
+
77
+ tooltip : {
78
+ y : {
79
+ formatter : function ( value , series ) {
80
+ return data [ series . dataPointIndex ] . extras . formatted || value ;
81
+ }
82
+ }
83
+ } ,
76
84
} ;
77
85
78
86
const colors = component . get ( 'pieChartModel.colors' ) ;
You can’t perform that action at this time.
0 commit comments