<!DOCTYPE html>
<html>
<head>
<title>Angular 2 + nvd3</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Polyfill(s) for older browsers -->
<script src="https://unpkg.com/core-js/client/shim.min.js"></script>
<script src="https://unpkg.com/zone.js@0.8.4?main=browser"></script>
<script src="https://unpkg.com/systemjs@0.19.39/dist/system.src.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/nvd3/1.8.4/nv.d3.min.css"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js" charset="utf-8"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/nvd3/1.8.5/nv.d3.min.js"></script>
<!-- 2. Configure SystemJS -->
<script src="systemjs.config.js"></script>
<script>
System.import('app').catch(function(err){ console.error(err); });
</script>
</head>
<body>
<main>Loading...</main>
<hr/>
<div>nvd3 directive for Angular 2+.</div>
<div><a href="https://github.com/krispo/ng2-nvd3" target="_blank">source</a></div>
</body>
</html>
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app.module';
console.log('Running JIT compiled');
platformBrowserDynamic().bootstrapModule(AppModule);
/**
* WEB ANGULAR VERSION
* (based on systemjs.config.js in angular.io)
* System configuration for Angular samples
* Adjust as necessary for your application needs.
*/
(function (global) {
System.config({
// DEMO ONLY! REAL CODE SHOULD NOT TRANSPILE IN THE BROWSER
transpiler: 'ts',
typescriptOptions: {
// Copy of compiler options in standard tsconfig.json
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": ["es2015", "dom"],
"noImplicitAny": true,
"suppressImplicitAnyIndexErrors": true
},
meta: {
'typescript': {
"exports": "ts"
}
},
paths: {
// paths serve as alias
'npm:': 'https://unpkg.com/'
},
// map tells the System loader where to look for things
map: {
// our app is within the app folder
'app': 'app',
// angular bundles
'@angular/animations': 'npm:@angular/animations/bundles/animations.umd.js',
'@angular/animations/browser': 'npm:@angular/animations/bundles/animations-browser.umd.js',
'@angular/core': 'npm:@angular/core/bundles/core.umd.js',
'@angular/common': 'npm:@angular/common/bundles/common.umd.js',
'@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js',
'@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js',
'@angular/platform-browser/animations': 'npm:@angular/platform-browser/bundles/platform-browser-animations.umd.js',
'@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
'@angular/http': 'npm:@angular/http/bundles/http.umd.js',
'@angular/router': 'npm:@angular/router/bundles/router.umd.js',
'@angular/router/upgrade': 'npm:@angular/router/bundles/router-upgrade.umd.js',
'@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js',
'@angular/upgrade': 'npm:@angular/upgrade/bundles/upgrade.umd.js',
'@angular/upgrade/static': 'npm:@angular/upgrade/bundles/upgrade-static.umd.js',
// other libraries
'rxjs': 'npm:rxjs@5.0.1',
'angular-in-memory-web-api': 'npm:angular-in-memory-web-api/bundles/in-memory-web-api.umd.js',
'ts': 'npm:plugin-typescript@5.2.7/lib/plugin.js',
'typescript': 'npm:typescript@2.2.1/lib/typescript.js',
'ng2-nvd3': 'npm:ng2-nvd3@2.0.0-rc2/build/index.js'
},
// packages tells the System loader how to load when no filename and/or no extension
packages: {
app: {
main: './main.ts',
defaultExtension: 'ts',
meta: {
'./*.ts': {
loader: 'systemjs-angular-loader.js'
}
}
},
rxjs: {
defaultExtension: 'js'
}
}
});
})(this);
/*
Copyright 2016 Google Inc. All Rights Reserved.
Use of this source code is governed by an MIT-style license that
can be found in the LICENSE file at http://angular.io/license
*/
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": true,
"suppressImplicitAnyIndexErrors": true
}
}
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'main',
template: `
<br/>
<div>
<nvd3 [options]="options" [data]="data"></nvd3>
</div>
`
})
export class AppComponent implements OnInit {
options;
data;
chartType;
ngOnInit(){
this.options = {
chart: {
type: 'stackedAreaChart',
height: 450,
margin : {
top: 20,
right: 20,
bottom: 30,
left: 40
},
x: function(d){return d[0];},
y: function(d){return d[1];},
useVoronoi: false,
clipEdge: true,
duration: 100,
useInteractiveGuideline: true,
xAxis: {
showMaxMin: false,
tickFormat: function(d) {
return d3.time.format('%x')(new Date(d))
}
},
yAxis: {
tickFormat: function(d){
return d3.format('.2s')(d);
}
},
zoom: {
enabled: false,
scaleExtent: [1, 10],
useFixedDomain: false,
useNiceScale: false,
horizontalOff: false,
verticalOff: true,
unzoomEventType: 'dblclick.zoom'
}
}
};
this.data = [{"key":"VIEWS","values":[[1509253200000,731598],[1509166800000,528081],[1509080400000,1620100],[1508994000000,1948638],[1508907600000,2045777],[1508821200000,2107242],[1508648400000,726147],[1508562000000,512267],[1508475600000,1697045],[1508389200000,2012821],[1508302800000,2116433],[1508216400000,2076303],[1508130000000,2081456],[1508043600000,716870],[1507957200000,512029],[1507870800000,1636537],[1507784400000,1936080],[1507698000000,1998944],[1507611600000,2020727],[1507525200000,1773415],[1507438800000,636529],[1507352400000,464846],[1507266000000,1580538],[1507179600000,1912567],[1507093200000,1975092],[1507006800000,2017644],[1506920400000,1944093],[1506834000000,629148],[1506747600000,443422],[1506661200000,1574802],[1506574800000,1986305],[1506488400000,2007381],[1506402000000,2013345],[1506315600000,1998246],[1506142800000,474448],[1506056400000,1584306],[1505970000000,1817417],[1505883600000,1892014],[1505797200000,1976838],[1505710800000,1956944],[1505624400000,608483],[1505538000000,446520],[1505451600000,1582472],[1505365200000,1903292],[1505278800000,1893058],[1505192400000,1845434],[1505106000000,1801457],[1505019600000,588091],[1504933200000,438530],[1504846800000,1509068],[1504760400000,1831881],[1504674000000,2053307],[1504587600000,1988049],[1504501200000,661888],[1504414800000,591191],[1504328400000,564222],[1504242000000,1574057],[1504155600000,1906094],[1504069200000,2021679],[1503982800000,2051122],[1503896400000,1948825],[1503810000000,710725],[1503723600000,566682],[1503637200000,1567598],[1503550800000,1915901],[1503464400000,2006096],[1503378000000,1771790],[1503291600000,1788482],[1503205200000,651567],[1503118800000,514987],[1503032400000,1529243],[1502946000000,1814150],[1502859600000,1848518],[1502773200000,1821623],[1502686800000,1832586],[1502600400000,588820],[1502514000000,479196],[1502427600000,1458639],[1502341200000,1750138],[1502254800000,1799903],[1502168400000,1815070],[1502082000000,1794638],[1501995600000,456696],[1501909200000,356284],[1501822800000,1449346],[1501736400000,1805637],[1501650000000,1856647],[1501563600000,1860878],[1501477200000,1831393],[1501390800000,451064],[1501304400000,347958],[1501218000000,1455659],[1501131600000,1849627],[1501045200000,1953275],[1500958800000,2131444],[1500872400000,2131714],[1500786000000,610894],[1500699600000,489165],[1500613200000,1663971],[1500526800000,2097268],[1500440400000,2190386],[1500354000000,2128050],[1500267600000,2111223],[1500181200000,531158],[1500094800000,401995],[1500008400000,1635498],[1499922000000,2008324],[1499835600000,2107187],[1499749200000,2169152],[1499662800000,2208310],[1499576400000,648324],[1499490000000,493554],[1499403600000,1813395],[1499317200000,2100991],[1499230800000,2003161],[1499144400000,488828],[1499058000000,1123411],[1498971600000,411792],[1498885200000,399815],[1498798800000,1565550],[1498712400000,1968882],[1498626000000,2124112],[1498539600000,2143501],[1498453200000,2161351],[1498366800000,529132],[1498280400000,374522],[1498194000000,1646956],[1498107600000,2019389],[1498021200000,2213060],[1497934800000,2272969],[1497848400000,2228592],[1497762000000,583573],[1497675600000,528908],[1497589200000,1740512],[1497502800000,2119490],[1497416400000,2155770],[1497330000000,2223969],[1497243600000,2297350],[1497157200000,625411],[1497070800000,468900],[1496984400000,1773892],[1496898000000,2090261],[1496811600000,2194134],[1496725200000,2315907],[1496638800000,2334593],[1496552400000,621915],[1496466000000,458914],[1496379600000,1758228],[1496293200000,2080423],[1496206800000,2162455],[1496120400000,2143170],[1496034000000,681967],[1495947600000,476449],[1495861200000,423431],[1495774800000,1531920],[1495688400000,2010026],[1495602000000,2099101],[1495515600000,2108016],[1495429200000,2026605],[1495342800000,641745],[1495256400000,504035],[1495170000000,1569158],[1495083600000,1893985],[1494997200000,1959268],[1494910800000,1999859],[1494824400000,1932425],[1494738000000,507729],[1494651600000,430959],[1494565200000,1449410],[1494478800000,1811980],[1494306000000,1872436],[1494219600000,1896832],[1494133200000,601759],[1494046800000,431788],[1493960400000,1427381],[1493874000000,1769298],[1493787600000,1857932],[1493701200000,1840801],[1493614800000,1747869],[1493528400000,588885],[1493442000000,456714],[1493355600000,1470928]]},{"key":"PRINT","values":[[1509253200000,13492],[1509166800000,9250],[1509080400000,38668],[1508994000000,46109],[1508907600000,48376],[1508821200000,49360],[1508648400000,13375],[1508562000000,10708],[1508475600000,39387],[1508389200000,45815],[1508302800000,47396],[1508216400000,49481],[1508130000000,47275],[1508043600000,13095],[1507957200000,9749],[1507870800000,39885],[1507784400000,45201],[1507698000000,47888],[1507611600000,46699],[1507525200000,42099],[1507438800000,11957],[1507352400000,8939],[1507266000000,37925],[1507179600000,44406],[1507093200000,45794],[1507006800000,45658],[1506920400000,44662],[1506834000000,12225],[1506747600000,9569],[1506661200000,38580],[1506574800000,44362],[1506488400000,45843],[1506402000000,47390],[1506315600000,47555],[1506142800000,9460],[1506056400000,38946],[1505970000000,42698],[1505883600000,45008],[1505797200000,46806],[1505710800000,46047],[1505624400000,13231],[1505538000000,8831],[1505451600000,38875],[1505365200000,43948],[1505278800000,44915],[1505192400000,42252],[1505106000000,42659],[1505019600000,11726],[1504933200000,9124],[1504846800000,36780],[1504760400000,40567],[1504674000000,43296],[1504587600000,43538],[1504501200000,13398],[1504414800000,9126],[1504328400000,7456],[1504242000000,31763],[1504155600000,40661],[1504069200000,41771],[1503982800000,44355],[1503896400000,42405],[1503810000000,11472],[1503723600000,9001],[1503637200000,34925],[1503550800000,40944],[1503464400000,43239],[1503378000000,44414],[1503291600000,39752],[1503205200000,12737],[1503118800000,8942],[1503032400000,33638],[1502946000000,39707],[1502859600000,40927],[1502773200000,41907],[1502686800000,41496],[1502600400000,9514],[1502514000000,7218],[1502427600000,33849],[1502341200000,39946],[1502254800000,40874],[1502168400000,42338],[1502082000000,41100],[1501995600000,8990],[1501909200000,7334],[1501822800000,34704],[1501736400000,41701],[1501650000000,43474],[1501563600000,43550],[1501477200000,42084],[1501390800000,9334],[1501304400000,8364],[1501218000000,34945],[1501131600000,44407],[1501045200000,43600],[1500958800000,45881],[1500872400000,45277],[1500786000000,11747],[1500699600000,10102],[1500613200000,39889],[1500526800000,43765],[1500440400000,44932],[1500354000000,46040],[1500267600000,45040],[1500181200000,9586],[1500094800000,7609],[1500008400000,37788],[1499922000000,45586],[1499835600000,47041],[1499749200000,44853],[1499662800000,45511],[1499576400000,10119],[1499490000000,7597],[1499403600000,38638],[1499317200000,44288],[1499230800000,43365],[1499144400000,8119],[1499058000000,22398],[1498971600000,6659],[1498885200000,5758],[1498798800000,33829],[1498712400000,41801],[1498626000000,46176],[1498539600000,45924],[1498453200000,46573],[1498366800000,9367],[1498280400000,6698],[1498194000000,38004],[1498107600000,44431],[1498021200000,47539],[1497934800000,47978],[1497848400000,44938],[1497762000000,8597],[1497675600000,7162],[1497589200000,37873],[1497502800000,43166],[1497416400000,45390],[1497330000000,48061],[1497243600000,47110],[1497157200000,9892],[1497070800000,6763],[1496984400000,38264],[1496898000000,45034],[1496811600000,48198],[1496725200000,48877],[1496638800000,46701],[1496552400000,10161],[1496466000000,7418],[1496379600000,38869],[1496293200000,43336],[1496206800000,45475],[1496120400000,44914],[1496034000000,11656],[1495947600000,5793],[1495861200000,5997],[1495774800000,33323],[1495688400000,42159],[1495602000000,44462],[1495515600000,44330],[1495429200000,42095],[1495342800000,8730],[1495256400000,6811],[1495170000000,33732],[1495083600000,39579],[1494997200000,41297],[1494910800000,43071],[1494824400000,41432],[1494738000000,8148],[1494651600000,6772],[1494565200000,33932],[1494478800000,39715],[1494306000000,42680],[1494219600000,41882],[1494133200000,10233],[1494046800000,7809],[1493960400000,33627],[1493874000000,40858],[1493787600000,43581],[1493701200000,44824],[1493614800000,42214],[1493528400000,11410],[1493442000000,8336],[1493355600000,34779]]},{"key":"DOWNLOAD","values":[[1509253200000,7918],[1509166800000,5656],[1509080400000,40850],[1508994000000,49292],[1508907600000,52287],[1508821200000,53590],[1508648400000,8292],[1508562000000,6169],[1508475600000,41010],[1508389200000,47732],[1508302800000,50713],[1508216400000,53143],[1508130000000,51661],[1508043600000,7475],[1507957200000,5326],[1507870800000,41247],[1507784400000,47762],[1507698000000,52722],[1507611600000,51942],[1507525200000,38821],[1507438800000,6296],[1507352400000,4981],[1507266000000,40080],[1507179600000,48928],[1507093200000,51363],[1507006800000,52407],[1506920400000,52065],[1506834000000,7087],[1506747600000,5370],[1506661200000,39462],[1506574800000,48589],[1506488400000,51009],[1506402000000,53347],[1506315600000,52289],[1506142800000,5411],[1506056400000,41108],[1505970000000,46033],[1505883600000,49874],[1505797200000,52989],[1505710800000,51842],[1505624400000,7458],[1505538000000,5167],[1505451600000,41328],[1505365200000,48472],[1505278800000,48173],[1505192400000,46267],[1505106000000,44227],[1505019600000,6920],[1504933200000,4865],[1504846800000,37844],[1504760400000,45058],[1504674000000,48883],[1504587600000,49113],[1504501200000,8781],[1504414800000,4154],[1504328400000,3783],[1504242000000,33885],[1504155600000,44280],[1504069200000,47839],[1503982800000,49918],[1503896400000,47929],[1503810000000,6650],[1503723600000,5219],[1503637200000,38432],[1503550800000,46760],[1503464400000,48039],[1503378000000,49450],[1503291600000,43909],[1503205200000,6696],[1503118800000,5017],[1503032400000,37102],[1502946000000,45507],[1502859600000,46804],[1502773200000,47958],[1502686800000,47988],[1502600400000,6220],[1502514000000,4404],[1502427600000,37914],[1502341200000,43733],[1502254800000,47454],[1502168400000,49137],[1502082000000,47584],[1501995600000,5648],[1501909200000,4129],[1501822800000,37284],[1501736400000,47898],[1501650000000,48699],[1501563600000,49511],[1501477200000,47839],[1501390800000,5634],[1501304400000,4631],[1501218000000,38000],[1501131600000,48185],[1501045200000,49818],[1500958800000,51295],[1500872400000,49536],[1500786000000,5950],[1500699600000,4408],[1500613200000,39454],[1500526800000,49429],[1500440400000,50756],[1500354000000,52396],[1500267600000,51151],[1500181200000,6182],[1500094800000,4465],[1500008400000,40436],[1499922000000,50384],[1499835600000,51163],[1499749200000,51934],[1499662800000,52988],[1499576400000,6622],[1499490000000,4951],[1499403600000,43817],[1499317200000,50611],[1499230800000,49524],[1499144400000,4728],[1499058000000,24152],[1498971600000,3349],[1498885200000,2999],[1498798800000,37590],[1498712400000,48465],[1498626000000,50951],[1498539600000,53242],[1498453200000,52630],[1498366800000,5721],[1498280400000,4437],[1498194000000,40975],[1498107600000,49409],[1498021200000,52444],[1497934800000,53518],[1497848400000,52841],[1497762000000,4635],[1497675600000,4640],[1497589200000,40612],[1497502800000,49066],[1497416400000,51246],[1497330000000,54017],[1497243600000,54529],[1497157200000,6198],[1497070800000,4329],[1496984400000,40955],[1496898000000,50415],[1496811600000,51893],[1496725200000,55045],[1496638800000,54906],[1496552400000,6812],[1496466000000,4257],[1496379600000,42807],[1496293200000,49752],[1496206800000,52378],[1496120400000,53139],[1496034000000,7499],[1495947600000,3172],[1495861200000,3054],[1495774800000,35940],[1495688400000,49102],[1495602000000,51784],[1495515600000,53219],[1495429200000,51179],[1495342800000,5479],[1495256400000,4008],[1495170000000,39178],[1495083600000,48015],[1494997200000,50684],[1494910800000,52419],[1494824400000,51093],[1494738000000,4737],[1494651600000,4440],[1494565200000,38038],[1494478800000,47216],[1494306000000,51311],[1494219600000,50383],[1494133200000,6546],[1494046800000,4700],[1493960400000,38215],[1493874000000,46666],[1493787600000,50980],[1493701200000,52706],[1493614800000,49893],[1493528400000,6832],[1493442000000,5418],[1493355600000,38720]]},{"key":"EMAIL","values":[[1509253200000,11043],[1509166800000,7855],[1509080400000,32866],[1508994000000,39914],[1508907600000,43603],[1508821200000,44808],[1508648400000,10431],[1508562000000,8303],[1508475600000,34478],[1508389200000,41807],[1508302800000,43834],[1508216400000,45722],[1508130000000,42781],[1508043600000,10547],[1507957200000,7564],[1507870800000,33919],[1507784400000,40888],[1507698000000,43203],[1507611600000,44045],[1507525200000,38392],[1507438800000,9513],[1507352400000,6791],[1507266000000,32679],[1507179600000,40701],[1507093200000,42139],[1507006800000,42350],[1506920400000,42623],[1506834000000,10324],[1506747600000,7436],[1506661200000,33309],[1506574800000,40352],[1506488400000,42646],[1506402000000,45129],[1506315600000,44299],[1506142800000,7269],[1506056400000,34339],[1505970000000,39282],[1505883600000,42390],[1505797200000,44013],[1505710800000,43247],[1505624400000,9916],[1505538000000,6849],[1505451600000,33159],[1505365200000,40908],[1505278800000,40928],[1505192400000,39683],[1505106000000,37559],[1505019600000,9520],[1504933200000,7110],[1504846800000,30197],[1504760400000,37527],[1504674000000,41811],[1504587600000,41166],[1504501200000,12168],[1504414800000,6865],[1504328400000,5743],[1504242000000,28752],[1504155600000,37796],[1504069200000,41462],[1503982800000,42315],[1503896400000,41644],[1503810000000,10118],[1503723600000,7383],[1503637200000,33284],[1503550800000,40679],[1503464400000,42653],[1503378000000,40817],[1503291600000,38940],[1503205200000,10508],[1503118800000,7148],[1503032400000,33544],[1502946000000,40369],[1502859600000,41756],[1502773200000,42571],[1502686800000,41997],[1502600400000,10517],[1502514000000,7914],[1502427600000,32643],[1502341200000,40738],[1502254800000,42893],[1502168400000,43286],[1502082000000,41685],[1501995600000,10717],[1501909200000,7605],[1501822800000,33821],[1501736400000,41011],[1501650000000,42694],[1501563600000,41532],[1501477200000,40069],[1501390800000,9458],[1501304400000,7783],[1501218000000,32070],[1501131600000,39881],[1501045200000,42579],[1500958800000,44057],[1500872400000,42140],[1500786000000,10292],[1500699600000,7751],[1500613200000,33440],[1500526800000,40966],[1500440400000,43673],[1500354000000,44689],[1500267600000,42386],[1500181200000,9732],[1500094800000,7611],[1500008400000,33051],[1499922000000,40917],[1499835600000,42946],[1499749200000,42469],[1499662800000,43563],[1499576400000,10362],[1499490000000,7748],[1499403600000,35029],[1499317200000,41547],[1499230800000,40767],[1499144400000,7412],[1499058000000,21084],[1498971600000,6406],[1498885200000,5627],[1498798800000,29197],[1498712400000,39006],[1498626000000,40490],[1498539600000,44281],[1498453200000,42360],[1498366800000,9785],[1498280400000,6850],[1498194000000,33757],[1498107600000,40712],[1498021200000,42877],[1497934800000,43615],[1497848400000,42520],[1497762000000,7893],[1497675600000,7003],[1497589200000,32220],[1497502800000,39729],[1497416400000,42209],[1497330000000,43275],[1497243600000,42707],[1497157200000,9699],[1497070800000,6904],[1496984400000,32770],[1496898000000,39809],[1496811600000,42053],[1496725200000,44699],[1496638800000,44857],[1496552400000,10673],[1496466000000,7332],[1496379600000,33963],[1496293200000,40878],[1496206800000,42278],[1496120400000,45470],[1496034000000,12639],[1495947600000,6753],[1495861200000,6519],[1495774800000,30330],[1495688400000,40892],[1495602000000,43437],[1495515600000,45202],[1495429200000,44086],[1495342800000,9986],[1495256400000,7375],[1495170000000,34472],[1495083600000,41084],[1494997200000,42849],[1494910800000,45241],[1494824400000,44151],[1494738000000,7913],[1494651600000,7277],[1494565200000,33863],[1494478800000,43293],[1494306000000,45706],[1494219600000,44806],[1494133200000,10097],[1494046800000,7561],[1493960400000,34189],[1493874000000,43248],[1493787600000,45517],[1493701200000,44532],[1493614800000,44912],[1493528400000,10911],[1493442000000,7951],[1493355600000,33177]]},{"key":"FOLDER","values":[[1509253200000,24153],[1509166800000,15668],[1509080400000,40279],[1508994000000,50725],[1508907600000,55196],[1508821200000,57050],[1508648400000,23384],[1508562000000,16937],[1508475600000,41858],[1508389200000,50719],[1508302800000,52807],[1508216400000,53978],[1508130000000,53922],[1508043600000,22466],[1507957200000,15692],[1507870800000,41393],[1507784400000,51074],[1507698000000,50533],[1507611600000,49628],[1507525200000,46797],[1507438800000,20676],[1507352400000,14065],[1507266000000,39567],[1507179600000,47594],[1507093200000,49795],[1507006800000,50664],[1506920400000,49803],[1506834000000,19058],[1506747600000,13932],[1506661200000,38683],[1506574800000,46155],[1506488400000,48903],[1506402000000,51384],[1506315600000,50042],[1506142800000,13892],[1506056400000,40630],[1505970000000,47031],[1505883600000,49688],[1505797200000,50108],[1505710800000,51183],[1505624400000,19773],[1505538000000,13987],[1505451600000,40231],[1505365200000,48632],[1505278800000,46767],[1505192400000,45015],[1505106000000,43514],[1505019600000,15845],[1504933200000,11443],[1504846800000,36133],[1504760400000,42228],[1504674000000,43108],[1504587600000,43078],[1504501200000,17200],[1504414800000,11022],[1504328400000,8639],[1504242000000,28556],[1504155600000,38036],[1504069200000,41399],[1503982800000,41147],[1503896400000,39666],[1503810000000,12552],[1503723600000,9756],[1503637200000,29128],[1503550800000,36788],[1503464400000,37763],[1503378000000,38474],[1503291600000,34423],[1503205200000,10662],[1503118800000,8672],[1503032400000,28417],[1502946000000,34258],[1502859600000,36217],[1502773200000,36553],[1502686800000,35564],[1502600400000,10207],[1502514000000,6997],[1502427600000,27157],[1502341200000,35409],[1502254800000,38008],[1502168400000,37856],[1502082000000,38290],[1501995600000,9524],[1501909200000,7142],[1501822800000,30817],[1501736400000,39007],[1501650000000,42906],[1501563600000,43408],[1501477200000,42632],[1501390800000,10174],[1501304400000,7608],[1501218000000,32157],[1501131600000,43862],[1501045200000,47013],[1500958800000,51135],[1500872400000,50020],[1500786000000,10988],[1500699600000,7769],[1500613200000,37554],[1500526800000,47482],[1500440400000,51320],[1500354000000,54103],[1500267600000,54951],[1500181200000,12137],[1500094800000,8127],[1500008400000,40801],[1499922000000,50284],[1499835600000,54195],[1499749200000,53527],[1499662800000,55566],[1499576400000,12673],[1499490000000,8257],[1499403600000,45096],[1499317200000,54063],[1499230800000,54479],[1499144400000,8963],[1499058000000,25708],[1498971600000,8116],[1498885200000,6282],[1498798800000,37350],[1498712400000,49462],[1498626000000,54606],[1498539600000,58169],[1498453200000,59584],[1498366800000,11820],[1498280400000,7740],[1498194000000,43570],[1498107600000,53716],[1498021200000,59211],[1497934800000,62005],[1497848400000,61298],[1497762000000,10904],[1497675600000,7856],[1497589200000,45086],[1497502800000,56225],[1497416400000,59593],[1497330000000,63134],[1497243600000,64559],[1497157200000,12491],[1497070800000,8014],[1496984400000,46672],[1496898000000,56925],[1496811600000,60309],[1496725200000,63081],[1496638800000,63489],[1496552400000,12852],[1496466000000,8883],[1496379600000,48220],[1496293200000,57189],[1496206800000,58750],[1496120400000,57513],[1496034000000,13444],[1495947600000,8125],[1495861200000,6104],[1495774800000,38236],[1495688400000,50354],[1495602000000,52717],[1495515600000,51261],[1495429200000,48309],[1495342800000,10701],[1495256400000,7072],[1495170000000,33599],[1495083600000,42316],[1494997200000,45249],[1494910800000,44086],[1494824400000,39069],[1494738000000,9281],[1494651600000,8021],[1494565200000,27937],[1494478800000,36436],[1494306000000,37328],[1494219600000,36214],[1494133200000,11031],[1494046800000,8033],[1493960400000,26064],[1493874000000,33435],[1493787600000,35756],[1493701200000,35763],[1493614800000,34788],[1493528400000,11837],[1493442000000,8875],[1493355600000,27258]]},{"key":"HIGHLIGHT","values":[[1509253200000,22237],[1509166800000,12256],[1509080400000,68205],[1508994000000,87222],[1508907600000,91832],[1508821200000,93819],[1508648400000,20085],[1508562000000,13192],[1508475600000,67385],[1508389200000,84009],[1508302800000,91638],[1508216400000,94082],[1508130000000,91120],[1508043600000,21832],[1507957200000,14675],[1507870800000,70656],[1507784400000,84360],[1507698000000,85057],[1507611600000,88075],[1507525200000,81798],[1507438800000,19697],[1507352400000,12129],[1507266000000,66807],[1507179600000,84420],[1507093200000,87107],[1507006800000,88374],[1506920400000,85237],[1506834000000,19458],[1506747600000,11313],[1506661200000,64108],[1506574800000,82319],[1506488400000,86014],[1506402000000,92056],[1506315600000,87203],[1506142800000,13599],[1506056400000,66707],[1505970000000,81352],[1505883600000,87399],[1505797200000,89293],[1505710800000,88150],[1505624400000,21782],[1505538000000,13838],[1505451600000,64805],[1505365200000,81919],[1505278800000,83154],[1505192400000,77388],[1505106000000,75432],[1505019600000,19883],[1504933200000,12683],[1504846800000,58107],[1504760400000,76243],[1504674000000,79146],[1504587600000,75214],[1504501200000,24159],[1504414800000,13376],[1504328400000,9444],[1504242000000,48684],[1504155600000,72756],[1504069200000,78814],[1503982800000,79506],[1503896400000,75387],[1503810000000,19586],[1503723600000,12002],[1503637200000,59011],[1503550800000,76509],[1503464400000,77183],[1503378000000,76996],[1503291600000,69464],[1503205200000,17314],[1503118800000,14565],[1503032400000,59651],[1502946000000,74108],[1502859600000,77188],[1502773200000,76529],[1502686800000,76160],[1502600400000,19521],[1502514000000,13927],[1502427600000,59610],[1502341200000,74111],[1502254800000,77902],[1502168400000,81446],[1502082000000,79476],[1501995600000,20552],[1501909200000,12929],[1501822800000,61897],[1501736400000,78440],[1501650000000,82425],[1501563600000,82969],[1501477200000,78020],[1501390800000,18579],[1501304400000,11508],[1501218000000,60495],[1501131600000,85888],[1501045200000,90549],[1500958800000,95346],[1500872400000,89683],[1500786000000,20316],[1500699600000,13428],[1500613200000,68684],[1500526800000,91044],[1500440400000,96497],[1500354000000,102045],[1500267600000,97737],[1500181200000,21536],[1500094800000,12026],[1500008400000,73075],[1499922000000,94556],[1499835600000,97731],[1499749200000,96701],[1499662800000,96452],[1499576400000,20559],[1499490000000,13548],[1499403600000,78152],[1499317200000,95962],[1499230800000,93024],[1499144400000,14721],[1499058000000,44128],[1498971600000,12561],[1498885200000,9213],[1498798800000,63765],[1498712400000,88263],[1498626000000,96960],[1498539600000,101038],[1498453200000,102952],[1498366800000,20469],[1498280400000,11942],[1498194000000,73028],[1498107600000,93155],[1498021200000,101406],[1497934800000,105910],[1497848400000,101234],[1497762000000,14899],[1497675600000,12078],[1497589200000,78871],[1497502800000,96935],[1497416400000,100874],[1497330000000,102433],[1497243600000,106735],[1497157200000,18096],[1497070800000,11176],[1496984400000,74529],[1496898000000,91760],[1496811600000,107443],[1496725200000,105133],[1496638800000,102781],[1496552400000,21124],[1496466000000,14540],[1496379600000,76062],[1496293200000,96528],[1496206800000,99762],[1496120400000,96016],[1496034000000,22040],[1495947600000,11981],[1495861200000,9194],[1495774800000,64784],[1495688400000,88730],[1495602000000,93309],[1495515600000,96266],[1495429200000,90486],[1495342800000,19057],[1495256400000,13040],[1495170000000,65831],[1495083600000,83071],[1494997200000,87598],[1494910800000,89023],[1494824400000,82165],[1494738000000,15790],[1494651600000,12665],[1494565200000,60730],[1494478800000,79099],[1494306000000,84780],[1494219600000,81007],[1494133200000,17835],[1494046800000,10263],[1493960400000,56285],[1493874000000,76327],[1493787600000,81834],[1493701200000,84288],[1493614800000,77588],[1493528400000,19455],[1493442000000,12354],[1493355600000,57903]]},{"key":"NOTES","values":[[1509253200000,606],[1509166800000,437],[1509080400000,1375],[1508994000000,1976],[1508907600000,2347],[1508821200000,2539],[1508648400000,477],[1508562000000,356],[1508475600000,1722],[1508389200000,2133],[1508302800000,2513],[1508216400000,2427],[1508130000000,2112],[1508043600000,843],[1507957200000,582],[1507870800000,1785],[1507784400000,2072],[1507698000000,2275],[1507611600000,1969],[1507525200000,1808],[1507438800000,550],[1507352400000,313],[1507266000000,1398],[1507179600000,1993],[1507093200000,2645],[1507006800000,2402],[1506920400000,1866],[1506834000000,682],[1506747600000,373],[1506661200000,1563],[1506574800000,2096],[1506488400000,2417],[1506402000000,2365],[1506315600000,2339],[1506142800000,481],[1506056400000,1992],[1505970000000,2343],[1505883600000,2520],[1505797200000,2588],[1505710800000,2175],[1505624400000,676],[1505538000000,492],[1505451600000,1547],[1505365200000,2251],[1505278800000,2224],[1505192400000,1906],[1505106000000,2045],[1505019600000,545],[1504933200000,428],[1504846800000,1603],[1504760400000,1944],[1504674000000,1821],[1504587600000,1849],[1504501200000,771],[1504414800000,408],[1504328400000,279],[1504242000000,1179],[1504155600000,1488],[1504069200000,1734],[1503982800000,1958],[1503896400000,1501],[1503810000000,464],[1503723600000,376],[1503637200000,1312],[1503550800000,1732],[1503464400000,1587],[1503378000000,1615],[1503291600000,1442],[1503205200000,406],[1503118800000,336],[1503032400000,1332],[1502946000000,1491],[1502859600000,1492],[1502773200000,1607],[1502686800000,1627],[1502600400000,475],[1502514000000,409],[1502427600000,1347],[1502341200000,1748],[1502254800000,1885],[1502168400000,1920],[1502082000000,1935],[1501995600000,575],[1501909200000,309],[1501822800000,1482],[1501736400000,1923],[1501650000000,1801],[1501563600000,2027],[1501477200000,1756],[1501390800000,404],[1501304400000,479],[1501218000000,1444],[1501131600000,2105],[1501045200000,2213],[1500958800000,2096],[1500872400000,2213],[1500786000000,702],[1500699600000,466],[1500613200000,1582],[1500526800000,2166],[1500440400000,2231],[1500354000000,2630],[1500267600000,2625],[1500181200000,585],[1500094800000,299],[1500008400000,1685],[1499922000000,2415],[1499835600000,2547],[1499749200000,2331],[1499662800000,2538],[1499576400000,506],[1499490000000,382],[1499403600000,1933],[1499317200000,2445],[1499230800000,2482],[1499144400000,367],[1499058000000,1107],[1498971600000,331],[1498885200000,211],[1498798800000,1681],[1498712400000,2202],[1498626000000,2472],[1498539600000,2565],[1498453200000,2614],[1498366800000,535],[1498280400000,412],[1498194000000,1870],[1498107600000,2543],[1498021200000,3094],[1497934800000,2922],[1497848400000,2897],[1497762000000,413],[1497675600000,300],[1497589200000,2177],[1497502800000,2812],[1497416400000,2810],[1497330000000,3068],[1497243600000,2897],[1497157200000,626],[1497070800000,356],[1496984400000,2275],[1496898000000,2969],[1496811600000,3633],[1496725200000,3206],[1496638800000,3282],[1496552400000,670],[1496466000000,444],[1496379600000,2570],[1496293200000,3152],[1496206800000,3225],[1496120400000,2870],[1496034000000,492],[1495947600000,406],[1495861200000,294],[1495774800000,2256],[1495688400000,2548],[1495602000000,2768],[1495515600000,2781],[1495429200000,2683],[1495342800000,464],[1495256400000,499],[1495170000000,1785],[1495083600000,1982],[1494997200000,2224],[1494910800000,2190],[1494824400000,1733],[1494738000000,464],[1494651600000,550],[1494565200000,1337],[1494478800000,1570],[1494306000000,2099],[1494219600000,1731],[1494133200000,470],[1494046800000,227],[1493960400000,1396],[1493874000000,1565],[1493787600000,1753],[1493701200000,1662],[1493614800000,1803],[1493528400000,550],[1493442000000,394],[1493355600000,1193]]}];
}
}
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { NvD3Component } from 'ng2-nvd3';
@NgModule({
imports: [ BrowserModule ],
declarations: [ AppComponent, NvD3Component ],
bootstrap: [ AppComponent ]
})
export class AppModule { }
var templateUrlRegex = /templateUrl\s*:(\s*['"`](.*?)['"`]\s*)/gm;
var stylesRegex = /styleUrls *:(\s*\[[^\]]*?\])/g;
var stringRegex = /(['`"])((?:[^\\]\\\1|.)*?)\1/g;
module.exports.translate = function(load){
if (load.source.indexOf('moduleId') != -1) return load;
var url = document.createElement('a');
url.href = load.address;
var basePathParts = url.pathname.split('/');
basePathParts.pop();
var basePath = basePathParts.join('/');
var baseHref = document.createElement('a');
baseHref.href = this.baseURL;
baseHref = baseHref.pathname;
if (!baseHref.startsWith('/base/')) { // it is not karma
basePath = basePath.replace(baseHref, '');
}
load.source = load.source
.replace(templateUrlRegex, function(match, quote, url){
let resolvedUrl = url;
if (url.startsWith('.')) {
resolvedUrl = basePath + url.substr(1);
}
return 'templateUrl: "' + resolvedUrl + '"';
})
.replace(stylesRegex, function(match, relativeUrls) {
var urls = [];
while ((match = stringRegex.exec(relativeUrls)) !== null) {
if (match[2].startsWith('.')) {
urls.push('"' + basePath + match[2].substr(1) + '"');
} else {
urls.push('"' + match[2] + '"');
}
}
return "styleUrls: [" + urls.join(', ') + "]";
});
return load;
};