New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data的name属性不一致 #7966

Closed
divanodestiny opened this Issue Mar 19, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@divanodestiny

divanodestiny commented Mar 19, 2018

One-line summary [问题简述]

heatmap里, 部分数据的name和设定不一致,使用tooltip的formatter来打印点的情况时发现的问题,

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]: 4.0.4
  • Browser version [浏览器类型和版本]: 64.0.3282.186
  • OS Version [操作系统类型和版本]: Windows10(10240)

Expected behaviour [期望结果]

name应该是一致的

ECharts option [ECharts配置项]

option = {"xAxis":{"show":false,"type":"category","data":["-7500","-7450","-7400","-7350","-7300","-7250","-7200","-7150","-7100","-7050","-7000","-6950","-6900","-6850","-6800","-6750","-6700","-6650","-6600","-6550","-6500","-6450","-6400","-6350","-6300","-6250","-6200","-6150","-6100","-6050","-6000","-5950","-5900","-5850","-5800","-5750","-5700","-5650","-5600","-5550","-5500","-5450","-5400","-5350","-5300","-5250","-5200","-5150","-5100","-5050","-5000","-4950","-4900","-4850","-4800","-4750","-4700","-4650","-4600","-4550","-4500","-4450","-4400","-4350","-4300","-4250","-4200","-4150","-4100","-4050","-4000","-3950","-3900","-3850","-3800","-3750","-3700","-3650","-3600","-3550","-3500","-3450","-3400","-3350","-3300","-3250","-3200","-3150","-3100","-3050","-3000","-2950","-2900","-2850","-2800","-2750","-2700","-2650","-2600","-2550","-2500","-2450","-2400","-2350","-2300","-2250","-2200","-2150","-2100","-2050","-2000","-1950","-1900","-1850","-1800","-1750","-1700","-1650","-1600","-1550","-1500","-1450","-1400","-1350","-1300","-1250","-1200","-1150","-1100","-1050","-1000","-950","-900","-850","-800","-750","-700","-650","-600","-550","-500","-450","-400","-350","-300","-250","-200","-150","-100","-50","0","50","100","150","200","250","300","350","400","450","500","550","600","650","700","750","800","850","900","950","1000","1050","1100","1150","1200","1250","1300","1350","1400","1450","1500","1550","1600","1650","1700","1750","1800","1850","1900","1950","2000","2050","2100","2150","2200","2250","2300","2350","2400","2450","2500","2550","2600","2650","2700","2750","2800","2850","2900","2950","3000","3050","3100","3150","3200","3250","3300","3350","3400","3450","3500","3550","3600","3650","3700","3750","3800","3850","3900","3950","4000","4050","4100","4150","4200","4250","4300","4350","4400","4450","4500","4550","4600","4650","4700","4750","4800","4850","4900","4950","5000","5050","5100","5150","5200","5250","5300","5350","5400","5450","5500","5550","5600","5650","5700","5750","5800","5850","5900","5950","6000","6050","6100","6150","6200","6250","6300","6350","6400","6450","6500","6550","6600","6650","6700","6750","6800","6850","6900","6950","7000","7050","7100","7150","7200","7250","7300","7350","7400","7450","7500"]},"yAxis":{"show":false,"type":"category","data":["-5000","-4950","-4900","-4850","-4800","-4750","-4700","-4650","-4600","-4550","-4500","-4450","-4400","-4350","-4300","-4250","-4200","-4150","-4100","-4050","-4000","-3950","-3900","-3850","-3800","-3750","-3700","-3650","-3600","-3550","-3500","-3450","-3400","-3350","-3300","-3250","-3200","-3150","-3100","-3050","-3000","-2950","-2900","-2850","-2800","-2750","-2700","-2650","-2600","-2550","-2500","-2450","-2400","-2350","-2300","-2250","-2200","-2150","-2100","-2050","-2000","-1950","-1900","-1850","-1800","-1750","-1700","-1650","-1600","-1550","-1500","-1450","-1400","-1350","-1300","-1250","-1200","-1150","-1100","-1050","-1000","-950","-900","-850","-800","-750","-700","-650","-600","-550","-500","-450","-400","-350","-300","-250","-200","-150","-100","-50","0","50","100","150","200","250","300","350","400","450","500","550","600","650","700","750","800","850","900","950","1000","1050","1100","1150","1200","1250","1300","1350","1400","1450","1500","1550","1600","1650","1700","1750","1800","1850","1900","1950","2000","2050","2100","2150","2200","2250","2300","2350","2400","2450","2500","2550","2600","2650","2700","2750","2800","2850","2900","2950","3000","3050","3100","3150","3200","3250","3300","3350","3400","3450","3500","3550","3600","3650","3700","3750","3800","3850","3900","3950","4000","4050","4100","4150","4200","4250","4300","4350","4400","4450","4500","4550","4600","4650","4700","4750","4800","4850","4900","4950","5000"]},"visualMap":{"type":"piecewise","min":1,"max":3594,"pieces":[{"max":3594,"min":1797.5},{"max":1797.5,"min":899.25},{"max":899.25,"min":450.125},{"max":450.125,"min":225.5625},{"max":225.5625,"min":113.28125},{"max":113.28125,"min":57.140625},{"max":57.140625,"min":29.0703125},{"max":29.0703125,"min":15.03515625},{"max":15.03515625,"min":8.017578125},{"max":8.017578125,"min":1}],"calculable":true,"realtime":false,"splitNumber":9,"left":10,"top":"40%","inRange":{"color":["RGBA(255, 249, 176, 0.15)","RGBA(255, 224, 128, 0.28)","RGBA(254, 199, 128, 0.40)","RGBA(253, 174, 97, 0.51)","RGBA(249, 142, 82, 0.61)","RGBA(244, 109, 67, 0.70)","RGBA(235, 78, 53, 0.78)","RGBA(215, 48, 39, 0.85)","RGBA(200, 24, 38, 0.91)","RGBA(165, 0, 38, 0.95)"]}},"series":{"type":"heatmap","data":[{"name":"4900_-2600","value":["4900","-2600",2]},{"name":"4900_-2550","value":["4900","-2550",6]},{"name":"4900_-2500","value":["4900","-2500",37]},{"name":"4900_-2450","value":["4900","-2450",84]},{"name":"4900_-2400","value":["4900","-2400",3]},{"name":"4900_-2100","value":["4900","-2100",2]},{"name":"4900_-2050","value":["4900","-2050",99]},{"name":"4900_-2000","value":["4900","-2000",94]},{"name":"4900_-1950","value":["4900","-1950",27]},{"name":"4900_-1900","value":["4900","-1900",30]},{"name":"4900_-1850","value":["4900","-1850",11]},{"name":"4900_-1800","value":["4900","-1800",1]},{"name":"4900_-1750","value":["4900","-1750",1]},{"name":"4900_-1550","value":["4900","-1550",1]},{"name":"4950_-2600","value":["4950","-2600",2]},{"name":"4950_-2550","value":["4950","-2550",4]},{"name":"4950_-2500","value":["4950","-2500",127]},{"name":"4950_-2450","value":["4950","-2450",5]},{"name":"4950_-2400","value":["4950","-2400",2]},{"name":"4950_-2350","value":["4950","-2350",2]},{"name":"4950_-2100","value":["4950","-2100",1]},{"name":"4950_-2050","value":["4950","-2050",5]},{"name":"4950_-2000","value":["4950","-2000",31]},{"name":"4950_-1950","value":["4950","-1950",116]},{"name":"4950_-1900","value":["4950","-1900",65]},{"name":"4950_-1850","value":["4950","-1850",4]},{"name":"4950_-1800","value":["4950","-1800",5]},{"name":"4950_-1750","value":["4950","-1750",1]},{"name":"4950_-1450","value":["4950","-1450",1]},{"name":"5000_-2600","value":["5000","-2600",42]},{"name":"5000_-2550","value":["5000","-2550",9]},{"name":"5000_-2500","value":["5000","-2500",13]},{"name":"5000_-2450","value":["5000","-2450",6]},{"name":"5000_-2400","value":["5000","-2400",1]},{"name":"5000_-2100","value":["5000","-2100",1]},{"name":"5000_-2050","value":["5000","-2050",3]},{"name":"5000_-2000","value":["5000","-2000",47]},{"name":"5000_-1950","value":["5000","-1950",176]},{"name":"5000_-1850","value":["5000","-1850",6]},{"name":"5000_-1800","value":["5000","-1800",2]},{"name":"5000_-1750","value":["5000","-1750",1]},{"name":"5000_-1400","value":["5000","-1400",1]},{"name":"5000_-1350","value":["5000","-1350",1]},{"name":"5050_-2600","value":["5050","-2600",2]},{"name":"5050_-2550","value":["5050","-2550",8]},{"name":"5050_-2500","value":["5050","-2500",7]},{"name":"5050_-2450","value":["5050","-2450",6]},{"name":"5050_-2400","value":["5050","-2400",1]},{"name":"5050_-2350","value":["5050","-2350",5]},{"name":"5050_-2250","value":["5050","-2250",1]},{"name":"5050_-2000","value":["5050","-2000",2]},{"name":"5050_-1950","value":["5050","-1950",82]},{"name":"5050_-1900","value":["5050","-1900",5]},{"name":"5050_-1850","value":["5050","-1850",5]},{"name":"5050_-1800","value":["5050","-1800",4]},{"name":"5050_-1550","value":["5050","-1550",1]},{"name":"5050_-1500","value":["5050","-1500",1]},{"name":"5050_-1450","value":["5050","-1450",5]},{"name":"5050_-1350","value":["5050","-1350",2]},{"name":"5050_-1300","value":["5050","-1300",1]},{"name":"5100_-2600","value":["5100","-2600",3]},{"name":"5100_-2550","value":["5100","-2550",3]},{"name":"5100_-2500","value":["5100","-2500",6]},{"name":"5100_-2450","value":["5100","-2450",10]},{"name":"5100_-2400","value":["5100","-2400",5]},{"name":"5100_-2350","value":["5100","-2350",1]},{"name":"5100_-2200","value":["5100","-2200",1]},{"name":"5100_-2150","value":["5100","-2150",1]},{"name":"5100_-2000","value":["5100","-2000",3]},{"name":"5100_-1950","value":["5100","-1950",351]},{"name":"5100_-1900","value":["5100","-1900",24]},{"name":"5100_-1850","value":["5100","-1850",38]},{"name":"5100_-1600","value":["5100","-1600",3]},{"name":"5100_-1550","value":["5100","-1550",2]},{"name":"5100_-1500","value":["5100","-1500",1]},{"name":"5100_-1450","value":["5100","-1450",16]},{"name":"5100_-1400","value":["5100","-1400",29]},{"name":"5150_-2600","value":["5150","-2600",7]},{"name":"5150_-2550","value":["5150","-2550",2]},{"name":"5150_-2500","value":["5150","-2500",6]},{"name":"5150_-2450","value":["5150","-2450",6]},{"name":"5150_-2400","value":["5150","-2400",6]},{"name":"5150_-2350","value":["5150","-2350",1]},{"name":"5150_-2050","value":["5150","-2050",1]},{"name":"5150_-2000","value":["5150","-2000",19]},{"name":"5150_-1950","value":["5150","-1950",30]},{"name":"5150_-1900","value":["5150","-1900",3]},{"name":"5150_-1600","value":["5150","-1600",3]},{"name":"5150_-1550","value":["5150","-1550",16]},{"name":"5150_-1500","value":["5150","-1500",4]},{"name":"5150_-1450","value":["5150","-1450",29]},{"name":"5150_-1400","value":["5150","-1400",12]},{"name":"5150_-1350","value":["5150","-1350",1]},{"name":"5150_-1300","value":["5150","-1300",1]},{"name":"5150_-1250","value":["5150","-1250",1]},{"name":"5200_-2600","value":["5200","-2600",6]},{"name":"5200_-2550","value":["5200","-2550",5]},{"name":"5200_-2500","value":["5200","-2500",7]},{"name":"5200_-2450","value":["5200","-2450",8]},{"name":"5200_-2400","value":["5200","-2400",9]},{"name":"5200_-2350","value":["5200","-2350",22]},{"name":"5200_-2300","value":["5200","-2300",4]},{"name":"5200_-2250","value":["5200","-2250",4]},{"name":"5200_-2100","value":["5200","-2100",2]},{"name":"5200_-2050","value":["5200","-2050",6]},{"name":"5200_-2000","value":["5200","-2000",37]},{"name":"5200_-1950","value":["5200","-1950",1]},{"name":"5200_-1900","value":["5200","-1900",1]},{"name":"5200_-1700","value":["5200","-1700",1]},{"name":"5200_-1600","value":["5200","-1600",4]},{"name":"5200_-1550","value":["5200","-1550",4]},{"name":"5200_-1500","value":["5200","-1500",37]},{"name":"5200_-1450","value":["5200","-1450",2091]},{"name":"5200_-1400","value":["5200","-1400",75]},{"name":"5200_-1350","value":["5200","-1350",1]},{"name":"5200_-1300","value":["5200","-1300",3]},{"name":"5250_-2600","value":["5250","-2600",62]},{"name":"5250_-2550","value":["5250","-2550",1103]},{"name":"5250_-2500","value":["5250","-2500",67]},{"name":"5250_-2450","value":["5250","-2450",72]},{"name":"5250_-2400","value":["5250","-2400",83]},{"name":"5250_-2350","value":["5250","-2350",64]},{"name":"5250_-2300","value":["5250","-2300",11]},{"name":"5250_-2250","value":["5250","-2250",2]},{"name":"5250_-2200","value":["5250","-2200",9]},{"name":"5250_-2150","value":["5250","-2150",1]},{"name":"5250_-2100","value":["5250","-2100",1]},{"name":"5250_-2050","value":["5250","-2050",7]},{"name":"5250_-2000","value":["5250","-2000",26]},{"name":"5250_-1950","value":["5250","-1950",4]},{"name":"5250_-1850","value":["5250","-1850",2]},{"name":"5250_-1800","value":["5250","-1800",1]},{"name":"5250_-1750","value":["5250","-1750",6]},{"name":"5250_-1700","value":["5250","-1700",113]},{"name":"5250_-1650","value":["5250","-1650",6]},{"name":"5250_-1600","value":["5250","-1600",4]},{"name":"5250_-1550","value":["5250","-1550",7]},{"name":"5250_-1500","value":["5250","-1500",149]},{"name":"5250_-1450","value":["5250","-1450",64]},{"name":"5250_-1400","value":["5250","-1400",300]},{"name":"5250_-1350","value":["5250","-1350",2]},{"name":"5250_-1250","value":["5250","-1250",1]},{"name":"5300_-2600","value":["5300","-2600",6]},{"name":"5300_-2550","value":["5300","-2550",10]},{"name":"5300_-2500","value":["5300","-2500",8]},{"name":"5300_-2450","value":["5300","-2450",5]},{"name":"5300_-2400","value":["5300","-2400",5]},{"name":"5300_-2350","value":["5300","-2350",8]},{"name":"5300_-2300","value":["5300","-2300",184]},{"name":"5300_-2250","value":["5300","-2250",2]},{"name":"5300_-2200","value":["5300","-2200",1]},{"name":"5300_-2150","value":["5300","-2150",2]},{"name":"5300_-2000","value":["5300","-2000",25]},{"name":"5300_-1950","value":["5300","-1950",135]},{"name":"5300_-1900","value":["5300","-1900",184]},{"name":"5300_-1850","value":["5300","-1850",77]},{"name":"5300_-1800","value":["5300","-1800",44]},{"name":"5300_-1750","value":["5300","-1750",43]},{"name":"5300_-1700","value":["5300","-1700",11]},{"name":"5300_-1650","value":["5300","-1650",23]},{"name":"5300_-1600","value":["5300","-1600",45]},{"name":"5300_-1550","value":["5300","-1550",32]},{"name":"5300_-1500","value":["5300","-1500",48]},{"name":"5300_-1450","value":["5300","-1450",7]},{"name":"5300_-1400","value":["5300","-1400",210]},{"name":"5300_-1350","value":["5300","-1350",2]},{"name":"5350_-2600","value":["5350","-2600",1]},{"name":"5350_-2550","value":["5350","-2550",7]},{"name":"5350_-2500","value":["5350","-2500",15]},{"name":"5350_-2450","value":["5350","-2450",8]},{"name":"5350_-2400","value":["5350","-2400",9]},{"name":"5350_-2350","value":["5350","-2350",4]},{"name":"5350_-2300","value":["5350","-2300",23]},{"name":"5350_-2250","value":["5350","-2250",54]},{"name":"5350_-2050","value":["5350","-2050",2]},{"name":"5350_-2000","value":["5350","-2000",5]},{"name":"5350_-1950","value":["5350","-1950",394]},{"name":"5350_-1900","value":["5350","-1900",61]},{"name":"5350_-1850","value":["5350","-1850",139]},{"name":"5350_-1800","value":["5350","-1800",12]},{"name":"5350_-1750","value":["5350","-1750",5]},{"name":"5350_-1700","value":["5350","-1700",2]},{"name":"5350_-1650","value":["5350","-1650",8]},{"name":"5350_-1600","value":["5350","-1600",28]},{"name":"5350_-1550","value":["5350","-1550",3594]},{"name":"5350_-1500","value":["5350","-1500",619]},{"name":"5350_-1450","value":["5350","-1450",226]},{"name":"5350_-1400","value":["5350","-1400",217]},{"name":"5350_-1350","value":["5350","-1350",42]},{"name":"5350_-1300","value":["5350","-1300",2]},{"name":"5350_-1250","value":["5350","-1250",2]},{"name":"5400_-2600","value":["5400","-2600",8]},{"name":"5400_-2550","value":["5400","-2550",259]},{"name":"5400_-2500","value":["5400","-2500",23]},{"name":"5400_-2450","value":["5400","-2450",473]},{"name":"5400_-2400","value":["5400","-2400",147]},{"name":"5400_-2350","value":["5400","-2350",17]},{"name":"5400_-2300","value":["5400","-2300",7]},{"name":"5400_-2250","value":["5400","-2250",13]},{"name":"5400_-2200","value":["5400","-2200",87]},{"name":"5400_-2150","value":["5400","-2150",1]},{"name":"5400_-2100","value":["5400","-2100",3]},{"name":"5400_-2050","value":["5400","-2050",2]},{"name":"5400_-2000","value":["5400","-2000",4]},{"name":"5400_-1950","value":["5400","-1950",182]},{"name":"5400_-1900","value":["5400","-1900",18]},{"name":"5400_-1850","value":["5400","-1850",16]},{"name":"5400_-1800","value":["5400","-1800",6]},{"name":"5400_-1750","value":["5400","-1750",6]},{"name":"5400_-1700","value":["5400","-1700",19]},{"name":"5400_-1650","value":["5400","-1650",19]},{"name":"5400_-1600","value":["5400","-1600",134]},{"name":"5400_-1550","value":["5400","-1550",568]},{"name":"5400_-1500","value":["5400","-1500",722]},{"name":"5400_-1450","value":["5400","-1450",184]},{"name":"5400_-1400","value":["5400","-1400",674]},{"name":"5400_-1350","value":["5400","-1350",81]},{"name":"5400_-1300","value":["5400","-1300",4]},{"name":"5400_-1250","value":["5400","-1250",1]}],"itemStyle":{"borderColor":"#000","borderType":"solid","borderWidth":1},"emphasis":{"itemStyle":{"borderColor":"#030303","borderWidth":0}},"progressive":1000,"animation":false}}

 

Other comments [其他信息]

通过tooltip的formatter打印的一个点作为例子, params.name和params.data.name不一致

@100pah 100pah closed this in cf6dadc Mar 20, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment