From e2ca97379f8497a74643b6091e56632c5344cdd6 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Mon, 29 May 2023 13:56:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=BF=E5=9B=BE=E5=9D=90=E6=A0=87=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0xColorFunc=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/public/js/utils.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/web/public/js/utils.js b/web/public/js/utils.js index 4c7d63cc..7d455693 100644 --- a/web/public/js/utils.js +++ b/web/public/js/utils.js @@ -610,12 +610,12 @@ window.teaweb = { let name = options.name let values = options.values let xFunc = options.x + let xColorFunc = options.xColor let tooltipFunc = options.tooltip let axis = options.axis let valueFunc = options.value let max = options.max let interval = options.interval - let left = options.left if (typeof left != "number") { left = 0 @@ -636,7 +636,10 @@ window.teaweb = { xAxis: { data: values.map(xFunc), axisLabel: { - interval: interval + interval: interval, + textStyle: { + color: xColorFunc + } } }, yAxis: {