echarts图表tooltip样式修改

This commit is contained in:
lll 2023-11-02 17:10:55 +08:00
parent 757c774c6a
commit f93587abd4
8 changed files with 10 additions and 7 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 153 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 146 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 155 B

View File

@ -1,6 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24" width="30" height="30" style="border-color: rgba(0,0,0,0);border-width: bpx;border-style: undefined" filter="none">
<g>
<path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" fill="rgba(2.04,205.02,230.01000000000002,1)"></path>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 364 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 147 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 96 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

View File

@ -238,6 +238,11 @@ export let ratedChart = {
//悬浮框
show: true, // 是否显示
trigger: "item", //
extraCssText: "max-height: 20px;",
position: function (point, params, dom, rect, size) {
// 您可以在此自定义 Tooltip 的位置
return [point[0], "10%"];
},
},
xAxis: {
type: "category",
@ -391,7 +396,11 @@ export let stopChart = {
tooltip: {
//悬浮框
show: true, // 是否显示
// trigger: "item", //
extraCssText: "max-height: 20px;",
position: function (point, params, dom, rect, size) {
// 您可以在此自定义 Tooltip 的位置
return [point[0], "10%"];
},
},
xAxis: {
type: "category",