|
|
@ -801,7 +801,6 @@ const updateRegionBarChart = (list) => { |
|
|
|
|
|
|
|
|
const option = { |
|
|
const option = { |
|
|
tooltip: { trigger: 'item' }, // 之前需求:取消十字线显示,改为item |
|
|
tooltip: { trigger: 'item' }, // 之前需求:取消十字线显示,改为item |
|
|
formatter: '{b}: {c}', // 柱状图不需要显示百分比 |
|
|
|
|
|
legend: { data: legendData, top: 'top' }, |
|
|
legend: { data: legendData, top: 'top' }, |
|
|
xAxis: { |
|
|
xAxis: { |
|
|
type: 'category', |
|
|
type: 'category', |
|
|
@ -991,7 +990,7 @@ const initCharts = () => { |
|
|
if (chartRegionBarRef.value) { |
|
|
if (chartRegionBarRef.value) { |
|
|
const chart = echarts.init(chartRegionBarRef.value); |
|
|
const chart = echarts.init(chartRegionBarRef.value); |
|
|
chart.setOption({ |
|
|
chart.setOption({ |
|
|
tooltip: { trigger: 'item', formatter: '{b}: {c} ({d}%)' }, |
|
|
|
|
|
|
|
|
tooltip: { trigger: 'item' }, |
|
|
legend: { data: ['日活跃用户', '周活跃用户', '月活跃用户'], top: 'top' }, |
|
|
legend: { data: ['日活跃用户', '周活跃用户', '月活跃用户'], top: 'top' }, |
|
|
xAxis: { |
|
|
xAxis: { |
|
|
type: 'category', |
|
|
type: 'category', |
|
|
|