import 'zone.js'; import 'reflect-metadata'; import { Component, enableProdMode, NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { ViserModule } from 'viser-ng'; import * as $ from 'jquery'; const scale = [{ dataKey: 'name', type: 'cat', values: ['Alexander', 'Marie', 'Maximilian', 'Sophia', 'Lukas', 'Maria', 'Leon', 'Anna', 'Tim', 'Laura'], }, { dataKey: 'day', type: 'cat', values: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'], }]; const axis1Opts = { dataKey: 'name', tickLine: null, grid: { align: 'center', lineStyle: { lineWidth: 1, lineDash: null, stroke: '#f0f0f0', } } }; const axis2Opts = { dataKey: 'day', title: null, grid: { align: 'center', lineStyle: { lineWidth: 1, lineDash: null, stroke: '#f0f0f0', }, showFirstLine: true, } }; const seriesOpts = { quickType: 'polygon', color: ['sales', '#BAE7FF-#1890FF-#0050B3'], position: 'name*day', label: ['sales', { offset: -2, textStyle: { fill: '#fff', shadowBlur: 2, shadowColor: 'rgba(0, 0, 0, .45)', }, }], style: { lineWidth: 1, stroke: '#fff', } }; @Component({ selector: '#mount', template: `