mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-23 02:40:14 +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
|
|
@ -31,12 +31,15 @@ export class ChartjsBarComponent {
|
|||
|
||||
constructor(private theme: NgaThemeService) {
|
||||
this.theme.getJsTheme().subscribe(config => {
|
||||
|
||||
const chartjs: any = config.variables.chartjs;
|
||||
|
||||
this.chartOptions = {
|
||||
scaleShowVerticalLines: false,
|
||||
responsive: true,
|
||||
legend: {
|
||||
labels: {
|
||||
fontColor: config.chartjsBarLegendTextColor,
|
||||
fontColor: chartjs.legendTextColor,
|
||||
},
|
||||
},
|
||||
scales: {
|
||||
|
|
@ -44,10 +47,10 @@ export class ChartjsBarComponent {
|
|||
{
|
||||
gridLines: {
|
||||
display: true,
|
||||
color: config.chartjsBarXAxisColor,
|
||||
color: chartjs.xAxisColor,
|
||||
},
|
||||
ticks: {
|
||||
fontColor: config.chartjsBarTickColor,
|
||||
fontColor: chartjs.tickColor,
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
@ -55,10 +58,10 @@ export class ChartjsBarComponent {
|
|||
{
|
||||
gridLines: {
|
||||
display: true,
|
||||
color: config.chartjsBarYAxisColor,
|
||||
color: chartjs.yAxisColor,
|
||||
},
|
||||
ticks: {
|
||||
fontColor: config.chartjsBarTickColor,
|
||||
fontColor: chartjs.tickColor,
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue