We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7c9a715 + d2e6699 commit 0a8f972Copy full SHA for 0a8f972
rickshaw.js
@@ -165,7 +165,12 @@ angular.module('angular-rickshaw', [])
165
graph: graph
166
};
167
if (scope.features.yAxis.tickFormat) {
168
- yAxisConfig.tickFormat = Rickshaw.Fixtures.Number[scope.features.yAxis.tickFormat];
+ var tickFormat = scope.features.yAxis.tickFormat;
169
+ if (typeof tickFormat === 'string'){
170
+ yAxisConfig.tickFormat = Rickshaw.Fixtures.Number[tickFormat];
171
+ } else {
172
+ yAxisConfig.tickFormat = tickFormat;
173
+ }
174
}
175
if (!yAxis) {
176
yAxis = new Rickshaw.Graph.Axis.Y(yAxisConfig);
0 commit comments