Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

highcharts-angular

Package Overview
Dependencies
Maintainers
5
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

highcharts-angular - npm Package Compare versions

Comparing version 2.3.1 to 2.4.0

47

bundles/highcharts-angular.umd.js

@@ -9,5 +9,5 @@ (function (global, factory) {

* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
* @suppress {checkTypes} checked by tsc
*/
var HighchartsChartComponent = (function () {
var HighchartsChartComponent = /** @class */ (function () {
function HighchartsChartComponent(el, _zone // #75

@@ -73,4 +73,3 @@ ) {

else {
this.chart = this.Highcharts[this.constructorType || 'chart'](this.el.nativeElement, this.optionsValue, this.callbackFunction || null);
this.optionsValue.series = this.chart.userOptions.series;
this.chart = ( /** @type {?} */(this.Highcharts))[this.constructorType || 'chart'](this.el.nativeElement, this.optionsValue, this.callbackFunction || null);
// emit chart instance on init

@@ -88,3 +87,3 @@ this.chartInstance.emit(this.chart);

// #44
if (this.chart) {
if (this.chart) { // #56
// #56

@@ -99,3 +98,3 @@ this.chart.destroy();

template: ''
},] },
}] }
];

@@ -105,16 +104,16 @@ /** @nocollapse */

return [
{ type: core.ElementRef },
{ type: core.NgZone }
{ type: core.ElementRef, },
{ type: core.NgZone, },
];
};
HighchartsChartComponent.propDecorators = {
Highcharts: [{ type: core.Input }],
constructorType: [{ type: core.Input }],
callbackFunction: [{ type: core.Input }],
oneToOne: [{ type: core.Input }],
runOutsideAngular: [{ type: core.Input }],
options: [{ type: core.Input }],
update: [{ type: core.Input }],
updateChange: [{ type: core.Output }],
chartInstance: [{ type: core.Output }]
"Highcharts": [{ type: core.Input },],
"constructorType": [{ type: core.Input },],
"callbackFunction": [{ type: core.Input },],
"oneToOne": [{ type: core.Input },],
"runOutsideAngular": [{ type: core.Input },],
"options": [{ type: core.Input },],
"update": [{ type: core.Input },],
"updateChange": [{ type: core.Output },],
"chartInstance": [{ type: core.Output },],
};

@@ -126,5 +125,5 @@ return HighchartsChartComponent;

* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
* @suppress {checkTypes} checked by tsc
*/
var HighchartsChartModule = (function () {
var HighchartsChartModule = /** @class */ (function () {
function HighchartsChartModule() {

@@ -136,4 +135,6 @@ }

exports: [HighchartsChartComponent]
},] },
},] }
];
/** @nocollapse */
HighchartsChartModule.ctorParameters = function () { return []; };
return HighchartsChartModule;

@@ -144,3 +145,3 @@ }());

* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
* @suppress {checkTypes} checked by tsc
*/

@@ -150,3 +151,3 @@

* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
* @suppress {checkTypes} checked by tsc
*/

@@ -161,2 +162,2 @@

//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGlnaGNoYXJ0cy1hbmd1bGFyLnVtZC5qcy5tYXAiLCJzb3VyY2VzIjpbIm5nOi8vaGlnaGNoYXJ0cy1hbmd1bGFyL2xpYi9oaWdoY2hhcnRzLWNoYXJ0LmNvbXBvbmVudC50cyIsIm5nOi8vaGlnaGNoYXJ0cy1hbmd1bGFyL2xpYi9oaWdoY2hhcnRzLWNoYXJ0Lm1vZHVsZS50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQsIEVsZW1lbnRSZWYsIEV2ZW50RW1pdHRlciwgSW5wdXQsIE9uRGVzdHJveSwgT3V0cHV0LCBOZ1pvbmUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcclxuXHJcbkBDb21wb25lbnQoe1xyXG4gIHNlbGVjdG9yOiAnaGlnaGNoYXJ0cy1jaGFydCcsXHJcbiAgdGVtcGxhdGU6ICcnXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBIaWdoY2hhcnRzQ2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BRSx3QkFBd0IsQ0FBRTt3QkFDMUMsT0FBTyxFQUFFLENBQUUsd0JBQXdCLENBQUU7cUJBQ3RDOzs7O29DQU5EOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7In0=

