@bijujoseph/ng2-nvd3
Advanced tools
Comparing version 1.1.24 to 1.2.0
@@ -19,3 +19,2 @@ "use strict"; | ||
nvD3.prototype.updateWithOptions = function (options) { | ||
console.log("updateWithOptions"); | ||
var self = this; | ||
@@ -99,4 +98,2 @@ this.clearElement(); | ||
clearTimeout(rzTimeout); | ||
if (self.chart && self.chart.update) | ||
console.log(" [resize] self.chart.update()"); | ||
self.chart && self.chart.update && self.chart.update(); | ||
@@ -126,3 +123,2 @@ }, self.options.resizeTimeout || 250); | ||
} | ||
console.log("[svg] updateWithData"); | ||
this.svg.datum(data).call(this.chart); | ||
@@ -195,3 +191,2 @@ } | ||
this.chart.resizeHandler.clear(); | ||
console.log("[clear] clearElement"); | ||
this.chart = null; | ||
@@ -198,0 +193,0 @@ }; |
{ | ||
"name": "@bijujoseph/ng2-nvd3", | ||
"version": "1.1.24", | ||
"version": "1.2.0", | ||
"description": "Angular2 component for NVD3.js reusable charting library, a fork from https://github.com/jrmce/ng2-nvd3", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -47,2 +47,3 @@ # ng2-nvd3 | ||
this.options = { | ||
resizeTimeout:300, | ||
chart: { | ||
@@ -169,6 +170,14 @@ type: 'discreteBarChart', | ||
#### 1.0.7 | ||
* Angular2 - v2.0.0-beta.3 | ||
* Angular2 - v2.0.0-beta.3 | ||
#### 1.1.8 | ||
* Angular2 - v2.4.0 | ||
* Angular modules support | ||
* AOT support | ||
#### 1.2.0 | ||
* Added property `resizeTimeout` to control how frequently the `chart.update` should be done. | ||
* Update `ngOnChanges` to call `updateWithData` when `data` is changed. | ||
## License | ||
MIT |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35667
182
831