We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da3d0f1 commit a4584d9Copy full SHA for a4584d9
rickshaw.js
@@ -40,6 +40,11 @@ angular.module('angular-rickshaw', [])
40
var graph;
41
var settings;
42
43
+ function redraw() {
44
+ graph.setSize();
45
+ graph.render();
46
+ }
47
+
48
function update() {
49
if (!graph) {
50
mainEl = angular.element(element);
@@ -78,8 +83,7 @@ angular.module('angular-rickshaw', [])
78
83
}
79
84
80
85
81
- graph.setSize();
82
- graph.render();
86
+ redraw();
87
88
if (scope.features && scope.features.xAxis) {
89
var xAxisConfig = {
@@ -165,7 +169,7 @@ angular.module('angular-rickshaw', [])
165
169
});
166
170
167
171
scope.$on('rickshaw::resize', function() {
168
- update();
172
173
174
175
update();
0 commit comments