@@ -1,2 +0,2 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("highcharts-angular",["exports","@angular/core"],e):e(t["highcharts-angular"]={},t.ng.core)}(this,function(t,r){"use strict";var e=function(){function t(t,e){this.el=t,this._zone=e,this.updateChange=new r.EventEmitter(!0),this.chartInstance=new r.EventEmitter}return Object.defineProperty(t.prototype,"options",{set:function(t){this.optionsValue=t,this.wrappedUpdateOrCreateChart()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"update",{set:function(t){t&&(this.wrappedUpdateOrCreateChart(),this.updateChange.emit(!1))},enumerable:!0,configurable:!0}),t.prototype.wrappedUpdateOrCreateChart=function(){var t=this;this.runOutsideAngular?this._zone.runOutsideAngular(function(){t.updateOrCreateChart()}):this.updateOrCreateChart()},t.prototype.updateOrCreateChart=function(){this.chart&&this.chart.update?this.chart.update(this.optionsValue,!0,this.oneToOne||!1):(this.chart=this.Highcharts[this.constructorType||"chart"](this.el.nativeElement,this.optionsValue,this.callbackFunction||null),this.optionsValue.series=this.chart.userOptions.series,this.chartInstance.emit(this.chart))},t.prototype.ngOnDestroy=function(){this.chart&&(this.chart.destroy(),this.chart=null)},t.decorators=[{type:r.Component,args:[{selector:"highcharts-chart",template:""}]}],t.ctorParameters=function(){return[{type:r.ElementRef},{type:r.NgZone}]},t.propDecorators={Highcharts:[{type:r.Input}],constructorType:[{type:r.Input}],callbackFunction:[{type:r.Input}],oneToOne:[{type:r.Input}],runOutsideAngular:[{type:r.Input}],options:[{type:r.Input}],update:[{type:r.Input}],updateChange:[{type:r.Output}],chartInstance:[{type:r.Output}]},t}(),n=function(){function t(){}return t.decorators=[{type:r.NgModule,args:[{declarations:[e],exports:[e]}]}],t}();t.HighchartsChartModule=n,t.HighchartsChartComponent=e,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("highcharts-angular",["exports","@angular/core"],e):e(t["highcharts-angular"]={},t.ng.core)}(this,function(t,r){"use strict";var e=function(){function t(t,e){this.el=t,this._zone=e,this.updateChange=new r.EventEmitter(!0),this.chartInstance=new r.EventEmitter}return Object.defineProperty(t.prototype,"options",{set:function(t){this.optionsValue=t,this.wrappedUpdateOrCreateChart()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"update",{set:function(t){t&&(this.wrappedUpdateOrCreateChart(),this.updateChange.emit(!1))},enumerable:!0,configurable:!0}),t.prototype.wrappedUpdateOrCreateChart=function(){var t=this;this.runOutsideAngular?this._zone.runOutsideAngular(function(){t.updateOrCreateChart()}):this.updateOrCreateChart()},t.prototype.updateOrCreateChart=function(){this.chart&&this.chart.update?this.chart.update(this.optionsValue,!0,this.oneToOne||!1):(this.chart=this.Highcharts[this.constructorType||"chart"](this.el.nativeElement,this.optionsValue,this.callbackFunction||null),this.chartInstance.emit(this.chart))},t.prototype.ngOnDestroy=function(){this.chart&&(this.chart.destroy(),this.chart=null)},t.decorators=[{type:r.Component,args:[{selector:"highcharts-chart",template:""}]}],t.ctorParameters=function(){return[{type:r.ElementRef},{type:r.NgZone}]},t.propDecorators={Highcharts:[{type:r.Input}],constructorType:[{type:r.Input}],callbackFunction:[{type:r.Input}],oneToOne:[{type:r.Input}],runOutsideAngular:[{type:r.Input}],options:[{type:r.Input}],update:[{type:r.Input}],updateChange:[{type:r.Output}],chartInstance:[{type:r.Output}]},t}(),n=function(){function t(){}return t.decorators=[{type:r.NgModule,args:[{declarations:[e],exports:[e]}]}],t.ctorParameters=function(){return[]},t}();t.HighchartsChartModule=n,t.HighchartsChartComponent=e,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=highcharts-angular.umd.min.js.map
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
* @suppress {checkTypes} checked by tsc
*/

@@ -8,4 +8,4 @@ /**

*/
export { HighchartsChartModule, HighchartsChartComponent } from './public_api';
export { HighchartsChartModule, HighchartsChartComponent } from "./public_api";
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGlnaGNoYXJ0cy1hbmd1bGFyLmpzIiwic291cmNlUm9vdCI6Im5nOi8vaGlnaGNoYXJ0cy1hbmd1bGFyLyIsInNvdXJjZXMiOlsiaGlnaGNoYXJ0cy1hbmd1bGFyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSxnRUFBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG4iXX0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGlnaGNoYXJ0cy1hbmd1bGFyLmpzIiwic291cmNlUm9vdCI6Im5nOi8vaGlnaGNoYXJ0cy1hbmd1bGFyLyIsInNvdXJjZXMiOlsiaGlnaGNoYXJ0cy1hbmd1bGFyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSwrRUFBNkIiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG4iXX0=
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
* @suppress {checkTypes} checked by tsc
*/
import { Component, ElementRef, EventEmitter, Input, Output, NgZone } from '@angular/core';
import { Component, ElementRef, EventEmitter, Input, OnDestroy, Output, NgZone } from "@angular/core";
import * as Highcharts from "highcharts";
export class HighchartsChartComponent {

@@ -58,4 +59,3 @@ /**

else {
this.chart = this.Highcharts[this.constructorType || 'chart'](this.el.nativeElement, this.optionsValue, this.callbackFunction || null);
this.optionsValue.series = this.chart.userOptions.series;
this.chart = (/** @type {?} */ (this.Highcharts))[this.constructorType || 'chart'](this.el.nativeElement, this.optionsValue, this.callbackFunction || null);
// emit chart instance on init

@@ -70,3 +70,3 @@ this.chartInstance.emit(this.chart);

// #44
if (this.chart) {
if (this.chart) { // #56
// #56

@@ -82,21 +82,30 @@ this.chart.destroy();

template: ''
},] },
}] }
];
/** @nocollapse */
HighchartsChartComponent.ctorParameters = () => [
{ type: ElementRef },
{ type: NgZone }
{ type: ElementRef, },
{ type: NgZone, },
];
HighchartsChartComponent.propDecorators = {
Highcharts: [{ type: Input }],
constructorType: [{ type: Input }],
callbackFunction: [{ type: Input }],
oneToOne: [{ type: Input }],
runOutsideAngular: [{ type: Input }],
options: [{ type: Input }],
update: [{ type: Input }],
updateChange: [{ type: Output }],
chartInstance: [{ type: Output }]
"Highcharts": [{ type: Input },],
"constructorType": [{ type: Input },],
"callbackFunction": [{ type: Input },],
"oneToOne": [{ type: Input },],
"runOutsideAngular": [{ type: Input },],
"options": [{ type: Input },],
"update": [{ type: Input },],
"updateChange": [{ type: Output },],
"chartInstance": [{ type: Output },],
};
if (false) {
function HighchartsChartComponent_tsickle_Closure_declarations() {
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
HighchartsChartComponent.decorators;
/**
* @nocollapse
* @type {function(): !Array<(null|{type: ?, decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>)})>}
*/
HighchartsChartComponent.ctorParameters;
/** @type {!Object<string,!Array<{type: !Function, args: (undefined|!Array<?>)}>>} */
HighchartsChartComponent.propDecorators;
/** @type {?} */

@@ -126,2 +135,2 @@ HighchartsChartComponent.prototype.Highchar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ZSB8fCAnY2hhcnQnXShcclxuICAgICAgICB0aGlzLmVsLm5hdGl2ZUVsZW1lbnQsXHJcbiAgICAgICAgdGhpcy5vcHRpb25zVmFsdWUsXHJcbiAgICAgICAgdGhpcy5jYWxsYmFja0Z1bmN0aW9uIHx8IG51bGxcclxuICAgICAgKTtcclxuXHJcbiAgICAgIC8vIGVtaXQgY2hhcnQgaW5zdGFuY2Ugb24gaW5pdFxyXG4gICAgICB0aGlzLmNoYXJ0SW5zdGFuY2UuZW1pdCh0aGlzLmNoYXJ0KTtcclxuICAgIH1cclxuICB9XHJcblxyXG4gIG5nT25EZXN0cm95KCkgeyAvLyAjNDRcclxuICAgIGlmICh0aGlzLmNoYXJ0KSB7ICAvLyAjNTZcclxuICAgICAgdGhpcy5jaGFydC5kZXN0cm95KCk7XHJcbiAgICAgIHRoaXMuY2hhcnQgPSBudWxsO1xyXG4gICAgfVxyXG4gIH1cclxufVxyXG4iXX0=
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
* @suppress {checkTypes} checked by tsc
*/
import { NgModule } from '@angular/core';
import { HighchartsChartComponent } from './highcharts-chart.component';
import { NgModule } from "@angular/core";
import { HighchartsChartComponent } from "./highcharts-chart.component";
export class HighchartsChartModule {

@@ -13,5 +13,16 @@ }

exports: [HighchartsChartComponent]
},] },
},] }
];
/** @nocollapse */
HighchartsChartModule.ctorParameters = () => [];
function HighchartsChartModule_tsickle_Closure_declarations() {
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
HighchartsChartModule.decorators;
/**
* @nocollapse
* @type {function(): !Array<(null|{type: ?, decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>)})>}
*/
HighchartsChartModule.ctorParameters;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGlnaGNoYXJ0cy1jaGFydC5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9oaWdoY2hhcnR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kFBd0IsRUFBQyxxQ0FBcUM7QUFNdEUsTUFBTSxPQUFPLHFCQUFxQjs7O1lBSmpDLFFBQVEsU0FBQztnQkFDUixZQUFZLEVBQUUsQ0FBRSx3QkFBd0IsQ0FBRTtnQkFDMUMsT0FBTyxFQUFFLENBQUUsd0JBQXdCLENBQUU7YUFDdEMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge05nTW9kdWxlfSBmcm9tICdAYW5ndWxhci9jb3JlJztcclxuaW1wb3J0IHtIaWdoY2hhcnRzQ2hhcnRDb21wb25lbnR9IGZyb20gJy4vaGlnaGNoYXJ0cy1jaGFydC5jb21wb25lbnQnO1xyXG5cclxuQE5nTW9kdWxlKHtcclxuICBkZWNsYXJhdGlvbnM6IFsgSGlnaGNoYXJ0c0NoYXJ0Q29tcG9uZW50IF0sXHJcbiAgZXhwb3J0czogWyBIaWdoY2hhcnRzQ2hhcnRDb21wb25lbnQgXVxyXG59KVxyXG5leHBvcnQgY2xhc3MgSGlnaGNoYXJ0c0NoYXJ0TW9kdWxlIHt9XHJcbiJdfQ==
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
* @suppress {checkTypes} checked by tsc
*/

@@ -8,5 +8,5 @@ /*

*/
export { HighchartsChartModule } from './lib/highcharts-chart.module';
export { HighchartsChartComponent } from './lib/highcharts-chart.component';
export { HighchartsChartModule } from "./lib/highcharts-chart.module";
export { HighchartsChartComponent } from "./lib/highcharts-chart.component";
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL2hpZ2hjaGFydHMtYW5ndWxhci8iLCJzb3VyY2VzIjpbInB1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUlBLHNDQUFjLCtCQUErQixDQUFDO0FBQzlDLHlDQUFjLGtDQUFrQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcclxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIGhpZ2hjaGFydHMtYW5ndWxhclxyXG4gKi9cclxuXHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2hpZ2hjaGFydHMtY2hhcnQubW9kdWxlJztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvaGlnaGNoYXJ0cy1jaGFydC5jb21wb25lbnQnO1xyXG4iXX0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL2hpZ2hjaGFydHMtYW5ndWxhci8iLCJzb3VyY2VzIjpbInB1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUlBLHNFQUE4QztBQUM5Qyw0RUFBaUQiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxyXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgaGlnaGNoYXJ0cy1hbmd1bGFyXHJcbiAqL1xyXG5cclxuZXhwb3J0ICogZnJvbSAnLi9saWIvaGlnaGNoYXJ0cy1jaGFydC5tb2R1bGUnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9oaWdoY2hhcnRzLWNoYXJ0LmNvbXBvbmVudCc7XHJcbiJdfQ==
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
* @suppress {checkTypes} checked by tsc
*/

@@ -8,4 +8,4 @@ /**

*/
export { HighchartsChartModule, HighchartsChartComponent } from './public_api';
export { HighchartsChartModule, HighchartsChartComponent } from "./public_api";
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGlnaGNoYXJ0cy1hbmd1bGFyLmpzIiwic291cmNlUm9vdCI6Im5nOi8vaGlnaGNoYXJ0cy1hbmd1bGFyLyIsInNvdXJjZXMiOlsiaGlnaGNoYXJ0cy1hbmd1bGFyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSxnRUFBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG4iXX0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGlnaGNoYXJ0cy1hbmd1bGFyLmpzIiwic291cmNlUm9vdCI6Im5nOi8vaGlnaGNoYXJ0cy1hbmd1bGFyLyIsInNvdXJjZXMiOlsiaGlnaGNoYXJ0cy1hbmd1bGFyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSwrRUFBNkIiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG4iXX0=
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
* @suppress {checkTypes} checked by tsc
*/
import { Component, ElementRef, EventEmitter, Input, Output, NgZone } from '@angular/core';
import { Component, ElementRef, EventEmitter, Input, OnDestroy, Output, NgZone } from "@angular/core";
import * as Highcharts from "highcharts";
var HighchartsChartComponent = /** @class */ (function () {

@@ -69,4 +70,3 @@ function HighchartsChartComponent(el, _zone // #75

else {
this.chart = this.Highcharts[this.constructorType || 'chart'](this.el.nativeElement, this.optionsValue, this.callbackFunction || null);
this.optionsValue.series = this.chart.userOptions.series;
this.chart = (/** @type {?} */ (this.Highcharts))[this.constructorType || 'chart'](this.el.nativeElement, this.optionsValue, this.callbackFunction || null);
// emit chart instance on init

@@ -84,3 +84,3 @@ this.chartInstance.emit(this.chart);

// #44
if (this.chart) {
if (this.chart) { // #56
// #56

@@ -95,19 +95,19 @@ this.chart.destroy();

template: ''
},] },
}] }
];
/** @nocollapse */
HighchartsChartComponent.ctorParameters = function () { return [
{ type: ElementRef },
{ type: NgZone }
{ type: ElementRef, },
{ type: NgZone, },
]; };
HighchartsChartComponent.propDecorators = {
Highcharts: [{ type: Input }],
constructorType: [{ type: Input }],
callbackFunction: [{ type: Input }],
oneToOne: [{ type: Input }],
runOutsideAngular: [{ type: Input }],
options: [{ type: Input }],
update: [{ type: Input }],
updateChange: [{ type: Output }],
chartInstance: [{ type: Output }]
"Highcharts": [{ type: Input },],
"constructorType": [{ type: Input },],
"callbackFunction": [{ type: Input },],
"oneToOne": [{ type: Input },],
"runOutsideAngular": [{ type: Input },],
"options": [{ type: Input },],
"update": [{ type: Input },],
"updateChange": [{ type: Output },],
"chartInstance": [{ type: Output },],
};

