Slight dedupe on chart backgrounds (#8562)
This commit is contained in:
parent
a66f37bf63
commit
4be4af5fdd
@ -124,6 +124,17 @@ function annotateChart (bestNumber: BN, chartProps: ChartResultExt[]): ChartProp
|
||||
annotation: {
|
||||
annotations: objectSpread(
|
||||
{
|
||||
negative: {
|
||||
backgroundColor: BOX_COLORS[1],
|
||||
borderWidth: 0,
|
||||
type: 'box',
|
||||
xMax: swapX === -1
|
||||
? 100
|
||||
: swapX,
|
||||
xMin: 0,
|
||||
yMax: currentY,
|
||||
yMin: 0
|
||||
},
|
||||
past: {
|
||||
backgroundColor: BOX_COLORS[0],
|
||||
borderWidth: 0,
|
||||
@ -136,19 +147,6 @@ function annotateChart (bestNumber: BN, chartProps: ChartResultExt[]): ChartProp
|
||||
yMin: 0
|
||||
}
|
||||
},
|
||||
swapX !== -1 && swapX > currentX
|
||||
? {
|
||||
negative: {
|
||||
backgroundColor: BOX_COLORS[1],
|
||||
borderWidth: 0,
|
||||
type: 'box',
|
||||
xMax: swapX,
|
||||
xMin: 0,
|
||||
yMax: currentY,
|
||||
yMin: 0
|
||||
}
|
||||
}
|
||||
: {},
|
||||
swapX !== -1
|
||||
? {
|
||||
positive: {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user