|
| 1 | +import { Component } from '@angular/core'; |
| 2 | +import { RouterOutlet } from '@angular/router'; |
| 3 | +import { SparklineModule, SparklineTooltipService } from '@syncfusion/ej2-angular-charts' |
| 4 | + |
| 5 | +@Component({ |
| 6 | + selector: 'app-root', |
| 7 | + standalone: true, |
| 8 | + imports: [RouterOutlet, SparklineModule], |
| 9 | + providers: [SparklineTooltipService], |
| 10 | + templateUrl: './app.component.html', |
| 11 | + styleUrl: './app.component.css' |
| 12 | +}) |
| 13 | +export class AppComponent { |
| 14 | + public dataSource = [ |
| 15 | + { month: 'January', value: 34 }, |
| 16 | + { month: 'February', value: 36 }, |
| 17 | + { month: 'March', value: 32 }, |
| 18 | + { month: 'April', value: 35 }, |
| 19 | + { month: 'May', value: 40 }, |
| 20 | + { month: 'June', value: 38 }, |
| 21 | + { month: 'July', value: 33 }, |
| 22 | + { month: 'August', value: 37 }, |
| 23 | + { month: 'September', value: 34 }, |
| 24 | + { month: 'October', value: 31 }, |
| 25 | + { month: 'November', value: 30 }, |
| 26 | + { month: 'December', value: 28 } |
| 27 | + ]; |
| 28 | + |
| 29 | + public markerSettings: object = { |
| 30 | + visible: ['All'] |
| 31 | + }; |
| 32 | + |
| 33 | + public dataLabelSettings: object = { |
| 34 | + visible: ['Start ', 'End'] |
| 35 | + }; |
| 36 | + |
| 37 | + public padding: object = { left: 10, right: 10 }; |
| 38 | + |
| 39 | + public tooltipSettings: object = { |
| 40 | + visible: true, |
| 41 | + }; |
| 42 | +} |
0 commit comments