Fix axis labels css.

Change series smooth to false.
 Make charts margin smaller to match box container.
This commit is contained in:
Miguel Medeiros
2021-09-17 09:40:51 -03:00
parent c612e6f7f1
commit a386ba5cd9
4 changed files with 22 additions and 5 deletions

View File

@@ -99,10 +99,18 @@ export class IncomingTransactionsGraphComponent implements OnInit, OnChanges {
},
xAxis: {
type: 'category',
axisLabel: {
align: 'center',
fontSize: 11,
lineHeight: 12
},
data: this.data.labels.map((value: any) => `${formatDate(value, 'M/d', this.locale)}\n${formatDate(value, 'H:mm', this.locale)}`),
},
yAxis: {
type: 'value',
axisLabel: {
fontSize: 11,
},
splitLine: {
lineStyle: {
type: 'dotted',
@@ -115,7 +123,7 @@ export class IncomingTransactionsGraphComponent implements OnInit, OnChanges {
{
data: this.data.series[0],
type: 'line',
smooth: (this.template === 'advanced') ? false : true,
smooth: false,
showSymbol: false,
lineStyle: {
width: 3,