Legend Values show NaN.nfinity

I created one pie chart within Grafana using es as datasource. The metrics I defined is null value always. Is there any way to avoid show NaN.nfinity in Legend Values?

What version of Grafana are you using? Think this is fixed in v4.6