Hi I have just started using google charts and I found that the labels in the first column don't show entirely. I'm using these charts in angular 9.0.3 with ng2-google-charts as the module. I have tried changing the width ,height and a bunch of other options but the labels don't show. Here is the image of the resulting chart.
Image of how the chart looks like -
This is my code below
import { Component, OnInit } from '@angular/core';
import { GoogleChartInterface } from 'ng2-google-charts';
@Component({
selector: 'app-component',
templateUrl: './app.component.html'
})
export class GroupAnalysisPageComponent implements OnInit {
constructor() { }
timelineChart: GoogleChartInterface = {
chartType: 'Timeline',
dataTable: [
['Name', 'From', 'To'],
[ 'Washington',new Date(1789, 3, 29), new Date(1797, 2, 3) ],
[ 'Adams', new Date(1797, 2, 3), new Date(1801, 2, 3) ],
[ 'Jefferson', new Date(1801, 2, 3), new Date(1809, 2, 3) ]
],
options: {
'width': 1200,
'avoidOverlappingGridLines':false
},
};
}
Here is my template
<div [hidden]="condition">
<google-chart [data]="timelineChart"></google-chart>
<div>