I am having trouble with extjs rendering the line chart below. Specifically, the last six values are null which are (correctly) not shown on the series line but (incorrectly
There's a config option under Ext.data.Field
called useNull
. If the data received cannot be parsed into a number, null
will be used instead. As of right now I can't recall if that alone will fix the problem, and I have a memory of once using a custom convert function that went something like this:
convert: function(value){
if(typeof value !=== 'number') // or other similar conversion
return undefined;
return value;
}
If this doesn't work, you may need to customize your store/reader to completely exclude records containing the undesirable null
value.
EDIT - Using useNull
looks like this: {name: 'someName', type: 'int', useNull: true}