ember-cli-chartist
Advanced tools
Comparing version
@@ -48,3 +48,4 @@ import Ember from 'ember'; | ||
responsiveOptions: UNDEF, | ||
updateOnData: true, | ||
// This is where the business happens. This will only run if checkForReqs | ||
@@ -63,2 +64,8 @@ // doesn't find any problems. | ||
onData: function () { | ||
if (this.get('updateOnData')) { | ||
this.get('chart').update(this.get('data')); | ||
} | ||
}.observes('data'), | ||
// Before trying to do anything else, let's check to see if any necessary | ||
@@ -65,0 +72,0 @@ // attributes are missing or if anything else is fishy about attributes |
{ | ||
"name": "ember-cli-chartist", | ||
"version": "0.2.4", | ||
"version": "0.2.5-beta1", | ||
"description": "Ember Addon for Chartist.js", | ||
@@ -29,3 +29,3 @@ "directories": { | ||
"broccoli-ember-hbs-template-compiler": "^1.6.1", | ||
"ember-cli": "0.1.5", | ||
"ember-cli": "^0.1.9", | ||
"ember-cli-content-security-policy": "^0.3.0", | ||
@@ -37,3 +37,3 @@ "ember-cli-dependency-checker": "0.0.7", | ||
"ember-cli-qunit": "0.1.2", | ||
"ember-cli-sass": "^3.0.3", | ||
"ember-cli-sass": "3.0.3", | ||
"ember-data": "1.0.0-beta.12", | ||
@@ -40,0 +40,0 @@ "ember-export-application-global": "^1.0.0", |
@@ -123,2 +123,12 @@ # Chartist.js for Ember-CLI Projects | ||
#### Other configuration | ||
There are other ways to configure chartist-chart components that are specific to the addon. | ||
**updateOnData**: By default, when the data associated with a chartist-chart is changed, the chart will be updated to reflect the data. That can be turned off by setting updateOnData to false. Note: If you use this option, you will have to manually draw and redraw the chart using Chartist methods. | ||
``` | ||
{{chartist-chart updateOnData=false}} | ||
``` | ||
### Custom CSS | ||
@@ -175,6 +185,2 @@ | ||
updateChart: function () { | ||
this.get('chart').update(this.get('data')); | ||
}.observes('data'), | ||
ratio: 'ct-minor-seventh', | ||
@@ -181,0 +187,0 @@ options: { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
12486545
7813.65%411
705.88%144343
4695.45%248
2.48%1
Infinity%1
Infinity%