Hi

I'm using this versions 

"angular-google-charts": "^2.2.3",
"@angular/common": "^14.2.0",

I have a component where I0m going embed several graphics

..`
<app-grafica [title]="'Costes y Horas'" [type]="'ColumnChart'" 
[data]="dataHorasCostesOfertas" [columns]="chartHorasCostesOfertasColumns" 
[options]="options">
...
<app-grafica [title]="'Ofertas Presentadas y Adjudicadas'" 
[type]="'ColumnChart'"
[data]="dataPorcentajeAdjudicadas" 
[columns]="chartPorcentajeAdjudicadasColumns" [options]="options">

chartPorcentajeAdjudicadasColumns = ['Año', 'Presentadas', 'Adjudicadas'];
chartHorasCostesOfertasColumns = ['Año', 'Horas', 'Costes'];

options={
hAxis: {
title: 'Años',
},
vAxis: {
minValue: 0,
},
legend: { position: 'top' }
`

then I have this graficaComponent

`

import { Component, Input, OnChanges, OnInit, SimpleChanges, ViewChild } 
from '@angular/core';

@component <https://github.com/component>({
selector: 'app-grafica',
templateUrl: './grafica.component.html',
styleUrls: ['./grafica.component.scss']
})
export class GraficaComponent implements OnInit, OnChanges {
@input <https://github.com/input>() title: string;
@input <https://github.com/input>() type: string;
@input <https://github.com/input>() origen: string;
@input <https://github.com/input>() data: any[][];
@input <https://github.com/input>() columns: string[];
@input <https://github.com/input>() options: any;

constructor() { }
ngOnChanges(changes: SimpleChanges): void {
console.log('GraficaComponent-ngOnChanges-data', this.data);
}
ngOnInit(): void {
}
}

I don't get any error but I don't see anything

Any  idea, please?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/db1f3279-3c20-4c99-8f85-b3ae35c1154an%40googlegroups.com.

Reply via email to