Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public lineChartData:Array<any> = [
- {data: [79, 22, 87, 12], label:'Series A'}
- ];
- public lineChartLabels:Array<any> = ['January', 'February', 'March', 'April'];
- public lineChartOptions:any = {
- responsive: true,
- scales: {
- yAxes: [{
- ticks: {
- beginAtZero: true
- }
- }]
- },
- annotation: {
- drawTime: 'beforeDatasetsDraw',
- annotations: [{
- type: 'box',
- id: 'a-box-1',
- yScaleID: 'y-axis-0',
- yMin: 0,
- yMax: 30,
- backgroundColor: '#f7d7db'
- }, {
- type: 'box',
- id: 'a-box-2',
- yScaleID: 'y-axis-0',
- yMin: 30,
- yMax: 70,
- backgroundColor: '#FFECD1'
- }, {
- type: 'box',
- id: 'a-box-3',
- yScaleID: 'y-axis-0',
- yMin: 70,
- yMax: 100,
- backgroundColor: '#e6f5f0'
- }]}
- };
- public lineChartColors:Array<any> = [
- { // grey
- backgroundColor: 'rgba(148,159,177,0.2)',
- borderColor: 'rgba(148,159,177,1)',
- pointBackgroundColor: 'rgba(148,159,177,1)',
- pointBorderColor: '#fff',
- pointHoverBackgroundColor: '#fff',
- pointHoverBorderColor: 'rgba(148,159,177,0.8)'
- }
- ];
- public lineChartLegend:boolean = false;
- public lineChartType:string = 'line';
- this.accountService.getLast90DaysAccountHistory(this.currentUrl.request).subscribe(data => {
- if(!data){
- this.message = "No history for this account";
- }
- else{
- this.history = data;
- }
- });
- {"last90Days":[1000,329.23,399.45,290.3,450.3,240.2,409.54,219.3,537.3,490.3]}
Add Comment
Please, Sign In to add comment