|
|
@ -283,7 +283,6 @@ export class InvestmentChartComponent implements OnChanges, OnDestroy {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
display: true,
|
|
|
|
display: true,
|
|
|
|
grid: {
|
|
|
|
grid: {
|
|
|
|
color: `rgba(${getTextColor(this.colorScheme)}, 0.8)`,
|
|
|
|
|
|
|
|
display: false
|
|
|
|
display: false
|
|
|
|
},
|
|
|
|
},
|
|
|
|
min: this.daysInMarket
|
|
|
|
min: this.daysInMarket
|
|
|
@ -298,13 +297,21 @@ export class InvestmentChartComponent implements OnChanges, OnDestroy {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
y: {
|
|
|
|
y: {
|
|
|
|
border: {
|
|
|
|
border: {
|
|
|
|
color: `rgba(${getTextColor(this.colorScheme)}, 0.1)`,
|
|
|
|
|
|
|
|
display: false
|
|
|
|
display: false
|
|
|
|
},
|
|
|
|
},
|
|
|
|
display: !this.isInPercent,
|
|
|
|
display: !this.isInPercent,
|
|
|
|
grid: {
|
|
|
|
grid: {
|
|
|
|
color: `rgba(${getTextColor(this.colorScheme)}, 0.8)`,
|
|
|
|
color: ({ scale, tick }) => {
|
|
|
|
display: false
|
|
|
|
if (
|
|
|
|
|
|
|
|
tick.value === 0 ||
|
|
|
|
|
|
|
|
tick.value === scale.max ||
|
|
|
|
|
|
|
|
tick.value === scale.min
|
|
|
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
return `rgba(${getTextColor(this.colorScheme)}, 0.1)`;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return 'transparent';
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
position: 'right',
|
|
|
|
position: 'right',
|
|
|
|
ticks: {
|
|
|
|
ticks: {
|
|
|
|