mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-18 08:20:13 +01:00
fix(demo): refactor js theme using
This commit is contained in:
parent
672615b710
commit
b772882cd6
28 changed files with 561 additions and 492 deletions
|
|
@ -96,12 +96,15 @@ export class ChartjsMultipleXaxisComponent {
|
|||
|
||||
constructor(private theme: NgaThemeService) {
|
||||
this.theme.getJsTheme().subscribe(config => {
|
||||
|
||||
const chartjs: any = config.variables.chartjs;
|
||||
|
||||
this.chartOptions = {
|
||||
responsive: true,
|
||||
legend: {
|
||||
position: 'bottom',
|
||||
labels: {
|
||||
fontColor: config.chartjsLineLegendTextColor,
|
||||
fontColor: chartjs.legendTextColor,
|
||||
},
|
||||
},
|
||||
hover: {
|
||||
|
|
@ -117,10 +120,10 @@ export class ChartjsMultipleXaxisComponent {
|
|||
},
|
||||
gridLines: {
|
||||
display: true,
|
||||
color: config.chartjsLineXAxisColor,
|
||||
color: chartjs.xAxisColor,
|
||||
},
|
||||
ticks: {
|
||||
fontColor: config.chartjsLineTickColor,
|
||||
fontColor: chartjs.tickColor,
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
@ -133,10 +136,10 @@ export class ChartjsMultipleXaxisComponent {
|
|||
},
|
||||
gridLines: {
|
||||
display: true,
|
||||
color: config.chartjsLineXAxisColor,
|
||||
color: chartjs.xAxisColor,
|
||||
},
|
||||
ticks: {
|
||||
fontColor: config.chartjsLineTickColor,
|
||||
fontColor: chartjs.tickColor,
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue