in desktop/src/app/components/account/details/account-cost-card/account-cost-card.component.ts [128:172]
private _setChartOptions() {
this.options = {
responsive: true,
maintainAspectRatio: false,
elements: {
point: {
radius: 0,
hitRadius: 10,
hoverRadius: 3,
},
line: {
tension: 0.05,
borderWidth: -10,
},
},
scales: {
yAxes: [{
scaleLabel: {
display: true,
labelString: this.currency,
},
stacked: true,
ticks: {
beginAtZero: true,
},
}],
xAxes: [{
stacked: true,
type: "time",
distribution: "linear",
position: "bottom",
time: {
unit: "day",
unitStepSize: 1,
min: this.timeRange.value.start.toISOString(),
max: this.timeRange.value.end.toISOString(),
displayFormats: {
day: "MMM DD",
},
},
}],
},
};
this.changeDetector.markForCheck();
}