maciej-flexcompute commented on issue #18437:
URL: https://github.com/apache/echarts/issues/18437#issuecomment-1528963027

   Sorry, I didn't know that the problem was not sufficiently described. Sorry 
for the confusion. Sure, here are examples:
   
   **xaxis**
   
   ``x = [0.01, 0.50, 1.01, 1.50, 2.01, 2.51, 3.01, 3.50, 4.01, 4.50, 5.00, 
5.51, 6.01, 6.50, 7.01, 7.51, 8.00, 8.50, 9.01, 9.50, 10.01, 10.51, 11.00, 
11.51, 12.01, 12.51, 13.01, 13.50, 14.00, 14.20, 14.41, 14.60, 14.80, 15.01, 
15.20, 15.41, 15.60, 15.80, 16.01, 16.21, 16.40, 16.60, 16.80, 17.00, 17.20, 
17.41, 17.61, 17.81, 18.01, 18.20, 18.41, 18.60, 18.81, 19.00, 19.21, 19.40, 
19.60, 19.81]``
   
   **series 1 (y1)**
   
   ``y1 = [1.00, 1.03, 1.05, 1.08, 1.10, 1.13, 1.15, 1.17, 1.20, 1.22, 1.25, 
1.27, 1.30, 1.32, 1.34, 1.37, 1.39, 1.41, 1.44, 1.46, 1.48, 1.50, 1.52, 1.54, 
1.57, 1.59, 1.61, 1.62, 1.64, 1.65, 1.66, 1.67, 1.67, 1.68, 1.69, 1.70, 1.70, 
1.71, 1.72, 1.72, 1.73, 1.74, 1.74, 1.75, 1.76, 1.76, 1.77, 1.78, 1.78, 1.79, 
1.80, 1.80, 1.81, 1.81, 1.82, 1.82, 1.83, 1.84]``
   
   **series 1 (y1)**
   
   ``y2 = [0.01, 0.71, 1.00, 0.70, -0.01, -0.72, -1.00, -0.71, 0.01, 0.71, 
1.00, 0.70, -0.02, -0.71, -1.00, -0.70, 0.01, 0.71, 1.00, 0.70, -0.01, -0.71, 
-1.00, -0.70, 0.02, 0.72, 1.00, 0.71, -0.00, -0.31, -0.60, -0.81, -0.95, -1.00, 
-0.95, -0.80, -0.58, -0.31, 0.01, 0.32, 0.59, 0.81, 0.95, 1.00, 0.95, 0.80, 
0.58, 0.30, -0.01, -0.31, -0.59, -0.81, -0.95, -1.00, -0.95, -0.81, -0.59, 
-0.30]``
   
   Plotted as category line:
   
   