@@ -117,3 +117,12 @@ return HighchartsChartComponent;

export { HighchartsChartComponent };
if (false) {
function HighchartsChartComponent_tsickle_Closure_declarations() {
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
HighchartsChartComponent.decorators;
/**
* @nocollapse
* @type {function(): !Array<(null|{type: ?, decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>)})>}
*/
HighchartsChartComponent.ctorParameters;
/** @type {!Object<string,!Array<{type: !Function, args: (undefined|!Array<?>)}>>} */
HighchartsChartComponent.propDecorators;
/** @type {?} */

@@ -143,2 +152,2 @@ HighchartsChartComponent.prototype.Highcharts;

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGlnaGNoYXJ0cy1jaGFydC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9oaWdoY2hhcnRzLWFuZ3VsYXIvIiwic291cmNlcyI6WyJsaWIvaGlnaGNoYXJ0cy1jaGFydC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxTQ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YWxsYmFja0Z1bmN0aW9uIHx8IG51bGxcclxuICAgICAgKTtcclxuXHJcbiAgICAgIC8vIGVtaXQgY2hhcnQgaW5zdGFuY2Ugb24gaW5pdFxyXG4gICAgICB0aGlzLmNoYXJ0SW5zdGFuY2UuZW1pdCh0aGlzLmNoYXJ0KTtcclxuICAgIH1cclxuICB9XHJcblxyXG4gIG5nT25EZXN0cm95KCkgeyAvLyAjNDRcclxuICAgIGlmICh0aGlzLmNoYXJ0KSB7ICAvLyAjNTZcclxuICAgICAgdGhpcy5jaGFydC5kZXN0cm95KCk7XHJcbiAgICAgIHRoaXMuY2hhcnQgPSBudWxsO1xyXG4gICAgfVxyXG4gIH1cclxufVxyXG4iXX0=
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
* @suppress {checkTypes} checked by tsc
*/
import { NgModule } from '@angular/core';
import { HighchartsChartComponent } from './highcharts-chart.component';
import { NgModule } from "@angular/core";
import { HighchartsChartComponent } from "./highcharts-chart.component";
var HighchartsChartModule = /** @class */ (function () {

@@ -14,8 +14,19 @@ function HighchartsChartModule() {

exports: [HighchartsChartComponent]
},] },
},] }
];
/** @nocollapse */
HighchartsChartModule.ctorParameters = function () { return []; };
return HighchartsChartModule;
}());
export { HighchartsChartModule };
function HighchartsChartModule_tsickle_Closure_declarations() {
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
HighchartsChartModule.decorators;
/**
* @nocollapse
* @type {function(): !Array<(null|{type: ?, decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>)})>}
*/
HighchartsChartModule.ctorParameters;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGlnaGNoYXJ0cy1jaGFydC5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9oaWdoY2hhcnRzLWFuZ3VsYXIvIiwic291cmNlcyI6WyJsaWIvaGlnaGNoYXJ0cy1jaGFydC5tb2R1bGUudH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RQUFRLFNBQUM7b0JBQ1IsWUFBWSxFQUFFLENBQUUsd0JBQXdCLENBQUU7b0JBQzFDLE9BQU8sRUFBRSxDQUFFLHdCQUF3QixDQUFFO2lCQUN0Qzs7OztnQ0FORDs7U0FPYSxxQkFBcUIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge05nTW9kdWxlfSBmcm9tICdAYW5ndWxhci9jb3JlJztcclxuaW1wb3J0IHtIaWdoY2hhcnRzQ2hhcnRDb21wb25lbnR9IGZyb20gJy4vaGlnaGNoYXJ0cy1jaGFydC5jb21wb25lbnQnO1xyXG5cclxuQE5nTW9kdWxlKHtcclxuICBkZWNsYXJhdGlvbnM6IFsgSGlnaGNoYXJ0c0NoYXJ0Q29tcG9uZW50IF0sXHJcbiAgZXhwb3J0czogWyBIaWdoY2hhcnRzQ2hhcnRDb21wb25lbnQgXVxyXG59KVxyXG5leHBvcnQgY2xhc3MgSGlnaGNoYXJ0c0NoYXJ0TW9kdWxlIHt9XHJcbiJdfQ==
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
* @suppress {checkTypes} checked by tsc
*/

@@ -8,5 +8,5 @@ /*

*/
export { HighchartsChartModule } from './lib/highcharts-chart.module';
export { HighchartsChartComponent } from './lib/highcharts-chart.component';
export { HighchartsChartModule } from "./lib/highcharts-chart.module";
export { HighchartsChartComponent } from "./lib/highcharts-chart.component";
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL2hpZ2hjaGFydHMtYW5ndWxhci8iLCJzb3VyY2VzIjpbInB1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUlBLHNDQUFjLCtCQUErQixDQUFDO0FBQzlDLHlDQUFjLGtDQUFrQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcclxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIGhpZ2hjaGFydHMtYW5ndWxhclxyXG4gKi9cclxuXHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2hpZ2hjaGFydHMtY2hhcnQubW9kdWxlJztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvaGlnaGNoYXJ0cy1jaGFydC5jb21wb25lbnQnO1xyXG4iXX0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL2hpZ2hjaGFydHMtYW5ndWxhci8iLCJzb3VyY2VzIjpbInB1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUlBLHNFQUE4QztBQUM5Qyw0RUFBaUQiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxyXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgaGlnaGNoYXJ0cy1hbmd1bGFyXHJcbiAqL1xyXG5cclxuZXhwb3J0ICogZnJvbSAnLi9saWIvaGlnaGNoYXJ0cy1jaGFydC5tb2R1bGUnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9oaWdoY2hhcnRzLWNoYXJ0LmNvbXBvbmVudCc7XHJcbiJdfQ==
import { Component, ElementRef, EventEmitter, Input, Output, NgZone, NgModule } from '@angular/core';
import 'highcharts';
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
* @suppress {checkTypes} checked by tsc
*/

@@ -59,4 +60,3 @@ class HighchartsChartComponent {

else {
this.chart = this.Highcharts[this.constructorType || 'chart'](this.el.nativeElement, this.optionsValue, this.callbackFunction || null);
this.optionsValue.series = this.chart.userOptions.series;
this.chart = (/** @type {?} */ (this.Highcharts))[this.constructorType || 'chart'](this.el.nativeElement, this.optionsValue, this.callbackFunction || null);
// emit chart instance on init

@@ -71,3 +71,3 @@ this.chartInstance.emit(this.chart);

// #44
if (this.chart) {
if (this.chart) { // #56
// #56

@@ -83,19 +83,19 @@ this.chart.destroy();

template: ''
},] },
}] }
];
/** @nocollapse */
HighchartsChartComponent.ctorParameters = () => [
{ type: ElementRef },
{ type: NgZone }
{ type: ElementRef, },
{ type: NgZone, },
];
HighchartsChartComponent.propDecorators = {
Highcharts: [{ type: Input }],
constructorType: [{ type: Input }],
callbackFunction: [{ type: Input }],
oneToOne: [{ type: Input }],
runOutsideAngular: [{ type: Input }],
options: [{ type: Input }],
update: [{ type: Input }],
updateChange: [{ type: Output }],
chartInstance: [{ type: Output }]
"Highcharts": [{ type: Input },],
"constructorType": [{ type: Input },],
"callbackFunction": [{ type: Input },],
"oneToOne": [{ type: Input },],
"runOutsideAngular": [{ type: Input },],
"options": [{ type: Input },],
"update": [{ type: Input },],
"updateChange": [{ type: Output },],
"chartInstance": [{ type: Output },],
};

@@ -105,3 +105,3 @@

* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
* @suppress {checkTypes} checked by tsc
*/

@@ -114,8 +114,10 @@ class HighchartsChartModule {

exports: [HighchartsChartComponent]
},] },
},] }
];
/** @nocollapse */
HighchartsChartModule.ctorParameters = () => [];
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
* @suppress {checkTypes} checked by tsc
*/

@@ -125,3 +127,3 @@

* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
* @suppress {checkTypes} checked by tsc
*/

@@ -131,2 +133,2 @@

//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGlnaGNoYXJ0cy1hbmd1bGFyLmpzLm1hcCIsInNvdXJjZXMiOlsibmc6Ly9oaWdoY2hhcnRzLWFuZ3VsYXIvbGliL2hpZ2hjaGFydHMtY2hhcnQuY29tcG9uZW50LnRzIiwibmc6Ly9oaWdoY2hhcnRzLWFuZ3VsYXIvbGliL2hpZ2hjaGFydHMtY2hhc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aUIsR0FBRSxJQUFJLENBQUMsZUFBZSxJQUFJLE9BQU8sQ0FBQyxDQUNwRSxJQUFJLENBQUMsRUFBRSxDQUFDLGFBQWEsRUFDckIsSUFBSSxDQUFDLFlBQVksRUFDakIsSUFBSSxDQUFDLGdCQUFnQixJQUFJLElBQUksQ0FDOUIsQ0FBQzs7WUFHRixJQUFJLENBQUMsYUFBYSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLENBQUM7U0FDckM7S0FDRjs7OztJQUVELFdBQVc7O1FBQ1QsSUFBSSxJQUFJLENBQUMsS0FBSyxFQUFFOztZQUNkLElBQUksQ0FBQyxLQUFLLENBQUMsT0FBTyxFQUFFLENBQUM7WUFDckIsSUFBSSxDQUFDLEtBQUssR0FBRyxJQUFJLENBQUM7U0FDbkI7S0FDRjs7O1lBL0RGLFNBQVMsU0FBQztnQkFDVCxRQUFRLEVBQUUsa0JBQWtCO2dCQUM1QixRQUFRLEVBQUUsRUFBRTthQUNiOzs7O1lBTm1CLFVBQVU7WUFBMEMsTUFBTTs7OzJCQVEzRSxLQUFLO2dDQUNMLEtBQUs7aUNBQ0wsS0FBSzt5QkFDTCxLQUFLO2tDQUNMLEtBQUs7d0JBRUwsS0FBSzt1QkFJTCxLQUFLOzZCQU9MLE1BQU07OEJBQ04sTUFBTTs7Ozs7OztBQzFCVCxNQU9hLHFCQUFxQjs7O1lBSmpDLFFBQVEsU0FBQztnQkFDUixZQUFZLEVBQUUsQ0FBRSx3QkFBd0IsQ0FBRTtnQkFDMUMsT0FBTyxFQUFFLENBQUUsd0JBQXdCLENBQUU7YUFDdEM7Ozs7Ozs7Ozs7Ozs7Ozs7OyJ9
import { Component, ElementRef, EventEmitter, Input, Output, NgZone, NgModule } from '@angular/core';
import 'highcharts';
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
* @suppress {checkTypes} checked by tsc
*/

