apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.69k stars 19.62k forks source link

[Bug] y轴数据过大,造成折线图不准确的问题 #20439

Closed yangup closed 3 weeks ago

yangup commented 1 month ago

Version

5.5.1

Link to Minimal Reproduction

no

Steps to Reproduce

no

Current Behavior

option1 = {"title":{"text":"line_stack"},"tooltip":{"trigger":"axis"},"dataZoom":[{"show":true,"realtime":true},{"type":"inside","realtime":true}],"grid":{"left":"30px","right":"30px","bottom":"50px","containLabel":true},"toolbox":{"feature":{"saveAsImage":{"pixelRatio":5}}},"yAxis":{"type":"value","scale":true},"xAxis":{"type":"category","boundaryGap":false,"data":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188]},"legend":{"data":["a","b","c"],"selected":{}},"series":[{"name":"a","data":[1729085317.1902,1729085317.1949,1729085317.1969,1729085317.2004,1729085317.3035,1729085317.3066,1729085317.3087,1729085317.3112,1729085317.3121,1729085317.3137,1729085317.3154,1729085317.317,1729085317.3188,1729085317.3206,1729085317.3227,1729085317.3237,1729085317.3246,1729085317.3269,1729085317.3284,1729085317.3294,1729085317.3304,1729085317.3321,1729085317.333,1729085317.3339,1729085317.6419,1729085317.6436,1729085317.6451,1729085317.6463,1729085317.7494,1729085317.7511,1729085317.7523,1729085317.7533,1729085317.8632,1729085317.8642,1729085317.969,1729085317.9758,1729085317.9778,1729085318.1339,1729085318.1352,1729085318.1365,1729085318.1395,1729085318.1414,1729085318.1424,1729085318.1433,1729085318.1442,1729085318.1453,1729085318.147,1729085318.1486,1729085318.1496,1729085318.1507,1729085318.1518,1729085318.2978,1729085318.2988,1729085318.4034,1729085318.6732,1729085318.6752,1729085318.6769,1729085318.6779,1729085318.6927,1729085318.6937,1729085318.7958,1729085318.7975,1729085318.7991,1729085318.8002,1729085318.8018,1729085318.8027,1729085318.9955,1729085318.9967,1729085319.1074,1729085319.1101,1729085319.1199,1729085319.1557,1729085320.3348,1729085320.3361,1729085320.338,1729085320.3428,1729085320.4269,1729085320.428,1729085320.5374,1729085320.5386,1729085320.5396,1729085320.5413,1729085320.5424,1729085320.5434,1729085320.5444,1729085320.5454,1729085320.5464,1729085320.5473,1729085320.5486,1729085320.5497,1729085320.5508,1729085320.5517,1729085320.5526,1729085320.5535,1729085320.5546,1729085320.5554,1729085320.5563,1729085320.5573,1729085320.5584,1729085320.5597,1729085320.561,1729085320.5621,1729085320.7124,1729085320.7142,1729085320.7155,1729085320.7167,1729085320.7177,1729085320.8261,1729085320.8279,1729085320.8292,1729085320.8302,1729085320.832,1729085320.8335,1729085320.8357,1729085320.8367,1729085320.8391,1729085320.8412,1729085320.8489,1729085320.8506,1729085320.8521,1729085320.8544,1729085320.8567,1729085320.8577,1729085320.8588,1729085320.8599,1729085320.861,1729085321.0097,1729085321.0125,1729085321.0136,1729085321.0147,1729085321.0157,1729085321.0167,1729085321.0178,1729085321.0188,1729085321.0198,1729085321.0208,1729085321.0218,1729085321.0228,1729085321.0238,1729085321.0248,1729085321.0258,1729085321.0268,1729085321.0278,1729085321.0289,1729085321.0299,1729085321.0309,1729085321.0319,1729085321.0329,1729085321.0339,1729085321.1509,1729085321.1519,1729085321.2555,1729085321.2567,1729085321.4083,1729085321.4193,1729085321.421,1729085321.4226,1729085321.4857,1729085321.4868,1729085321.4885,1729085321.4907,1729085321.6897,1729085321.691,1729085321.7899,1729085321.8787,1729085321.8799,1729085322.0784,1729085322.0795,1729085322.1804,1729085322.294,1729085322.2952,1729085322.494,1729085322.4953,1729085322.5967,1729085322.6935,1729085322.6948,1729085322.8893,1729085322.8904,1729085322.9911,1729085322.9929,1729085322.9946,1729085323.0999,1729085323.1017,1729085323.1032,1729085323.1043,1729085323.1054,1729085323.107,1729085323.1085],"type":"line","stack":"Total"},{"name":"b","data":[1729085316.1902,1729085316.1949,1729085316.1969,1729085316.2004,1729085316.3035,1729085316.3066,1729085316.3087,1729085316.3112,1729085316.3121,1729085316.3137,1729085316.3154,1729085316.317,1729085316.3188,1729085316.3206,1729085316.3227,1729085316.3237,1729085316.3246,1729085316.3269,1729085316.3284,1729085316.3294,1729085316.3304,1729085316.3321,1729085316.333,1729085316.3339,1729085316.6419,1729085316.6436,1729085316.6451,1729085316.6463,1729085316.7494,1729085316.7511,1729085316.7523,1729085316.7533,1729085316.8632,1729085316.8642,1729085316.969,1729085316.9758,1729085316.9778,1729085317.1339,1729085317.1352,1729085317.1365,1729085317.1395,1729085317.1414,1729085317.1424,1729085317.1433,1729085317.1442,1729085317.1453,1729085317.147,1729085317.1486,1729085317.1496,1729085317.1507,1729085317.1518,1729085317.2978,1729085317.2988,1729085317.4034,1729085317.6732,1729085317.6752,1729085317.6769,1729085317.6779,1729085317.6927,1729085317.6937,1729085317.7958,1729085317.7975,1729085317.7991,1729085317.8002,1729085317.8018,1729085317.8027,1729085317.9955,1729085317.9967,1729085318.1074,1729085318.1101,1729085318.1199,1729085318.1557,1729085319.3348,1729085319.3361,1729085319.338,1729085319.3428,1729085319.4269,1729085319.428,1729085319.5374,1729085319.5386,1729085319.5396,1729085319.5413,1729085319.5424,1729085319.5434,1729085319.5444,1729085319.5454,1729085319.5464,1729085319.5473,1729085319.5486,1729085319.5497,1729085319.5508,1729085319.5517,1729085319.5526,1729085319.5535,1729085319.5546,1729085319.5554,1729085319.5563,1729085319.5573,1729085319.5584,1729085319.5597,1729085319.561,1729085319.5621,1729085319.7124,1729085319.7142,1729085319.7155,1729085319.7167,1729085319.7177,1729085319.8261,1729085319.8279,1729085319.8292,1729085319.8302,1729085319.832,1729085319.8335,1729085319.8357,1729085319.8367,1729085319.8391,1729085319.8412,1729085319.8489,1729085319.8506,1729085319.8521,1729085319.8544,1729085319.8567,1729085319.8577,1729085319.8588,1729085319.8599,1729085319.861,1729085320.0097,1729085320.0125,1729085320.0136,1729085320.0147,1729085320.0157,1729085320.0167,1729085320.0178,1729085320.0188,1729085320.0198,1729085320.0208,1729085320.0218,1729085320.0228,1729085320.0238,1729085320.0248,1729085320.0258,1729085320.0268,1729085320.0278,1729085320.0289,1729085320.0299,1729085320.0309,1729085320.0319,1729085320.0329,1729085320.0339,1729085320.1509,1729085320.1519,1729085320.2555,1729085320.2567,1729085320.4083,1729085320.4193,1729085320.421,1729085320.4226,1729085320.4857,1729085320.4868,1729085320.4885,1729085320.4907,1729085320.6897,1729085320.691,1729085320.7899,1729085320.8787,1729085320.8799,1729085321.0784,1729085321.0795,1729085321.1804,1729085321.294,1729085321.2952,1729085321.494,1729085321.4953,1729085321.5967,1729085321.6935,1729085321.6948,1729085321.8893,1729085321.8904,1729085321.9911,1729085321.9929,1729085321.9946,1729085322.0999,1729085322.1017,1729085322.1032,1729085322.1043,1729085322.1054,1729085322.107,1729085322.1085],"type":"line","stack":"Total"},{"name":"c","data":[1729085315.1902,1729085315.1949,1729085315.1969,1729085315.2004,1729085315.3035,1729085315.3066,1729085315.3087,1729085315.3112,1729085315.3121,1729085315.3137,1729085315.3154,1729085315.317,1729085315.3188,1729085315.3206,1729085315.3227,1729085315.3237,1729085315.3246,1729085315.3269,1729085315.3284,1729085315.3294,1729085315.3304,1729085315.3321,1729085315.333,1729085315.3339,1729085315.6419,1729085315.6436,1729085315.6451,1729085315.6463,1729085315.7494,1729085315.7511,1729085315.7523,1729085315.7533,1729085315.8632,1729085315.8642,1729085315.969,1729085315.9758,1729085315.9778,1729085316.1339,1729085316.1352,1729085316.1365,1729085316.1395,1729085316.1414,1729085316.1424,1729085316.1433,1729085316.1442,1729085316.1453,1729085316.147,1729085316.1486,1729085316.1496,1729085316.1507,1729085316.1518,1729085316.2978,1729085316.2988,1729085316.4034,1729085316.6732,1729085316.6752,1729085316.6769,1729085316.6779,1729085316.6927,1729085316.6937,1729085316.7958,1729085316.7975,1729085316.7991,1729085316.8002,1729085316.8018,1729085316.8027,1729085316.9955,1729085316.9967,1729085317.1074,1729085317.1101,1729085317.1199,1729085317.1557,1729085318.3348,1729085318.3361,1729085318.338,1729085318.3428,1729085318.4269,1729085318.428,1729085318.5374,1729085318.5386,1729085318.5396,1729085318.5413,1729085318.5424,1729085318.5434,1729085318.5444,1729085318.5454,1729085318.5464,1729085318.5473,1729085318.5486,1729085318.5497,1729085318.5508,1729085318.5517,1729085318.5526,1729085318.5535,1729085318.5546,1729085318.5554,1729085318.5563,1729085318.5573,1729085318.5584,1729085318.5597,1729085318.561,1729085318.5621,1729085318.7124,1729085318.7142,1729085318.7155,1729085318.7167,1729085318.7177,1729085318.8261,1729085318.8279,1729085318.8292,1729085318.8302,1729085318.832,1729085318.8335,1729085318.8357,1729085318.8367,1729085318.8391,1729085318.8412,1729085318.8489,1729085318.8506,1729085318.8521,1729085318.8544,1729085318.8567,1729085318.8577,1729085318.8588,1729085318.8599,1729085318.861,1729085319.0097,1729085319.0125,1729085319.0136,1729085319.0147,1729085319.0157,1729085319.0167,1729085319.0178,1729085319.0188,1729085319.0198,1729085319.0208,1729085319.0218,1729085319.0228,1729085319.0238,1729085319.0248,1729085319.0258,1729085319.0268,1729085319.0278,1729085319.0289,1729085319.0299,1729085319.0309,1729085319.0319,1729085319.0329,1729085319.0339,1729085319.1509,1729085319.1519,1729085319.2555,1729085319.2567,1729085319.4083,1729085319.4193,1729085319.421,1729085319.4226,1729085319.4857,1729085319.4868,1729085319.4885,1729085319.4907,1729085319.6897,1729085319.691,1729085319.7899,1729085319.8787,1729085319.8799,1729085320.0784,1729085320.0795,1729085320.1804,1729085320.294,1729085320.2952,1729085320.494,1729085320.4953,1729085320.5967,1729085320.6935,1729085320.6948,1729085320.8893,1729085320.8904,1729085320.9911,1729085320.9929,1729085320.9946,1729085321.0999,1729085321.1017,1729085321.1032,1729085321.1043,1729085321.1054,1729085321.107,1729085321.1085],"type":"line","stack":"Total"}]}

