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-body>
</nb-card> </nb-card>
</div> </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> </div>

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 * Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10
*/ */
import 'intl'; // Run `npm install --save intl`. import 'intl'; // Run `npm install --save intl`.
import 'core-js/es7/array';
if (typeof SVGElement.prototype.contains === 'undefined') {
SVGElement.prototype.contains = HTMLDivElement.prototype.contains;
}