|
@@ -223,7 +223,6 @@ function onInitChart(F2, config) {
|
|
|
})
|
|
|
if (currentTab.funcid === 'Tdb,RH') { // 加湿度的面积图
|
|
|
chart.line().position('time*rhsales').color('#3DCBCC').shape('smooth')
|
|
|
- } else if (currentTab.funcid === 'Tdb,RH') {
|
|
|
chart.line().position('time*sales').color('#246FE5').shape('smooth')
|
|
|
} else {
|
|
|
chart.area().position('time*sales').color('#3DCBCC').shape('smooth')
|
|
@@ -231,9 +230,11 @@ function onInitChart(F2, config) {
|
|
|
}
|
|
|
|
|
|
// 注意:需要把chart return 出来
|
|
|
- chart.line().position('time*sales').color('#3DCBCC').shape('smooth') // smooth stack
|
|
|
if (currentTab.funcid === 'Tdb,RH') { // 加湿度的线
|
|
|
- chart.line().position('time*rhsales').color('#246FE5').shape('smooth')
|
|
|
+ chart.line().position('time*rhsales').color('#3DCBCC').shape('smooth')
|
|
|
+ chart.line().position('time*sales').color('#246FE5').shape('smooth')
|
|
|
+ } else {
|
|
|
+ chart.line().position('time*sales').color('#3DCBCC').shape('smooth') // smooth stack
|
|
|
}
|
|
|
chart.render()
|
|
|
return chart
|