@@ -70,4 +71,3 @@ var HighchartsChartComponent = /** @class */ (function () {

else {
this.chart = this.Highcharts[this.constructorType || 'chart'](this.el.nativeElement, this.optionsValue, this.callbackFunction || null);
this.optionsValue.series = this.chart.userOptions.series;
this.chart = (/** @type {?} */ (this.Highcharts))[this.constructorType || 'chart'](this.el.nativeElement, this.optionsValue, this.callbackFunction || null);
// emit chart instance on init

@@ -85,3 +85,3 @@ this.chartInstance.emit(this.chart);

// #44
if (this.chart) {
if (this.chart) { // #56
// #56

@@ -96,19 +96,19 @@ this.chart.destroy();

template: ''
},] },
}] }
];
/** @nocollapse */
HighchartsChartComponent.ctorParameters = function () { return [
{ type: ElementRef },
{ type: NgZone }
{ type: ElementRef, },
{ type: NgZone, },
]; };
HighchartsChartComponent.propDecorators = {
Highcharts: [{ type: Input }],
constructorType: [{ type: Input }],
callbackFunction: [{ type: Input }],
oneToOne: [{ type: Input }],
runOutsideAngular: [{ type: Input }],
options: [{ type: Input }],
update: [{ type: Input }],
updateChange: [{ type: Output }],
chartInstance: [{ type: Output }]
"Highcharts": [{ type: Input },],
"constructorType": [{ type: Input },],
"callbackFunction": [{ type: Input },],
"oneToOne": [{ type: Input },],
"runOutsideAngular": [{ type: Input },],
"options": [{ type: Input },],
"update": [{ type: Input },],
"updateChange": [{ type: Output },],
"chartInstance": [{ type: Output },],
};

