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 DataSet = require('@antv/data-set'); const scale = [{ dataKey: 'date', type: 'cat', }, { dataKey: 'range', max: 30, min: -25, }, { dataKey: 'mean_temp', alias: 'Average Daily Temperature', }]; const legendOpt = { offset: 25, title: { fontSize: 12, fill: '#4F4F4F', fontWeight: 300, textAlign: 'start' }, slidable: false, position: 'bottom', offsetX: 25, }; const guideLineOpt = { start: { date: 'min', range: 'min' }, end: { date: 'min', range: 'max' }, lineStyle: { stroke: '#aaa', lineWidth: 1, lineDash: null }, text: { position: 1, offsetY: -6, autoRotate: false, style: { fontSize: 16, textAlign: 'center', fontWeight: 100, fill: '#aaa' }, content: 'January' } }; @Component({ selector: '#mount', template: `