Browse Source

Migrate border attributes

pull/1503/head
Thomas 3 years ago
parent
commit
f7a66c6cb7
  1. 14
      apps/client/src/app/components/benchmark-comparator/benchmark-comparator.component.ts
  2. 14
      apps/client/src/app/components/investment-chart/investment-chart.component.ts
  3. 8
      libs/ui/src/lib/line-chart/line-chart.component.ts

14
apps/client/src/app/components/benchmark-comparator/benchmark-comparator.component.ts

@ -159,10 +159,12 @@ export class BenchmarkComparatorComponent implements OnChanges, OnDestroy {
responsive: true, responsive: true,
scales: { scales: {
x: { x: {
border: {
color: `rgba(${getTextColor(this.colorScheme)}, 0.1)`,
width: 1
},
display: true, display: true,
grid: { grid: {
borderColor: `rgba(${getTextColor(this.colorScheme)}, 0.1)`,
borderWidth: 1,
color: `rgba(${getTextColor(this.colorScheme)}, 0.8)`, color: `rgba(${getTextColor(this.colorScheme)}, 0.8)`,
display: false display: false
}, },
@ -173,12 +175,14 @@ export class BenchmarkComparatorComponent implements OnChanges, OnDestroy {
} }
}, },
y: { y: {
border: {
color: `rgba(${getTextColor(this.colorScheme)}, 0.1)`,
display: false
},
display: true, display: true,
grid: { grid: {
borderColor: `rgba(${getTextColor(this.colorScheme)}, 0.1)`,
color: `rgba(${getTextColor(this.colorScheme)}, 0.8)`, color: `rgba(${getTextColor(this.colorScheme)}, 0.8)`,
display: false, display: false
drawBorder: false
}, },
position: 'right', position: 'right',
ticks: { ticks: {

14
apps/client/src/app/components/investment-chart/investment-chart.component.ts

@ -261,10 +261,12 @@ export class InvestmentChartComponent implements OnChanges, OnDestroy {
responsive: true, responsive: true,
scales: { scales: {
x: { x: {
border: {
color: `rgba(${getTextColor(this.colorScheme)}, 0.1)`,
width: this.groupBy ? 0 : 1
},
display: true, display: true,
grid: { grid: {
borderColor: `rgba(${getTextColor(this.colorScheme)}, 0.1)`,
borderWidth: this.groupBy ? 0 : 1,
color: `rgba(${getTextColor(this.colorScheme)}, 0.8)`, color: `rgba(${getTextColor(this.colorScheme)}, 0.8)`,
display: false display: false
}, },
@ -279,12 +281,14 @@ export class InvestmentChartComponent implements OnChanges, OnDestroy {
} }
}, },
y: { y: {
border: {
color: `rgba(${getTextColor(this.colorScheme)}, 0.1)`,
display: false
},
display: !this.isInPercent, display: !this.isInPercent,
grid: { grid: {
borderColor: `rgba(${getTextColor(this.colorScheme)}, 0.1)`,
color: `rgba(${getTextColor(this.colorScheme)}, 0.8)`, color: `rgba(${getTextColor(this.colorScheme)}, 0.8)`,
display: false, display: false
drawBorder: false
}, },
position: 'right', position: 'right',
ticks: { ticks: {

8
libs/ui/src/lib/line-chart/line-chart.component.ts

@ -212,9 +212,11 @@ export class LineChartComponent implements AfterViewInit, OnChanges, OnDestroy {
}, },
scales: { scales: {
x: { x: {
border: {
color: `rgba(${getTextColor(this.colorScheme)}, 0.1)`
},
display: this.showXAxis, display: this.showXAxis,
grid: { grid: {
borderColor: `rgba(${getTextColor(this.colorScheme)}, 0.1)`,
color: `rgba(${getTextColor(this.colorScheme)}, 0.8)`, color: `rgba(${getTextColor(this.colorScheme)}, 0.8)`,
display: false display: false
}, },
@ -225,9 +227,11 @@ export class LineChartComponent implements AfterViewInit, OnChanges, OnDestroy {
type: 'time' type: 'time'
}, },
y: { y: {
border: {
color: `rgba(${getTextColor(this.colorScheme)}, 0.1)`
},
display: this.showYAxis, display: this.showYAxis,
grid: { grid: {
borderColor: `rgba(${getTextColor(this.colorScheme)}, 0.1)`,
color: `rgba(${getTextColor(this.colorScheme)}, 0.8)`, color: `rgba(${getTextColor(this.colorScheme)}, 0.8)`,
display: false display: false
}, },

Loading…
Cancel
Save