|
@@ -214,6 +214,9 @@ export function basisSeriesOption(tlRows, tRows) {
|
|
|
export function tripleTMinusTlOption(series) {
|
|
export function tripleTMinusTlOption(series) {
|
|
|
const dates = series.map((s) => s.date)
|
|
const dates = series.map((s) => s.date)
|
|
|
const values = series.map((s) => s.val)
|
|
const values = series.map((s) => s.val)
|
|
|
|
|
+ const minVal = Math.min(...values)
|
|
|
|
|
+ const maxVal = Math.max(...values)
|
|
|
|
|
+ const pad = (maxVal - minVal) * 0.15 || 0.5
|
|
|
return {
|
|
return {
|
|
|
tooltip: {
|
|
tooltip: {
|
|
|
...tipOpt,
|
|
...tipOpt,
|
|
@@ -237,6 +240,8 @@ export function tripleTMinusTlOption(series) {
|
|
|
},
|
|
},
|
|
|
yAxis: {
|
|
yAxis: {
|
|
|
type: 'value',
|
|
type: 'value',
|
|
|
|
|
+ min: +(minVal - pad).toFixed(2),
|
|
|
|
|
+ max: +(maxVal + pad).toFixed(2),
|
|
|
...axisStyle({
|
|
...axisStyle({
|
|
|
axisLabel: { color: C.mut, fontSize: 11, formatter: (v) => v.toFixed(1) },
|
|
axisLabel: { color: C.mut, fontSize: 11, formatter: (v) => v.toFixed(1) },
|
|
|
}),
|
|
}),
|