option2 = {"title":{"text":"line_stack"},"tooltip":{"trigger":"axis"},"dataZoom":[{"show":true,"realtime":true},{"type":"inside","realtime":true}],"grid":{"left":"30px","right":"30px","bottom":"50px","containLabel":true},"toolbox":{"feature":{"saveAsImage":{"pixelRatio":5}}},"yAxis":{"type":"value","scale":true},"xAxis":{"type":"category","boundaryGap":false,"data":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188]},"legend":{"data":["a","b","c"],"selected":{}},"series":[{"name":"a","data":[7.190200090408325,7.194900035858154,7.196899890899658,7.200400114059448,7.303499937057495,7.306600093841553,7.308700084686279,7.311199903488159,7.312099933624268,7.313699960708618,7.315399885177612,7.316999912261963,7.31879997253418,7.3206000328063965,7.322700023651123,7.323699951171875,7.324599981307983,7.326900005340576,7.328399896621704,7.329400062561035,7.330399990081787,7.332099914550781,7.33299994468689,7.333899974822998,7.641900062561035,7.643599987030029,7.645100116729736,7.6463000774383545,7.749399900436401,7.751100063323975,7.752300024032593,7.753299951553345,7.863199949264526,7.864200115203857,7.9690001010894775,7.975800037384033,7.977799892425537,8.133899927139282,8.135200023651123,8.136499881744385,8.13949990272522,8.14140009880066,8.142400026321411,8.14330005645752,8.144200086593628,8.145299911499023,8.147000074386597,8.148600101470947,8.1496000289917,8.150700092315674,8.15179991722107,8.297800064086914,8.298799991607666,8.40339994430542,8.673199892044067,8.67519998550415,8.676899909973145,8.677900075912476,8.692699909210205,8.693700075149536,8.795799970626831,8.797499895095825,8.799099922180176,8.80019998550415,8.801800012588501,8.80270004272461,8.995500087738037,8.996700048446655,9.107399940490723,9.110100030899048,9.119899988174438,9.155699968338013,10.334800004959106,10.336100101470947,10.338000059127808,10.34279990196228,10.426899909973145,10.42799997329712,10.537400007247925,10.538599967956543,10.539599895477295,10.541300058364868,10.542399883270264,10.543400049209595,10.544399976730347,10.545399904251099,10.54640007019043,10.547300100326538,10.5485999584198,10.549700021743774,10.550800085067749,10.551700115203857,10.552599906921387,10.553499937057495,10.55460000038147,10.555399894714355,10.556299924850464,10.557300090789795,10.55839991569519,10.559700012207031,10.561000108718872,10.562099933624268,10.712399959564209,10.714200019836426,10.715500116348267,10.716700077056885,10.717700004577637,10.82610011100769,10.827899932861328,10.829200029373169,10.830199956893921,10.832000017166138,10.833499908447266,10.835700035095215,10.836699962615967,10.839099884033203,10.841200113296509,10.848900079727173,10.850600004196167,10.852099895477295,10.854399919509888,10.85669994354248,10.857700109481812,10.858799934387207,10.859899997711182,10.861000061035156,11.009700059890747,11.012500047683716,11.01360011100769,11.014699935913086,11.015700101852417,11.016700029373169,11.017800092697144,11.018800020217896,11.019799947738647,11.020800113677979,11.02180004119873,11.022799968719482,11.023799896240234,11.024800062179565,11.025799989700317,11.02679991722107,11.0278000831604,11.028899908065796,11.029900074005127,11.030900001525879,11.03189992904663,11.032900094985962,11.033900022506714,11.150899887084961,11.151900053024292,11.255500078201294,11.256700038909912,11.408299922943115,11.419300079345703,11.421000003814697,11.422600030899048,11.485699892044067,11.486799955368042,11.488500118255615,11.490700006484985,11.68969988822937,11.690999984741211,11.789900064468384,11.878700017929077,11.879899978637695,12.078399896621704,12.079499959945679,12.180399894714355,12.293999910354614,12.295200109481812,12.49399995803833,12.495300054550171,12.596699953079224,12.69350004196167,12.694799900054932,12.889300107955933,12.890399932861328,12.991100072860718,12.992899894714355,12.994600057601929,13.099900007247925,13.101700067520142,13.10319995880127,13.104300022125244,13.105400085449219,13.10700011253357,13.108500003814697],"type":"line","stack":"Total"},{"name":"b","data":[6.190200090408325,6.194900035858154,6.196899890899658,6.200400114059448,6.303499937057495,6.306600093841553,6.308700084686279,6.311199903488159,6.312099933624268,6.313699960708618,6.315399885177612,6.316999912261963,6.31879997253418,6.3206000328063965,6.322700023651123,6.323699951171875,6.324599981307983,6.326900005340576,6.328399896621704,6.329400062561035,6.330399990081787,6.332099914550781,6.33299994468689,6.333899974822998,6.641900062561035,6.643599987030029,6.645100116729736,6.6463000774383545,6.749399900436401,6.751100063323975,6.752300024032593,6.753299951553345,6.863199949264526,6.864200115203857,6.9690001010894775,6.975800037384033,6.977799892425537,7.133899927139282,7.135200023651123,7.136499881744385,7.13949990272522,7.141400098800659,7.142400026321411,7.1433000564575195,7.144200086593628,7.145299911499023,7.147000074386597,7.148600101470947,7.149600028991699,7.150700092315674,7.151799917221069,7.297800064086914,7.298799991607666,7.40339994430542,7.673199892044067,7.67519998550415,7.6768999099731445,7.677900075912476,7.692699909210205,7.693700075149536,7.795799970626831,7.797499895095825,7.799099922180176,7.80019998550415,7.801800012588501,7.802700042724609,7.995500087738037,7.996700048446655,8.107399940490723,8.110100030899048,8.119899988174438,8.155699968338013,9.334800004959106,9.336100101470947,9.338000059127808,9.34279990196228,9.426899909973145,9.42799997329712,9.537400007247925,9.538599967956543,9.539599895477295,9.541300058364868,9.542399883270264,9.543400049209595,9.544399976730347,9.545399904251099,9.54640007019043,9.547300100326538,9.5485999584198,9.549700021743774,9.550800085067749,9.551700115203857,9.552599906921387,9.553499937057495,9.55460000038147,9.555399894714355,9.556299924850464,9.557300090789795,9.55839991569519,9.559700012207031,9.561000108718872,9.562099933624268,9.712399959564209,9.714200019836426,9.715500116348267,9.716700077056885,9.717700004577637,9.82610011100769,9.827899932861328,9.829200029373169,9.830199956893921,9.832000017166138,9.833499908447266,9.835700035095215,9.836699962615967,9.839099884033203,9.841200113296509,9.848900079727173,9.850600004196167,9.852099895477295,9.854399919509888,9.85669994354248,9.857700109481812,9.858799934387207,9.859899997711182,9.861000061035156,10.009700059890747,10.012500047683716,10.01360011100769,10.014699935913086,10.015700101852417,10.016700029373169,10.017800092697144,10.018800020217896,10.019799947738647,10.020800113677979,10.02180004119873,10.022799968719482,10.023799896240234,10.024800062179565,10.025799989700317,10.02679991722107,10.0278000831604,10.028899908065796,10.029900074005127,10.030900001525879,10.03189992904663,10.032900094985962,10.033900022506714,10.150899887084961,10.151900053024292,10.255500078201294,10.256700038909912,10.408299922943115,10.419300079345703,10.421000003814697,10.422600030899048,10.485699892044067,10.486799955368042,10.488500118255615,10.490700006484985,10.68969988822937,10.690999984741211,10.789900064468384,10.878700017929077,10.879899978637695,11.078399896621704,11.079499959945679,11.180399894714355,11.293999910354614,11.295200109481812,11.49399995803833,11.495300054550171,11.596699953079224,11.69350004196167,11.694799900054932,11.889300107955933,11.890399932861328,11.991100072860718,11.992899894714355,11.994600057601929,12.099900007247925,12.101700067520142,12.10319995880127,12.104300022125244,12.105400085449219,12.10700011253357,12.108500003814697],"type":"line","stack":"Total"},{"name":"c","data":[5.190200090408325,5.194900035858154,5.196899890899658,5.200400114059448,5.303499937057495,5.306600093841553,5.308700084686279,5.311199903488159,5.312099933624268,5.313699960708618,5.315399885177612,5.316999912261963,5.31879997253418,5.3206000328063965,5.322700023651123,5.323699951171875,5.324599981307983,5.326900005340576,5.328399896621704,5.329400062561035,5.330399990081787,5.332099914550781,5.33299994468689,5.333899974822998,5.641900062561035,5.643599987030029,5.645100116729736,5.6463000774383545,5.749399900436401,5.751100063323975,5.752300024032593,5.753299951553345,5.863199949264526,5.864200115203857,5.9690001010894775,5.975800037384033,5.977799892425537,6.133899927139282,6.135200023651123,6.136499881744385,6.13949990272522,6.141400098800659,6.142400026321411,6.1433000564575195,6.144200086593628,6.145299911499023,6.147000074386597,6.148600101470947,6.149600028991699,6.150700092315674,6.151799917221069,6.297800064086914,6.298799991607666,6.40339994430542,6.673199892044067,6.67519998550415,6.6768999099731445,6.677900075912476,6.692699909210205,6.693700075149536,6.795799970626831,6.797499895095825,6.799099922180176,6.80019998550415,6.801800012588501,6.802700042724609,6.995500087738037,6.996700048446655,7.107399940490723,7.110100030899048,7.1198999881744385,7.155699968338013,8.334800004959106,8.336100101470947,8.338000059127808,8.34279990196228,8.426899909973145,8.42799997329712,8.537400007247925,8.538599967956543,8.539599895477295,8.541300058364868,8.542399883270264,8.543400049209595,8.544399976730347,8.545399904251099,8.54640007019043,8.547300100326538,8.5485999584198,8.549700021743774,8.550800085067749,8.551700115203857,8.552599906921387,8.553499937057495,8.55460000038147,8.555399894714355,8.556299924850464,8.557300090789795,8.55839991569519,8.559700012207031,8.561000108718872,8.562099933624268,8.712399959564209,8.714200019836426,8.715500116348267,8.716700077056885,8.717700004577637,8.82610011100769,8.827899932861328,8.829200029373169,8.830199956893921,8.832000017166138,8.833499908447266,8.835700035095215,8.836699962615967,8.839099884033203,8.841200113296509,8.848900079727173,8.850600004196167,8.852099895477295,8.854399919509888,8.85669994354248,8.857700109481812,8.858799934387207,8.859899997711182,8.861000061035156,9.009700059890747,9.012500047683716,9.01360011100769,9.014699935913086,9.015700101852417,9.016700029373169,9.017800092697144,9.018800020217896,9.019799947738647,9.020800113677979,9.02180004119873,9.022799968719482,9.023799896240234,9.024800062179565,9.025799989700317,9.02679991722107,9.0278000831604,9.028899908065796,9.029900074005127,9.030900001525879,9.03189992904663,9.032900094985962,9.033900022506714,9.150899887084961,9.151900053024292,9.255500078201294,9.256700038909912,9.408299922943115,9.419300079345703,9.421000003814697,9.422600030899048,9.485699892044067,9.486799955368042,9.488500118255615,9.490700006484985,9.68969988822937,9.690999984741211,9.789900064468384,9.878700017929077,9.879899978637695,10.078399896621704,10.079499959945679,10.180399894714355,10.293999910354614,10.295200109481812,10.49399995803833,10.495300054550171,10.596699953079224,10.69350004196167,10.694799900054932,10.889300107955933,10.890399932861328,10.991100072860718,10.992899894714355,10.994600057601929,11.099900007247925,11.101700067520142,11.10319995880127,11.104300022125244,11.105400085449219,11.10700011253357,11.108500003814697],"type":"line","stack":"Total"}]} 1 2

Expected Behavior

应该是 y 轴的数据过大,造成的问题

Environment

- OS: win11
- Browser:chrome
- Framework:

Any additional comments?

No response

echarts-bot[bot] commented 1 month ago

@yangup It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗

TRANSLATED
**TITLE** [Bug] The y-axis data is too large, resulting in inaccurate line charts
yangup commented 1 month ago

应该是由于数据的精度丢失引起的。以上 option1 , option2 可以直接复现问题,期待回复。

plainheart commented 1 month ago

没看到问题所在,因为示例代码里含有 stack: 'Total' 开启了 stack 堆叠模式,每个 X 轴类目对应的 Y 轴是该系列下方的所有系列的值的总和,加上 areaStyle 可以更直观地看到,建议重新考虑你的需求场景是否需要启用堆叠模式。Demo

echarts-bot[bot] commented 3 weeks ago

This issue is closed due to not being active. Please feel free to open it again (for the author) or create a new one and reference this (for others) if you have further questions.