@@ -120,3 +120,3 @@ return HighchartsChartComponent;

* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
* @suppress {checkTypes} checked by tsc
*/

@@ -130,4 +130,6 @@ var HighchartsChartModule = /** @class */ (function () {

exports: [HighchartsChartComponent]
},] },
},] }
];
/** @nocollapse */
HighchartsChartModule.ctorParameters = function () { return []; };
return HighchartsChartModule;

@@ -138,3 +140,3 @@ }());

* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
* @suppress {checkTypes} checked by tsc
*/

@@ -144,3 +146,3 @@

* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
* @suppress {checkTypes}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0FBSztvQ0FDTCxLQUFLO3FDQUNMLEtBQUs7NkJBQ0wsS0FBSztzQ0FDTCxLQUFLOzRCQUVMLEtBQUs7MkJBSUwsS0FBSztpQ0FPTCxNQUFNO2tDQUNOLE1BQU07O21DQTFCVDs7Ozs7OztBQ0FBOzs7O2dCQUdDLFFBQVEsU0FBQztvQkFDUixZQUFZLEVBQUUsQ0FBRSx3QkFBd0IsQ0FBRTtvQkFDMUMsT0FBTyxFQUFFLENBQUUsd0JBQXdCLENBQUU7aUJBQ3RDOzs7O2dDQU5EOzs7Ozs7Ozs7Ozs7Ozs7In0=

