diff --git a/nezha-fronted/package-lock.json b/nezha-fronted/package-lock.json index 8f4454e48..0a58f808b 100644 --- a/nezha-fronted/package-lock.json +++ b/nezha-fronted/package-lock.json @@ -14340,7 +14340,7 @@ }, "node-sass": { "version": "4.14.1", - "resolved": "https://registry.npmjs.org/node-sass/-/node-sass-4.14.1.tgz", + "resolved": "https://registry.npmmirror.com/node-sass/-/node-sass-4.14.1.tgz", "integrity": "sha512-sjCuOlvGyCJS40R8BscF5vhVlQjNN069NtQ1gSxyK1u9iqvn6tf7O1R4GNowVZfiZUCRt5MmMs1xd+4V/7Yr0g==", "dev": true, "requires": { @@ -20727,7 +20727,7 @@ }, "webpack-bundle-analyzer": { "version": "2.13.1", - "resolved": "https://registry.npmjs.org/webpack-bundle-analyzer/-/webpack-bundle-analyzer-2.13.1.tgz", + "resolved": "https://registry.npmmirror.com/webpack-bundle-analyzer/-/webpack-bundle-analyzer-2.13.1.tgz", "integrity": "sha512-rwxyfecTAxoarCC9VlHlIpfQCmmJ/qWD5bpbjkof+7HrNhTNZIwZITxN6CdlYL2axGmwNUQ+tFgcSOiNXMf/sQ==", "dev": true, "requires": { diff --git a/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue b/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue index 84b57da49..d6bbbc264 100644 --- a/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue +++ b/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue @@ -4403,7 +4403,27 @@ export default { nullType: 'null', legend: { placement: 'bottom', values: [], show: true }, thresholdShow: true, - thresholds: [{ value: undefined, color: '#eeeeeeff' }] + thresholds: [{ value: undefined, color: '#eeeeeeff' }], + showHeader: 1, + visibility: { + varName: '', + operator: 'equal', + varValue: '', + result: 'show' + }, + rightYAxis: { + elementNames: [], + style: 'line', + unit: 2, + label: '', + min: undefined, + max: undefined + }, + dataLink: [], + option: { + lineWidth: 1, + pointSize: 6 + } }, elements: [], panel: '', diff --git a/nezha-fronted/src/components/page/dashboard/overview/chart.vue b/nezha-fronted/src/components/page/dashboard/overview/chart.vue index 7e2dd6496..81cf1fb4f 100644 --- a/nezha-fronted/src/components/page/dashboard/overview/chart.vue +++ b/nezha-fronted/src/components/page/dashboard/overview/chart.vue @@ -533,7 +533,7 @@ export default { params.forEach((item, i) => { const alias = this.queryAlias(item.seriesIndex) if (i === 0 && alias.indexOf('Previous ') === -1) { - const value = item.data[0] + const value = item.value[0] str += '