mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-09 08:40:26 +08:00
线图坐标增加xColorFunc参数
This commit is contained in:
@@ -610,12 +610,12 @@ window.teaweb = {
|
|||||||
let name = options.name
|
let name = options.name
|
||||||
let values = options.values
|
let values = options.values
|
||||||
let xFunc = options.x
|
let xFunc = options.x
|
||||||
|
let xColorFunc = options.xColor
|
||||||
let tooltipFunc = options.tooltip
|
let tooltipFunc = options.tooltip
|
||||||
let axis = options.axis
|
let axis = options.axis
|
||||||
let valueFunc = options.value
|
let valueFunc = options.value
|
||||||
let max = options.max
|
let max = options.max
|
||||||
let interval = options.interval
|
let interval = options.interval
|
||||||
|
|
||||||
let left = options.left
|
let left = options.left
|
||||||
if (typeof left != "number") {
|
if (typeof left != "number") {
|
||||||
left = 0
|
left = 0
|
||||||
@@ -636,7 +636,10 @@ window.teaweb = {
|
|||||||
xAxis: {
|
xAxis: {
|
||||||
data: values.map(xFunc),
|
data: values.map(xFunc),
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
interval: interval
|
interval: interval,
|
||||||
|
textStyle: {
|
||||||
|
color: xColorFunc
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
yAxis: {
|
yAxis: {
|
||||||
|
|||||||
Reference in New Issue
Block a user