@@ -1,1 +0,1 @@

{"__symbolic":"module","version":4,"metadata":{"HighchartsChartModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":3,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"HighchartsChartComponent"}],"exports":[{"__symbolic":"reference","name":"HighchartsChartComponent"}]}]}],"members":{}},"HighchartsChartComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"highcharts-chart","template":""}]}],"members":{"Highcharts":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":7,"character":3}}]}],"constructorType":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":8,"character":3}}]}],"callbackFunction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":9,"character":3}}]}],"oneToOne":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}],"runOutsideAngular":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":11,"character":3}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":13,"character":3}}]}],"update":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":17,"character":3}}]}],"updateChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":24,"character":3}}]}],"chartInstance":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":25,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":31,"character":16},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":32,"character":19}]}],"wrappedUpdateOrCreateChart":[{"__symbolic":"method"}],"updateOrCreateChart":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}},"origins":{"HighchartsChartModule":"./lib/highcharts-chart.module","HighchartsChartComponent":"./lib/highcharts-chart.component"},"importAs":"highcharts-angular"}
{"__symbolic":"module","version":4,"metadata":{"HighchartsChartModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":3,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"HighchartsChartComponent"}],"exports":[{"__symbolic":"reference","name":"HighchartsChartComponent"}]}]}],"members":{}},"HighchartsChartComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"highcharts-chart","template":""}]}],"members":{"Highcharts":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":8,"character":3}}]}],"constructorType":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":9,"character":3}}]}],"callbackFunction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}],"oneToOne":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":11,"character":3}}]}],"runOutsideAngular":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":12,"character":3}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":14,"character":3}}]}],"update":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":18,"character":3}}]}],"updateChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":25,"character":3}}]}],"chartInstance":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":26,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":32,"character":16},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":33,"character":19}]}],"wrappedUpdateOrCreateChart":[{"__symbolic":"method"}],"updateOrCreateChart":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}},"origins":{"HighchartsChartModule":"./lib/highcharts-chart.module","HighchartsChartComponent":"./lib/highcharts-chart.component"},"importAs":"highcharts-angular"}
import { ElementRef, EventEmitter, OnDestroy, NgZone } from '@angular/core';
import * as Highcharts from 'highcharts';
export declare class HighchartsChartComponent implements OnDestroy {
private el;
private _zone;
Highcharts: any;
Highcharts: typeof Highcharts;
constructorType: string;
callbackFunction: any;
callbackFunction: Highcharts.ChartCallbackFunction;
oneToOne: boolean;
runOutsideAngular: boolean;
options: any;
options: Highcharts.Options;
update: boolean;
updateChange: EventEmitter<boolean>;
chartInstance: EventEmitter<any>;
chartInstance: EventEmitter<Highcharts.Chart>;
private chart;

@@ -15,0 +16,0 @@ private optionsValue;

{
"name": "highcharts-angular",
"description": "Highcharts component for Angular.",
"version": "2.3.1",
"version": "2.4.0",
"license": "SEE LICENSE IN <LICENSE>",

@@ -6,0 +6,0 @@ "author": "Black Label <start@blacklabel.pl> (http://blacklabel.pl)",

@@ -196,2 +196,4 @@ # Highcharts Angular

_Notice:_ The Highcharts instance is shared through components in an Angular app, so loaded modules will affect all charts.
### Core

@@ -221,3 +223,3 @@

import * as Highcharts from 'highcharts';
import * as HC_map from 'highcharts/modules/map';
import HC_map from 'highcharts/modules/map';
HC_map(Highcharts);

@@ -228,14 +230,15 @@ ```

A module is a Highcharts official addon. After Highcharts is imported using Highcharts, Highstock or Highmaps use `require` and initialize each module on the Highcharts variable.
A module is a Highcharts official addon - including Highstock [Technical Indicators](https://www.highcharts.com/docs/stock/technical-indicator-series), style [themes](https://www.highcharts.com/docs/chart-design-and-style/themes), specialized series types (e.g. [Bullet](https://www.highcharts.com/docs/chart-and-series-types/bullet-chart), [Venn](https://www.highcharts.com/docs/chart-and-series-types/venn-series)). After Highcharts is imported using Highcharts, Highstock or Highmaps use `import` and initialize each module on the Highcharts variable.
```ts
import * as Highcharts from 'highcharts';
require('highcharts/modules/exporting')(Highcharts);
import HC_exporting from 'highcharts/modules/exporting';
HC_exporting(Highcharts);
```
This could be [done without `require`](https://github.com/highcharts/highcharts/issues/4994#issuecomment-305113651), but the initialization is still needed.
Alternatively, this could be done with `require`, but usually (depends on your app configuration) additional declaration `declare var require: any;` is needed at the top of the TypeScript file in which the modules are loaded.
```ts
import * as Highcharts from 'highcharts';
import * as HC_exporting from 'highcharts/modules/exporting';
HC_exporting(Highcharts);
require('highcharts/modules/exporting')(Highcharts);
```

@@ -255,53 +258,12 @@

If a lack of TypeScirpt definitions `d.ts` is showing as an error - see [Solving problems](https://www.highcharts.com/docs/advanced-chart-features/typescript) section of Highcharts documentation for Typescript usage.
### To load a map for Highmaps
A map is JSON type file containing mapData code used when a chart is created. Download a map from [official Highcharts map collection](http://code.highcharts.com/mapdata/) in Javascript format or use a [custom map](https://www.highcharts.com/docs/maps/custom-maps) and add it to your app. Edit the map file, so it could be loaded like a module by adding to beginning and end of a file code below:
Official map collection is published and [here](https://www.npmjs.com/package/@highcharts/map-collection#install-from-npm) are basic instructions for loading a map.
An example can also be found in the [demo app](#demo-app).
```js
(function (factory) {
if (typeof module === 'object' && module.exports) {
module.exports = factory;
} else {
factory(Highcharts);
}
}(function (Highcharts) {
...
/* map file data */
...
}));
```
In case of using a GeoJSON map file format you should add the above code and additionally, between the added beginning and the map file data, the below code:
```js
Highcharts.maps["myMapName"] =
```
Where `"myMapName"` is yours map name that will be used when creating charts. Next, you will be loading a local .js file, so you should add in `tsconfig.json` in your app `allowJs: true`:
```js
...
"compilerOptions": {
"allowJs": true,
...
```
__Notice: this is not required for all Typescript / Angular versions - you can build the demo app with `allowJs` set to `false` for some cases. This part of the documentation will be revisited after Typescript / Angular further changes regarding this issue.__
The map is ready to be imported to your app. Use `require` instead of import to prevent TS5055 errors.
```ts
import * as Highcharts from 'highcharts/highmaps';
require('./relative-path-to-the-map-file/map-file-name')(Highcharts);
```
Where `relative-path-to-the-map-file` should be relative (for the module importing the map) path to the map file and `map-file-name` should be the name of the map file.
The file should be placed in a directory that is not checked by typeScript. See example in this repository:
- config in 'tsconfig.json'
- map file in 'js' directory
### To load a wrapper
A wrapper is a [custom extension](https://www.highcharts.com/docs/extending-highcharts/extending-highcharts) for Highcharts. To load a wrapper the same way as a module you could save it as a Javascript file and edit it by adding to beginning and end of a file same code as for a map:
A wrapper is a [custom extension](https://www.highcharts.com/docs/extending-highcharts/extending-highcharts) for Highcharts. To load a wrapper the same way as a module you could save it as a Javascript file and edit it by adding below code to beginning and end of a file:

@@ -342,5 +304,3 @@ ```js

The file should be placed in a directory that is not checked by typeScript. See example in this repository:
- configuration in `tsconfig.json`
- a map file in `js` directory
If a lack of TypeScirpt definitions `d.ts` is showing as an error - see [Solving problems](https://www.highcharts.com/docs/advanced-chart-features/typescript) section of Highcharts documentation for Typescript usage.

@@ -351,7 +311,6 @@ ### To use [`setOptions`](https://www.highcharts.com/docs/getting-started/how-to-set-options#2)

```
```ts
import * as Highcharts from 'highcharts/highstock';
import * as HC_map from 'highcharts/modules/map';
HC_map(Highcharts);
...

@@ -380,3 +339,3 @@ Highcharts.setOptions({

```
```cli
npm install

@@ -390,3 +349,3 @@ npm start

```
```cli
npm start -- --port 12345

@@ -418,3 +377,3 @@ ```

```
```cli
npm run build

@@ -438,2 +397,4 @@ ```

For TypeScript problems with Highcharts first see [Highcharts documentation for TypeScript usage](https://www.highcharts.com/docs/advanced-chart-features/typescript).
### FAQ:

@@ -444,2 +405,18 @@

Add [indicators](https://www.highcharts.com/docs/chart-and-series-types/technical-indicator-series) as any other module.
[Live demo](https://codesandbox.io/s/lpn3yvv3zl)
[Live demo](https://codesandbox.io/s/lpn3yvv3zl)
#### How to add and use themes?
Add [themes](https://www.highcharts.com/docs/chart-design-and-style/themes) as any other module.
See the [demo app](#demo-app) in this repository for an example.
More info about custom themes in [Highcharts general documentation](https://www.highcharts.com/docs/chart-design-and-style/custom-themes-in-styled-mode).
#### I have a general issue with Highcharts and TypeScript
The correct repository to report such issues is [main Highcharts repository](https://github.com/highcharts/highcharts/issues).
#### Synchronized Charts Angular demo
Based on original Highcharts demo for [Synchronized charts](https://www.highcharts.com/demo/synchronized-charts).
Additionally added class based sync between charts - [demo](https://codesandbox.io/s/5wwz8qy1l4).

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc