jqwidgets-framework
Version:
jQWidgets is an advanced Angular, Vue, Blazor, React, Web Components, jquery, ASP .NET MVC, Custom Elements and HTML5 UI framework.
90 lines (87 loc) • 2.85 kB
text/typescript
import { Component, ViewEncapsulation } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
encapsulation: ViewEncapsulation.None
})
export class AppComponent {
xAxis: object = {
minimum: new Date(2018, 6, 23),
maximum: new Date(2019, 7, 5),
labelFormat: 'short'
};
yAxis: object = {
labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
};
data: number[][] = [
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ],
[ ]
];
paletteSettings: object = {
palette: [
{ value: 0, color: '#eee', label: 'No contributions' },
{ value: 1, color: '#d6ebee' },
{ value: 16, color: '#a2d0d8' },
{ value: 32, color: '#4ca1af' },
{ value: 50, color: '#254e77', label: '50+ contributions' },
],
type: 'Fixed',
emptyPointColor: 'white'
};
legendSettings: object = {
position: 'Bottom'
};
}