Skip to content

Commit

Permalink
dataRange indicator none value fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kener committed Jan 4, 2015
1 parent 3ff3511 commit 0b6fba6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/component/dataRange.js
Original file line number Diff line number Diff line change
Expand Up @@ -1302,7 +1302,7 @@ define(function (require) {
&& param.seriesIndex != null && param.dataIndex != null
) {
var curValue = param.value;
if (isNaN(curValue)) {
if (curValue == '' || isNaN(curValue)) {
return;
}
if (curValue < this.dataRangeOption.min) {
Expand Down Expand Up @@ -1336,8 +1336,7 @@ define(function (require) {

_textFormat : function(valueStart, valueEnd) {
valueStart = valueStart.toFixed(this.dataRangeOption.precision);
valueEnd = typeof valueEnd != 'undefined'
? valueEnd.toFixed(this.dataRangeOption.precision) : '';
valueEnd = valueEnd != null ? valueEnd.toFixed(this.dataRangeOption.precision) : '';
if (this.dataRangeOption.formatter) {
if (typeof this.dataRangeOption.formatter == 'string') {
return this.dataRangeOption.formatter.replace('{value}', valueStart)
Expand Down

0 comments on commit 0b6fba6

Please sign in to comment.