You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "carlshe (via GitHub)" <gi...@apache.org> on 2023/03/28 15:31:46 UTC

[GitHub] [echarts] carlshe opened a new issue, #18437: Hope xAxis of Stack Line support value

carlshe opened a new issue, #18437:
URL: https://github.com/apache/echarts/issues/18437

   ### What problem does this feature solve?
   
   Currently, stack line only support category xAxis. Could xAxis support value so the x direction could be scaled by x value?
   
   If so, Echarts could be used for simulating the geological profile, which is composed of connected rock/soil layer points.
   
   ### What does the proposed API look like?
   
   Just providing the value type for xAxis for stack line. 


-- 
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-unsubscribe@echarts.apache.org.apache.org

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


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


[GitHub] [echarts] helgasoft commented on issue #18437: Hope xAxis of Stack Line support value

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18437:
URL: https://github.com/apache/echarts/issues/18437#issuecomment-1491334040

   @carlshe, I think _themeRiver_ chart will work best for you 
   [Demo Code](https://echarts.apache.org/examples/en/editor.html?c=themeRiver-basic&code=PYBwLglsB2AEC8sDeAoWszGAG0iAXMmuhgE4QDmFApqYQOQCGAHhAM70A0x6L7ACsAjQwtQqhIkwATxDUG2YdS48Si6NQDKM7PKKTJAYxzA6seqQoAjRgAoADJ0fOAdACYAlCoMkA7hAATMAALQgBGbh90GTkGNhxA-lV0AF9VNNTI2F0aaADxVQDGMEZCAG16AGFgAFsQYDYIUS5zABkIGuo2TA0W-k1GPO6YZU5zAHFSQablAF1iFKzG6ApdAEFWNgLJAHodzAJYAFZHVStgMEwawhOs3k2AFQhDAGtxRdU-NlbGK2psd53DCyPT0ABujGwAFdRp9NoJhKIzBIDNMasUoNBCGBSDCgehsL9_tsomxgsBfNjcdRkrAMiQPpI2CBFGB2hoSUzyZSyHjaeotDo9CifDFQUUydQAt4oqBGIYmtJCPYXABOWn01ILJa0CBdcqqEVSEEMELUToAJQgYNoMsk5pAwUYjS2-iiMxq2mkuk5pKdAQpACFoWY3KcoiQyYwA75qthTAxLDYHGNHLA0yqABxeWlanyMgxFErlWC52BlNNuABsY3o7U6w16s3xJArYzCafok2mzWbZbbsAALIPawMhj05i30GUwjWh53610J_Q-xGZ3OAMwAdlHgwCjcn_dnYw3teqdQaMxXU_LbhHsGrtcXB-v_bvYzcbl345Gr7X79gDdT3Mc96kaXsW3mSR6XmFIAG4gA)
   ![image](https://user-images.githubusercontent.com/13038071/229034014-1c6d3ef6-68c7-414f-a341-393e35c8f7f5.png)
   


-- 
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-unsubscribe@echarts.apache.org

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


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


[GitHub] [echarts] helgasoft commented on issue #18437: Hope xAxis of Stack Line support value

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18437:
URL: https://github.com/apache/echarts/issues/18437#issuecomment-1487379889

   yes, xAxis of Stack Line supports value, [Demo Code](https://echarts.apache.org/examples/en/editor.html?c=area-stack&code=PYBwLglsB2AEC8sDeAoWtJgDYFMBcya6GOAHmAQOQDKYAhgMYDWOAJrAIIBOOdlRAXwA0RMMGBZIIAqmIYuEAOaKcXKnVIQAzpRFyN2gArAI0MKplE5YAJ4h8sSgy7AtOvXNhY6AIxxZLT2IfRiZFFwBXaFYAYQlgNUcAYgA2OgB2AE4ADgBWfiCBK1gi9GEiXBVomXL0Ug5NLUDiAHoW23sqBjpzRQSbXWKfYCjWOi4bAHE6aVgAMzosLRwPdDH6AgBtAEYhWAAmPYBmPYAWPdy9lL30gF1BDxsG7Wb0DodKADdFiJwCko8ywUOCasE2xVknmgdAAth8AKIwugQLCDILvKhYUx_VbELT0ZhUAAqwHoqNx6HGvFoNlwNQpsBwMJAAAs6FoXoQgug5sAGBFQZQgRAQf85LVPOs6FttvsAAx7bZHQ6wbZy3aqo7nWCZBUHI56_Zq-7i3GQuTQuFUACq0CgcA4rHcxTedg-WOgOJdsHxoWJpMWaM8VLoNLpyAlciZrPZnPNnl5_MFwtF3sjxClW328sV2RV20yGv2Wr2-11xwNx2NxXT8fQlo-ADUIKwcMBOE6g9Y3ZjsV28QSmP6yf3KTxQ7Zw0h0-ho2yOaC68REwKqCmdGmGZmwdtcoblaX1YrctqC3qjpXYKdq6aId6G1QACIQHgMMCjjA9xwer1BX2ExwSRHBkQzDBxpwZOdY0Xb0eT5VdHHXMViBnWBt02ZVzwPWADQ1C9tSOcscMvTCTRQs171hD5qF4LgGBZWB4WgRQ-wZDFv1Y71_yHQCA3Jb1vD8AIuW5LQWWAAB3AgwC4X4GXQEBXAgSAYCoMQQGQsoQPHMD6W9KCF1eBN4OTVQRQ3Qotx6aU
 wTzPVMmw3UNQc08yz1JVLyVeUyLKIh7gEABuIA)


-- 
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-unsubscribe@echarts.apache.org

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


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


[GitHub] [echarts] carlshe commented on issue #18437: Hope xAxis of Stack Line support value

Posted by "carlshe (via GitHub)" <gi...@apache.org>.
carlshe commented on issue #18437:
URL: https://github.com/apache/echarts/issues/18437#issuecomment-1493246561

   > 
   
   Thank you, helgasoft!
   
   I tested your demo code. I think it is essentially still original category type of xAxis. All the data defined for x_Axis is discrete identification. All the x-coord node must be prdefined in xAxis and evenly distributed over x-axis, and all feature points must locate at exactly one of the predefined x-coords. But for geological profile or any other similar polylines, the feature point could be at any a x-coord.
   
   Highchart has no much limit on x of Stack area map, except that all the layers should share the single data definition of x-categories. Values in x data set are not required evenly distributed over x-axis.
   
   Hope ECharts could provide similar function as soon.


-- 
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-unsubscribe@echarts.apache.org

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


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


[GitHub] [echarts] maciej-flexcompute commented on issue #18437: Hope xAxis of Stack Line support value

Posted by "maciej-flexcompute (via GitHub)" <gi...@apache.org>.
maciej-flexcompute commented on issue #18437:
URL: https://github.com/apache/echarts/issues/18437#issuecomment-1529559347

   @helgasoft 
   
   Your example looks exactly like what I am looking for.
   
   > But in general case (interval are real numbers) this is not possible to find such interval.
   
   Here is the proof:
   
   > lets take `a`, `b` real numbers which represents intervals between points. We are looking for such interval `c` that `a = p * c` and `b = q * c` where `p, q` are whole numbers and they have no common factors. I will show that such interval `c` does not exist if `a=sqrt(2)` and `b=sqrt(3)`. We have respectively:
   > `sqrt(2) = p * c` and `sqrt(3) = q * c`. We have `sqrt(2) * q = sqrt(3) * p`. We can raise to power 2 both sides:
   > `2 * q^2 = 3* p^2`. We can see that left-hand side is even, thus, `p^2` must be even, thus `p` must be even, right-hand side is divisible by 4, thus `q^2` must be even, => q is even. We showed that both p and q are even which is in contradicts statement that `p, q` are whole numbers and they have no common factors. 
   
   Mathematically it is not possible, but numerically it is possible since we represent numbers double precision, so at least 1e-16 can work. And practically speaking human cannot visually distinguish ~1e-5.
   
   


-- 
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-unsubscribe@echarts.apache.org

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


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


[GitHub] [echarts] Ovilia commented on issue #18437: Hope xAxis of Stack Line support value

Posted by "Ovilia (via GitHub)" <gi...@apache.org>.
Ovilia commented on issue #18437:
URL: https://github.com/apache/echarts/issues/18437#issuecomment-1491226736

   Stack line with value axis may have some logic problems. For example, if the data of one series is `[[1.1, 20], [2, 31], [3, 2]]` and another series `[[1, 12], [2, 31], [3, 2]]`, how do you expect them to stack? Should `[1.1, 20]` stack with `[1, 12]`? If not, the two bars should probably overlap. So I think you probably should use category x axis by logic.


-- 
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-unsubscribe@echarts.apache.org

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


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


[GitHub] [echarts] helgasoft commented on issue #18437: Hope xAxis of Stack Line support value

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18437:
URL: https://github.com/apache/echarts/issues/18437#issuecomment-1528700690

   Guesswork continues... here is an [Updated Demo](https://echarts.apache.org/examples/en/editor.html?c=themeRiver-basic&code=PTAEBMEMBdNAHATgU3gKAGYFcB2BjaASwHsdQBPAMUWIFsANACnmMJ2gEYAaBV9gJh4APAJSgA3mlCgA5okjhCydqAC8oZn2j8A2hwC6oALS82nPfrFhNZ3QAZDJlmY46HIgNxTQZ5Ijyo0Gqm7K4GxhpyCkoqAFQh5u5e0ijQWIhkUYrKQfFCoADUPux-AfDQXgC-mLgEJGR4dPCQKAByWLQARn4AzoyQPJ1i4qCp6WRwJp0eoNUgxfBYQQA2bMgQMJBoPT3qOlI6bjwAbKD6PHoAzDz8AKznoDr8ACw3x_rnB0egHA4XHAB2HiAh5PbigfhnT6Pb4cAAcoN-wP4oJewPen30aCEkCEyD2-i8OwAdLRIPBGD01AA-UA9Un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poDVBUAHkytIRhl9AAB-UBSshJrSsnqKKwS1q0EqLx7WFqzkGE78ehK7jgmQYvt70iWNRRcOZJSMBvvUIUl9iQ1TqoBBw6gRgB0mngGA-ENQ7UZrrRiIp2a4nqgAFVdqLcQ-VCAyBwAAdQRlyN6kBujLAatASSyApadGILgKAiByBU3JE1PKBUfz4xgftQ6exvCywDq9Mmj1nq3Q-l9X2DMULW1FpNb6VkHpG2zjDZo_MLZ2GJJcAe0gmZNRvHyUc7MpFXQVrIlW1Naba3ZtINRt1NHaJQBDY2ei4bmyRsY0xGwAaJQsNY6WtiSYyKVuTeRr11Y6k1i41Rb8PHQC0TwHRPNTb6ICUYkxriQnMzCSiaxaBCRAA) with "sampli
 ng categorization", for lack of a better word.
   Idea is to split _xAxis_ into smaller units and generate more points on the original lines (sampling). Sampling step _smp_ could be adjusted from rough (2+) to fine (<=1). Then we have enough categories (vertical reference points) to stack the lines on top of each other. 
   Use _Switch_ button to toggle between lines and stacked lines.
   @carlshe, @maciej-flexcompute, will this work for you?
   
   ![image](https://user-images.githubusercontent.com/13038071/235287130-6e4db534-62bb-4ffb-b96a-da9de277cf6b.png)
   


-- 
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-unsubscribe@echarts.apache.org

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


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


[GitHub] [echarts] helgasoft commented on issue #18437: Hope xAxis of Stack Line support value

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18437:
URL: https://github.com/apache/echarts/issues/18437#issuecomment-1489212200

   @carlshe, thank you for pointing that out. 
   I forgot what the [documentations says](https://echarts.apache.org/en/option.html#xAxis.data) - when _"axis.data is specified, the [type](https://echarts.apache.org/en/option.html#xAxis.type) is auto set as 'category'"_
   
   I still do not understand why type='value' is needed for your data. 
   Could you provide a **data sample** to see the problem with _"x direction...scaled by x value"_ ?
   Geological profiles are interesting, maybe we can come up with a solution.


-- 
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-unsubscribe@echarts.apache.org

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


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


[GitHub] [echarts] Ovilia commented on issue #18437: Hope xAxis of Stack Line support value

Posted by "Ovilia (via GitHub)" <gi...@apache.org>.
Ovilia commented on issue #18437:
URL: https://github.com/apache/echarts/issues/18437#issuecomment-1493921289

   > For 'category', if the data is ordered numbers, is it possible to expose an option to tell echart to treat these categories as x values, so the line points could be rendered at expected x-locations?
   
   @carlshe I don't understand. If you have such requirement, why don't using category x axis?


-- 
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-unsubscribe@echarts.apache.org

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


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


[GitHub] [echarts] maciej-flexcompute commented on issue #18437: Hope xAxis of Stack Line support value

Posted by "maciej-flexcompute (via GitHub)" <gi...@apache.org>.
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 St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qQ0qqIEUqv1KvMyqeVA7qVpBXa6uM47IXI1aGoG4FUJayFGJBczDq4xbgSO4aTves6WuQ46FQu07GK29anoqqaQdG7aoUBkFkMc6t0F8YQAG4gA)
   
   
   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_MxxPVdOFuLluLVoNxmpN3x15r1oNJctJdn5pNiwtJlshpOtkKpyq932NvrNvuJ_KpdP5DLlDP9FgZgZjFuFDLDoLZPosbIdKY1wrZbvT3zDzgWRDMy0Ua3QGy2VF2jGYdXQ9zEOFWsGMYSEvWgtHS20sB2EVe2WCKzEexAU6R4YEiVRqDzCz1eCkMuQA1lQACqpegD4gvWCndoAZQ2uBm46XfVXa9PIgMOHEZlkWCwe70BiMbeM3P5eMcNg_gqoK_AEAFtoKf6fIC4HGFCwq_HSsHin-XLIaKIEyrBsqoTBgFoghFgUrBSp_mqJHAZCfp2LBBoIXYeFtoSZHEYBtp_gEnyweSCEBDRgHehxsSwTSHGsW2Ea8SysHMghmqwamf6xMJgEcnJxKwVyKJgrESGAVp0oKppgoIYC_EQVCf6AipEEoSBgLiXBUpWdJ-k4SBwaaQRHnmXBSoIcS
 Nl-X6AWMcFcYWhp-nagFjkWJinpgsScUGn-xJ6RBRoBa5mUan-FJcfpuJ5t8BWabiiWlRYmnsSBFK-RY9r5Q1ToIRSYH6a6bVBY1BbdZp3ptWFREhXVUUQVSEUUuNcFUsGdVxaG-UZXBEbLZpUZtTlq15SBeobQme2FRBSZ_oW-mpgh50QRmZ0NWyzp7fdh1UXSHU3QWZ3CUWxCqMInbCN2vZUGYDiXhgmzDqO759FOqSzqITDgweK60OuW47m-yOvEetCnmY57IH9vQozed4Pk-L5Y4ubyfiYQESr-sFAviPwUtV-naf-nPomzx3GHZsAALRM4Bzk2CLpW-e5wsmdhlGS-zFGM-CFG81VtGMlRQqa7SfPcSikufL5PES2zHNtoJEtywJGHC_rgGSQCquO5R5sKVzOuqW7pX81pEpGxbcF8mbGv6SZ1vcxZduK37gvcg14uwGzDUyzbEHecnYcQf5odezno3298ARB_Fu1FzqmkxaH13BZ6ksssNqWR_ncFZaHjfleXkv7UVL2S4CK0WBV-KSyXNUoqLEFNc7fET49WeAttvVuj8te9Z6Pyd_pg0ga3I3-lvw2TRCa9-3Np8IkPS2z37a156Xm2h-P-mxhCA_Lwybo94_n0d8Nl0W5-1uv_TSD1R5r1LrmCBCJl5smTEXTijgfoqCIM4VgABuIAA)
   
   
   **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-unsubscribe@echarts.apache.org

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


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


[GitHub] [echarts] helgasoft commented on issue #18437: Hope xAxis of Stack Line support value

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18437:
URL: https://github.com/apache/echarts/issues/18437#issuecomment-1492840879

   ECharts can do the same - [Demo Code](https://echarts.apache.org/examples/en/editor.html?c=data-transform-sort-bar&code=PYBwLglsB2AEC8sDeAoWsAmBDMWDOApmAFywDaa6ylVsewArgE4DGBpFttZADADSwATAEYALAF0-NLmWECAzGMnTuohQFZhyrlTLqF8-eJWxjtAL5TaqHfWZsOJ9LwHClVneTlDhATm2eZGpC6kYeOnoCggAcRiZmVJbSNlx2rOzkTuT8sG4S4TLebloFqlGC6gER-rCK0Qm0DbDmlAEAHgCCbRB4pCnoYACeIBkA5Cw4BADmwEyDowIARozQ2HMA4lggpABmWAA2hAXYuBzeggoCwTUAbAFJ6INdPX0PdARMEAS9mdYmJ_giABJVYENqkfgmIYjUijfYQaAEBYmPC4FgAa1hABVgLh9sidFgmAQsABlIb7DJIN60PCDAC2y32pIgAC8Mm5pDTqDoAYQwCCMGDSHIocMxvDEQTUmjMbBRji8dLaESSeTBpTXqU6AymSz2SLhFyCv0qHzgaDwUJtdCJQikdrUVgMdjcQdlVRVWSKVTueg6YzgMy2RyjRZWihzABuIA)
   ![image](https://user-images.githubusercontent.com/13038071/229267761-860467c3-f15b-46d8-96e5-23ab022406e1.png)
   


-- 
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-unsubscribe@echarts.apache.org

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


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


[GitHub] [echarts] carlshe commented on issue #18437: Hope xAxis of Stack Line support value

Posted by "carlshe (via GitHub)" <gi...@apache.org>.
carlshe commented on issue #18437:
URL: https://github.com/apache/echarts/issues/18437#issuecomment-1492229961

   > If stack area map really doesn't support continuous x value, is it possible to derive sub type from stack area map to improve its rendering?
   
   Thank you very much, helgasoft!
   
   The circumscribed polygon of the thematic river map is a symmetric graph. Any a item change, even small, will result in vertical adjust of bottom, top or middle lines to ensure it becomes symmetric again. In stack area map, item change only take effect on its neighbor. The bottom is always stable.
   
   I tried your new demo, and found that at x-24, the bottom moves a little up, and the top moves a little down.
   
   If stack area map really doesn't support continuous x value, is it possible to derive a sub type from stack area map to improve its rendering? by overriding/modifying part of its rendering process? 


-- 
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-unsubscribe@echarts.apache.org

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


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


Re: [I] Hope xAxis of Stack Line support value [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #18437:
URL: https://github.com/apache/echarts/issues/18437#issuecomment-2843280016

   This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.


-- 
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-unsubscribe@echarts.apache.org

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


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


[GitHub] [echarts] carlshe commented on issue #18437: Hope xAxis of Stack Line support value

Posted by "carlshe (via GitHub)" <gi...@apache.org>.
carlshe commented on issue #18437:
URL: https://github.com/apache/echarts/issues/18437#issuecomment-1491289072

   > Stack line with value axis may have some logic problems. For example, if the data of one series is `[[1.1, 20], [2, 31], [3, 2]]` and another series `[[1, 12], [2, 31], [3, 2]]`, how do you expect them to stack? Should `[1.1, 20]` stack with `[1, 12]`? If not, the two bars should probably overlap. So I think you probably should use category x axis by logic.
   
   Thank you Ovilia,
   
   I just hope while using stacked area map, the xAxis can reflect comparable continuous quantity. Currently the data of xAxis is treated as discrete quantity.
   
   Could please refer my reply to helgasoft?


-- 
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-unsubscribe@echarts.apache.org

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


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


[GitHub] [echarts] carlshe commented on issue #18437: Hope xAxis of Stack Line support value

Posted by "carlshe (via GitHub)" <gi...@apache.org>.
carlshe commented on issue #18437:
URL: https://github.com/apache/echarts/issues/18437#issuecomment-1492803975

   I found hichart can render stacked area map with x-value.
   
   In fact, it still define xAxis as category, but it accept x-value as category and render line points at expected location.
   
   ![MFQI5R84YOQ0)`)ANO}P91X](https://user-images.githubusercontent.com/4974493/229262112-56bab86f-63a8-4bb3-bfee-05d9f0d240d7.png)
   


-- 
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-unsubscribe@echarts.apache.org

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


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


[GitHub] [echarts] helgasoft commented on issue #18437: Hope xAxis of Stack Line support value

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18437:
URL: https://github.com/apache/echarts/issues/18437#issuecomment-1527919171

   > None of the proposed solutions are solving this problem.
   
   Maybe because **no sample data** was ever given...? Sorry but "not uniformly" "co-located" "interpolation" sound confusing to me without real data. The Highchart example is also given without data.
   Ok, lets try and **guess** what this mysterious "value data" could be. Here is an example.  
   Three lines start at 0 and all other X coordinates may or may not be the same, [Demo Code](https://echarts.apache.org/examples/en/editor.html?c=themeRiver-basic&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMgL4A0asAnjvgUmRQDYCmA5s9ACZH3noDGwRsABORANoByAEaMArs0mlJrEcw5LJazptUBDSpIC6fWHmYiIzQrHEV0qdE9hhKIZkUmMI0RaVjQegC2HrCSADIQIXhgMH72Tpx6YHoStgAM_gBsJrYAjADM_gBMAKy54sUALCU5RgkMzo7OLm6hXj5-AcHtAOIietAQYPEtsEkpaeKZsHnpFXkA7P5LJpV5JUb1zmSwCc3Oru6e3r5K3SGeAMLAQSDAeMOjLROpthkrABwLM3nFFdUVnUGqZ6sQANxAA). 
   How do we stack them without category "pillars"? Is it even possible ? Any reference paper(s) on the subject?
   We need proof of concept.
   ![image](https://user-images.githubusercontent.com/13038071/235221081-300bab64-68fb-4e9f-ad74-c286db2e3580.png)
   <details><summary>disclaimer</summary>
   opinions expressed in this post are strictly personal, as ECharts user, not a developer
   </details> 
   


-- 
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-unsubscribe@echarts.apache.org

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


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


[GitHub] [echarts] carlshe commented on issue #18437: Hope xAxis of Stack Line support value

Posted by "carlshe (via GitHub)" <gi...@apache.org>.
carlshe commented on issue #18437:
URL: https://github.com/apache/echarts/issues/18437#issuecomment-1492021055

   > 
   
   Thank you very much, helgasoft!
   
   I tried your demo. It seems not suitable for me. Because the lines are not stable. Any a item change will result in vertical variation of bottom, top or middle lines. In stack area map, item change only take effect on its neighbor.  


-- 
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-unsubscribe@echarts.apache.org

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


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


[GitHub] [echarts] carlshe commented on issue #18437: Hope xAxis of Stack Line support value

Posted by "carlshe (via GitHub)" <gi...@apache.org>.
carlshe commented on issue #18437:
URL: https://github.com/apache/echarts/issues/18437#issuecomment-1491282539

   Dear helgasoft,
   
   
   Thank you for your quick reply!
   
   
   I use ECharts' stack area map to express the geological profile/section. The geological profile data comes from the sampling analysis of geological boreholes. Each borehole has a spatial location. Generally, the boreholes on the section line are not uniformly distributed on the profile line. But stack area map treats the data of xAxis as discrete quantities (‘category’) uniformly distributed on the x-axis, and then cannot reflect the distance relationship between the boreholes.
   
   
   
   
   As follow map shown, there are 3 boreholes located on the profile line, the distance between first and second borehole is 16m, the distance between second and third borehole is 8m. The presented 3 boreholes are uniformly distributed on the xAxis. It will be best the visual interval between second and third is half of that between first and second.
   
   
   
   
   
   
   
   
   Could please help giving a solution for it?
   
   
   Thank you again!
   
   
   Carlshe
   
   At 2023-03-30 03:52:48, "helgasoft" ***@***.***> wrote:
   
   @carlshe, thank you for pointing that out.
   I forgot what the documentations says - when "axis.data is specified, the type is auto set as 'category'"
   
   I still do not understand why type='value' is needed for your data.
   Could you provide a data sample to see the problem with "x direction...scaled by x value" ?
   Geological profiles are interesting, maybe we can come up with a solution.
   
   —
   Reply to this email directly, view it on GitHub, or unsubscribe.
   You are receiving this because you were mentioned.Message ID: ***@***.***>


-- 
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-unsubscribe@echarts.apache.org

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


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


[GitHub] [echarts] xitice commented on issue #18437: Hope xAxis of Stack Line support value

Posted by "xitice (via GitHub)" <gi...@apache.org>.
xitice commented on issue #18437:
URL: https://github.com/apache/echarts/issues/18437#issuecomment-1488744994

   @helgasoft In the demo you provided, only the default value of xAxis: category is used. Below is a screenshot of the complete options in the demo. In fact, when the value of xAxis.type is set to value, xAxis.data cannot be assigned, and all data will be in series, such as series[0].data = [[1, 2], [2, 3], [3, 4]].
   ![image](https://user-images.githubusercontent.com/34917927/228572997-e23fdfae-6fb1-474c-8e71-d656bdabf6bc.png)
   


-- 
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-unsubscribe@echarts.apache.org

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


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


Re: [I] Hope xAxis of Stack Line support value [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #18437:
URL: https://github.com/apache/echarts/issues/18437#issuecomment-2864309507

   This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!


-- 
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-unsubscribe@echarts.apache.org

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


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


Re: [I] Hope xAxis of Stack Line support value [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #18437:  Hope xAxis of Stack Line support value
URL: https://github.com/apache/echarts/issues/18437


-- 
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-unsubscribe@echarts.apache.org

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


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


[GitHub] [echarts] maciej-flexcompute commented on issue #18437: Hope xAxis of Stack Line support value

Posted by "maciej-flexcompute (via GitHub)" <gi...@apache.org>.
maciej-flexcompute commented on issue #18437:
URL: https://github.com/apache/echarts/issues/18437#issuecomment-1527182688

   I encountered the same problem as @carlshe and also looking forward for stack supporting xaxis type=value. 
   
   None of the proposed solutions are solving this problem. @Ovilia to you point on having data on different x locations, you could accept only values being provided on xaxis->data, then the points will be co-located. Alternatively you could check if points are co-located when provided in series and throw error if they are not. Ultimate solution would be to do interpolation, but supporting at least co-located would be great.


-- 
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-unsubscribe@echarts.apache.org

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


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


[GitHub] [echarts] helgasoft commented on issue #18437: Hope xAxis of Stack Line support value

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18437:
URL: https://github.com/apache/echarts/issues/18437#issuecomment-1492206727

   if boreholes are of **different depth**, an additional 'unknown' layer can be added at the bottom
   [Demo Code](https://echarts.apache.org/examples/en/editor.html?c=themeRiver-basic&code=PYBwLglsB2AEC8sDeAoWszGAG0iAXMmuhgE4QDmFApqYQOQCGAHhAM70A0x6L7ACsAjQwtQqhIkwATxDUG2YdS48Si6NQDKM7PKKTJAYxzA6seqQoAjRgAoADJ0fOAdACYAlCoMkA7hAATMAALQgBGbh90GTkGNhxA-lV0AF9VNNTI2F0aaADxVQDGMEZCAG16AGFgAFsQYDYIUS5zABkIGuo2TA0W-k1GPO6YZU5zAHFSQabR8wBXaABraGBfaHoAXWIUrONsU3L6K2w50foKUmpqdc5znACuC2oH24vGaU2sxugKXQBBVhsAqSAD0IMwBFgAFZHKorMAwJgaoQYVleICACoQQyLcQ7VR8NitRhWajYPFojCyPT0ABujBOowJgMEwlEZgkBmmNWKUGghDApFOlPQ2BJZOBUTYwVWAqF1GSsAyJHxkjYIEUYHaGklaplvjlwsV6i0Oj0nJ8MRpRWlz28UVAjEMTWkhHsLgAnIrlaltl9aBAuuVVBapNSGCFqJ0AEoQWm0e2SKMgYKMRpA_RRGY1bTSXS6qWpgKrABCJzMblhURI0sYxd81X2Zgs1jsjlg7c7LgAHF5Fb6fKqDEUSuVYP3YGV224AGxjejtTrDXobEUkKdjMLt-iTabNVcTjewAAs84GQx6ygP1aP2-qdQaM0-h_bx-3C2Wq3W16ih7Cc5PbdFy6S9nxvf8xgAZgAdjPQYAmXK813QMoINgSD53vepGn3ZDJzQ98lhWNYwN_G83FPWBZ3nYDENInwygosY3Dgi8RnogxGMoyCMPMLDH1ww8mNgMJu3nD9iO_NctkkZUthSABuIA) - example: deepest borehole is at 16.
   ![image](https://user-images.githubusercontent.com/13038071/229173116-aa3a8b82-2f23-437e-9a7a-b89875eb090e.png)
   


-- 
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-unsubscribe@echarts.apache.org

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


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


[GitHub] [echarts] helgasoft commented on issue #18437: Hope xAxis of Stack Line support value

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18437:
URL: https://github.com/apache/echarts/issues/18437#issuecomment-1492273795

   > I tried your new demo, and found that at x-24, the bottom moves a little up, and the top moves a little down.
   
   My mistake: last data line should be [24, **19**, 'unknown'] instead of [24, **18**, 'unknown']. If values sums of all three boreholes are the **same** (80), then the chart remains a rectangle.
   
   > is it possible to derive a sub type from stack area map to improve its rendering? by overriding/modifying part of its rendering process?
   
   I cannot really answer that because I work at API level and do not do development (yet). But by what @Ovilia said earlier about the _logic problem_, it looks, hmm... impossible.
   It would be helpful to investigate further if **any** JS charting software does **exactly** what you want and then post it here as a question with a code example.


-- 
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-unsubscribe@echarts.apache.org

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


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


[GitHub] [echarts] carlshe commented on issue #18437: Hope xAxis of Stack Line support value

Posted by "carlshe (via GitHub)" <gi...@apache.org>.
carlshe commented on issue #18437:
URL: https://github.com/apache/echarts/issues/18437#issuecomment-1492796611

   > Stack line with value axis may have some logic problems. For example, if the data of one series is `[[1.1, 20], [2, 31], [3, 2]]` and another series `[[1, 12], [2, 31], [3, 2]]`, how do you expect them to stack? Should `[1.1, 20]` stack with `[1, 12]`? If not, the two bars should probably overlap. So I think you probably should use category x axis by logic.
   
   I understand your care.
   
   I have a question? For 'category', if the data is ordered number, is it possible to expose an option to tell echart to treat these categories as x values, so the line points could be rendered at expected x-locations?
   
   Or is it possible to derive a sub type from stack area map to improve its rendering? by overriding/modifying part of its rendering process, especally the function that get the coords from [category,y-value]?
   
   Thanks!


-- 
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-unsubscribe@echarts.apache.org

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


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


[GitHub] [echarts] helgasoft commented on issue #18437: Hope xAxis of Stack Line support value

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18437:
URL: https://github.com/apache/echarts/issues/18437#issuecomment-1529280832

   Aah what a beauty, a **model** for problem/feature presentation, great job @maciej-flexcompute !
   The new data helped me improve algorithm and code.
   
   > But in general case (interval are real numbers) this is not possible to find such interval.
   
   Curious on the reason behind this statement. A constant step (interval) is crucial for the algorithm.
   Please take a look at the couple lines where _smp_ is generated. Could it not work with different data ?
   
   > Finally, you can make a restriction that x values are common for both y1 and y2
   
   That may eventually help depending on what comes out of the previous question. But hope this limitation won't be necessary.
   
   [Latest Demo](https://echarts.apache.org/examples/en/editor.html?c=themeRiver-basic&code=PTAEBMEMBdNAHATgU3gKAGYFcB2BjaASwHsdQBPAMUWIFsANACnmMJ2gEYAaBV9gJh4APAJSgA3mlCgA5okjhCydqAC8oZn2j8A2hwC6oALS82nPfrFhNZ3QAZDJlmY46HIgNxTQZ5Ijyo0Gqm7K4GxrLyispBAFQh5g5e0ijQWIhkcgpKKvFCoADUPux-AfDQXgC-mLgEJGR4dPCQKAByWLQARn4AzoyQPJ1ikinIaRmgcCadVWggxfBYQQBukAA2WMigPX5KPWg9PcE63ifS0m4AdHbcoBzX-lzeF3aXAKw893YAzI_PoHprrcvm8_ucAfcPndrgAOMHnHT8IGfS4GJ7gxHvYGo37ohHfZHQjigvEXAlQ-4cADs8IuABZCfd-LSAQyKZd-MzSQC3tcUfwSf8dLy3tj-DTuToAGyMy64oUy9nfLlCqmy750lk6NWilHfCVCmF86HfACcWqN7LpaKFptldM1krtVqlWo4rxuKLpcMl7qxKMFGI4XwDKqDkOxb0dQo4SM90LeBqDSN1CfNvoJ8fuUptQfJ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AU8u5NpmpGmtOap04S2DBnqlGe5CZ8VUapUytKt8WzoKYACp-UKpzzTSYeCAA), essentially redrawing the lines with new X-values with a fixed step (_smp_). 
   Number of points for each series:   original value = 58,  new categorical = 100.
   
   ![image](https://user-images.githubusercontent.com/13038071/235393636-1690aeac-0683-43ef-bf87-53ef15652539.png)
   
   
   


-- 
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-unsubscribe@echarts.apache.org

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


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


Re: [I] Hope xAxis of Stack Line support value [echarts]

Posted by "mkf62 (via GitHub)" <gi...@apache.org>.
mkf62 commented on issue #18437:
URL: https://github.com/apache/echarts/issues/18437#issuecomment-3193817779

   ECharts stacks on whatever value is first encountered in a data coordinate as long as it's suitable for stacking. We usually structure data coordinates like `[x, y]`. Since you want to stack your Y values, you just have to reverse your value coordinates so y-values are first in the order, e.g. `[y, x]`. Then you can `encode` the series, telling it that the x-value is at index 1 and the y value is at index 0, e.g. `encode: {x: 1, y: 0}`. Use `stack` to group all the series you want to stack, and add `stackStrategy: "all"` to the series at index 1 or above.
   
   The only real problem with this is that now you have to create custom tooltips that reflect the y-values, not the x-values because tooltips apparently don't follow whatever you set in `encode`. It can be done (I have done it before myself), but it's annoying.
   
   [Demo](https://echarts.apache.org/examples/en/editor.html?c=area-stack&code=MYewdgzgLgBAHjAvDA2gBgHRoIwBoaYCsa-2WeMZx-ATObRoRQMz0yvUwAsbPnhWEjAFN8ANjYTOAdjazRMAByD8yzgE42mztkw5SRCtjJohxxkbr7KdBdlbX7jMz1OkeNFxi5GeYr4pmAo4CnqQCPuEY_lGBpBKOEjRGElxmEjGUEnGUsm65GGEFkQViRrKKRsqOykXYyiX10WbKlaSa-diaye3eZpqZXRiVALoA3ABQADYAprAAnthIqCZmWM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<img width="727" height="546" alt="Image" src="https://github.com/user-attachments/assets/43851961-70e7-4224-af2e-8d7a275295bf" />


-- 
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-unsubscribe@echarts.apache.org

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


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