Created
June 29, 2015 10:04
-
-
Save fuchao2012/879edcfaf734696fa711 to your computer and use it in GitHub Desktop.
data filter for echarts maps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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