|
|
@@ -159,7 +159,7 @@ const exportData = ({ filename }: any) => {
|
|
|
const initOption = reactive({
|
|
|
//标题
|
|
|
title: {
|
|
|
- text: bar_title.value || 'Total:', //主标题
|
|
|
+ text: bar_title.value || 'Total: 0', //主标题
|
|
|
left: 19,
|
|
|
top: 9.5,
|
|
|
textStyle: {
|
|
|
@@ -203,7 +203,11 @@ const initOption = reactive({
|
|
|
'</div>'
|
|
|
})
|
|
|
allnum = allnum.toFixed(2)
|
|
|
- str += '<div style= ' + 'color:#FFF;font-family: Lato-Light>Total: ' + allnum + '</div>'
|
|
|
+ str +=
|
|
|
+ '<div style= ' +
|
|
|
+ 'color:#FFF;font-family: Lato-Light>Total: ' +
|
|
|
+ formatNumber(allnum) +
|
|
|
+ '</div>'
|
|
|
return str
|
|
|
},
|
|
|
textStyle: {
|
|
|
@@ -346,7 +350,7 @@ const initChart = () => {
|
|
|
initOption.series.forEach((item: any, index: any) => {
|
|
|
if (item.name == Object.keys(trueObj)) {
|
|
|
initOption.series[index].label.show = true
|
|
|
- initOption.title.text = `Total: ${initOption.series[index].total}`
|
|
|
+ initOption.title.text = `Total: ${formatNumber(initOption.series[index].total)}`
|
|
|
}
|
|
|
})
|
|
|
} else {
|