fix(charts): add polyfills for the IE for d3 charts

This commit is contained in:
KostyaDanovsky 2017-09-20 11:07:52 +03:00
parent 4fd404788a
commit f0325bab13
3 changed files with 7 additions and 9 deletions

View file

@ -39,12 +39,4 @@
</nb-card-body>
</nb-card>
</div>
<div class="col-lg-6">
<nb-card>
<nb-card-header>Polar Chart</nb-card-header>
<nb-card-body>
<ngx-d3-polar></ngx-d3-polar>
</nb-card-body>
</nb-card>
</div>
</div>

View file

@ -4,7 +4,7 @@ import { Component } from '@angular/core';
selector: 'ngx-tab1',
template: `
<p>Early home automation began with labor-saving machines. Self-contained electric or gas powered
<a target="_blank" href="https://en.wikipedia.org/wiki/Home_appliances">home appliances</a>
<a target="_blank" href="https://en.wikipedia.org/wiki/Home_appliances">home appliances</a>
became viable in the 1900s with the introduction of
<a target="_blank" href="https://en.wikipedia.org/wiki/Electric_power_distribution">electric power distribution
</a> and led to the introduction of washing machines (1904), water heaters (1889), refrigerators, sewing machines,

View file

@ -69,3 +69,9 @@ import 'zone.js/dist/zone'; // Included with Angular CLI.
* Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10
*/
import 'intl'; // Run `npm install --save intl`.
import 'core-js/es7/array';
if (typeof SVGElement.prototype.contains === 'undefined') {
SVGElement.prototype.contains = HTMLDivElement.prototype.contains;
}