Yo uso config para crear un gráfico. Pero si escribo gridIntervals en la configuración, no funciona. Si configuro gridIntervals manualmente, funciona.
la configuración no funciona
xAxes: [ { type: 'DateAxis', renderer: { labels: { template: { location: 0.5, fill: '#666666', fontSize: 12, }, }, grid: { template: { strokeWidth: 0, }, }, axisFills: { template: { fillOpacity: 0, disabled: false }, }, }, fillRule: (dataItem: DateAxisDataItem) => (dataItem.axisFill.visible = true), gridIntervals: [ { timeUnit: 'hour', count: 1, }, ], periodChangeDateFormats: { hour: 'HH:mm', }, }, ],creando un gráfico
this.chart = am4core.createFromConfig(config, this.chartContainerEl.nativeElement);esto es trabajo
this.chart.xAxes.values[0].gridIntervals.setAll([ { timeUnit: "hour", count: 1 } ])¿Qué hice mal?