![Category](https://user-images.githubusercontent.com/83596707/235340964-b4d83bda-b50c-4ed8-9190-1ccbc3cb51f9.png)
   
   [Category Line 
Demo](https://echarts.apache.org/examples/en/editor.html?c=line-stack&code=PYBwLglsB2AEC8sDeAoWtJgDYFMBcya6GOAHmAQOQDCAhmDgObABOAnpUQL4A0RYwYFkggCqYhhYRGjHCyq1SEAM6d0vIrlnQAJmKLod9WgQDalNgEZKPWBYBMlALrc-6RlL2EJuAGYU7AGYAUhsDWClGAAsAygAWULdiACNgMAEAWyoQsIkAYxgwWghoABlaZJwsAjAWAFccV35BLFTSfQlfHHo6lnxvCVhlWgA3HABBZQBJDNpZMS5wxfUk0nGlZQ7iMDYQfso8-iZWDiT0VLrdWnYAcVpRWF9aLGUcM9gjIrMABgA6b8stj-AFZvrZLP9AbAIaDbPZIXDfsCoYEEbBUbDYHE0djMcD_mDYPjkbYAGxo8mYgDsaJpJNgAA4CbYmZiAJxojmYyx_AHgkFQywQ76EoVIwXwvnQ-H0yyoqVypGi7Ei8HY-zK35xQXY0mahmi_EK_Ea8H47Vm356y0G8HkhXk-yC8lxUXk63Q8m26E01U-36m_0W_2kwU0hmCpkKpmByxM4Nxq2ipkR8Ecv2WDlOtNa0Ucj2Z34RlwrIhsdYqLboHZ7KgjZ4NNSwDToV5SHCbWCmcLiQbQWgZfZWXKDGv7LAlHAjiQAehnQyKeQA1lQACppZ7T4hz2DXboAZR2uAW73QO-Ui6Xh5YR0YbAUWCwW8MxjMwtF_0C4P-wO_3wZ348oBX7Qr8li_qBlhUt-sYBvYMEQRC9jQaBgQfoE8GoXE36BChEKBGy34Jlq2GgXEpJEQBoHckimEwqRMJ4UihGgaG36knRVoMVaiFWhRrFMaSglURCpIsRCVIfpJ35UoKvxUpxCkySBEncVSam8VS_ESdp8lMVSInyYZVLiUWH7ehCqagVZlmcQydkqUWcQlsQLbEL2Ej9oOVBsI4p4
 
YLs46Ts-sDnpea4bk-_k7nutCHmwx7IG5s7zhetDLtet73nYzxReEL5fF2vJQn8sl_oSpWEgAtMVtg1fJmFVe-dWlSVaKteVQLydVvKNR1sBNcyA2VV1Ur9c1sAjcNaL1WVA0TbNFX_JhpWcX6_X1X69WBFC9UevVVn1WyEGDVtfzHS1ZmXcCVHbW1Y2_BhXXAixfxWedvHrb8F2TVdv03V1aGXVKd3XSxB27R9dULVD02HSC4N_GhLmlugLhcAA3EAA)
   
   Plotted as category stack:
   
   ![Category 
Stack](https://user-images.githubusercontent.com/83596707/235340989-12765592-8c24-49b6-8838-03e8852e6e33.png)
   
   [Category Stack 
Demo](https://echarts.apache.org/examples/en/editor.html?c=line-stack&code=PYBwLglsB2AEC8sDeAoWtJgDYFMBcya6GOAHmAQOQDCAhmDgObABOAnrAMpi0DGA1pSIBfADREwwYFkggCqYhhYRGjHCyq1SEAM5D0YorjXQAJvKLpT9WgQDalNgEZKo2I4BMlALojx6RmVzQkVcADMKdwBmAFJXS1hlRgALSMoAFjj_YgAjYDBJAFsqWPjFXhgeCGgAGVocnCwCMBYAVxw_CSksPNILRTCcelaWfBDFWB1aADccAEEdAElC2jV5YQSNg2zSOe0dfuIwNhAxyl56JlY2MtzgVrNadgBxWjlYMNosHRxsqxt7AAGAB0gKcbhBAFZAW4nKDwbA4dC3B54SjgZCEVE0bBscjYOkcYT8ZDQTDYKTMW4AGw42n4gDsOKZVNgAA4yW4OfiAJw4vn4pwgsGwqEIpxwwHkiUY8WokWI1GspzYhUqjHSwlS2GEjya4HpcWE6n6tnS0lq0l62Gkw024Em-1m2G0tW0jzi2npaW0x2I2nOxFM7VB4HW0N20PU8VMtnijlqjnhpwcyMph3Sjlx2F8kNOPkenMG6V8v354Fx3zbIhsPa6Q7oY6nKjTL7tfSwQzoH7KHAHWB2BIKCbQWiFM7OW6KJtnLDVHBT4g6HgCKgAFXyX0X6CeQ24bFw6z-S5X_G4LEujDYmiwWG3sGsPHskuloKisNBkI_gLZH6Ff_fRFgScL8gKcBkP2TMMPEg0C4Q8CCgKiV8ohgpD0g_KJELhKIeQ_NMDQwoD0mpfDfyAwUMTQpEiKRbCMTwoDow_alqIdWiHTgh1SKY-jqT48i4WpRi4QZV8xI_BlxWBBk2NkyTANEjiGWUriGR40SNJk-iGUEmS9IZESK1fQM4WzIDzLMti2WsxSK3SKtiC7Yhh0UUdxyoNgvGPRsTl
 
ned72XPh-HXTc7x82Bd1ofdD2QZzFCCgRz0va93C-cKEn-J8B2FBEQSk79yXy8kAFpcrcMqZLQkqXwq_K8pxerCohGTSuFaqmtgGrOS64qWoVTratgPrepxSqCq6obxqK0E0PytiQ06yqQ0qqIEUqv1KvMyqeVA7qVpBXa6uM47IXI1aGoG4FUJayFGJBczDq4xbgSO4aTves6WuQ46FQu07GK29anoqqaQdG7aoUBkFkMc6t0F8YQAG4gA)
   
   
   Plotted as value line:
   
   
![Value](https://user-images.githubusercontent.com/83596707/235341285-411721d6-aa2c-4171-8ca3-ad34c350e8ee.png)
   
   [Value Line 
Demo](https://echarts.apache.org/examples/en/editor.html?c=line-stack&code=PYBwLglsB2AEC8sDeAoWtJgDYFMBcya6GOAHmAQOQBqAhlgK46VEC-ANEWMMFpCAVTEMAJwgBzcThFVapCAGcW6DkVxToAE0FF0m2mFoEA2pQCeARkrtY5gEyUAum07pxY7YWG4AZhVsAzACk1rqwYuIAFv6UACwhrsQARsBg3AC2VMGhwgDGMIYQ0AAytEk4WARgIkwuXDxYKaQ6wj44Bgwi-F7CsAq0AG44AIIKAJLptFKCrGGzKomkw_IKLcRgZiDdlAP0TDnJwAxatCJmAOK0ArA-9Ao4iegA9E-w-oYmAAwAdJ8WNj8AKyfGwWX7_WBg4E2OzgmHfQEQgJw2DI6GwWIozHowG_EGwXGImwANhRpPRAHYUVSibAABx4mwM9EAThRbPRFh-f1BQIhFjBn3xAoR_NhPMhsNpFmREplCOFmKFoMxdkV31i_MxxPVdOFuLluLVoNxmpN3x15r1oNJctJdn5pNiwtJlshpOtkKpyq932N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Jl5smTEXTijgfoqCIM4VgABuIAA)
   
   
   **Problem**
   
   You can clearly see that two line plots appear visually different. In the 
category plots, it seems that y1 is not a linear function as has a kink arround 
x=14. The y2 line has larger period in x in [14, 20] and shorter period in x in 
[0, 14]. 
   
   In the value plot you can see that y1 is actually a linear function (the 
small off-linearity is due to roundoff error), and y2 is regular periodic 
function without any changes in periods.
   
   This data plotted as 'category' creates confusion to the receiver, because 
datapoint lay in mathematically incorrect locations. User can incorrectly 
conclude that y1 is non-linear and y2 is not regularly periodic. In general any 
(x, y) data represented by real numbers should always be presented as 'values' 
and never as 'categories'. See plotting in Matlab, python, gnuplot, excel or 
any other plotting tools.
   
   The solution you proposed in the last plot, in my example I would need to 
put sampling in 0.01 period, which is 2000 points instead of 58 (dataset size). 
But in general case (interval are real numbers) this is not possible to find 
such interval.
   
   Finally, you can make a restriction that x values are common for both y1 and 
y2. I.e., there is not such x point of series 1 for which we don't have data 
from series 2 and vice versa. 
   
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org
For additional commands, e-mail: commits-h...@echarts.apache.org

Reply via email to