mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-04 05:00:25 +08:00
线图坐标增加xColorFunc参数
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user