Skip to content

Instantly share code, notes, and snippets.

@fuchao2012
Created June 29, 2015 10:04
Show Gist options
  • Select an option

  • Save fuchao2012/879edcfaf734696fa711 to your computer and use it in GitHub Desktop.

Select an option

Save fuchao2012/879edcfaf734696fa711 to your computer and use it in GitHub Desktop.
data filter for echarts maps
formatter:function(p){
var ass = p[0],add=p[1].split(' '),aqi=p[2];
if(ass){
return add[2] + ' AQI ' + aqi + '<br/>空气质量 ' + ass;
}else{
return String(p).replace(/,*-*/g,'');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment