|
@@ -8,8 +8,15 @@ export const includes = ['legend', 'xAxis', 'yAxis']
|
|
|
|
|
|
|
|
export const option = {
|
|
export const option = {
|
|
|
dataset: dataJson,
|
|
dataset: dataJson,
|
|
|
|
|
+
|
|
|
tooltip: {
|
|
tooltip: {
|
|
|
showDelay: 0,
|
|
showDelay: 0,
|
|
|
|
|
+ formatter: (params: { value: string | any[]; seriesName: string; name: string }) => {
|
|
|
|
|
+ console.log(params)
|
|
|
|
|
+ return params.value.length > 1
|
|
|
|
|
+ ? `${params.seriesName}:<br />${params.value[0]} ${params.value[1]}`
|
|
|
|
|
+ : `${params.seriesName}:<br />${params.name} ${params.value}`
|
|
|
|
|
+ },
|
|
|
axisPointer: {
|
|
axisPointer: {
|
|
|
show: true,
|
|
show: true,
|
|
|
type: 'cross',
|
|
type: 'cross',
|
|
@@ -19,6 +26,7 @@ export const option = {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
legend: {},
|
|
legend: {},
|
|
|
|
|
|
|
|
xAxis: {
|
|
xAxis: {
|