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

[GitHub] [echarts] helgasoft commented on issue #18526: Item Style will have the progress bars in the tree View

helgasoft commented on issue #18526:
URL: https://github.com/apache/echarts/issues/18526#issuecomment-1531977386

   Being non-familiar with Power BI, I can comment only on the chart example.
   It seems progress bars in the three columns are not related except for two, which are already marked by bold text. So to me this is **not a tree chart**, there is no hierarchy to present. _Forecast Bias_ and _Demand_ and the others are independent categories.
   Side note: tree chart symbols can be customized with SVG path to show any kind of figure, [Demo Code](https://echarts.apache.org/examples/en/editor.html?c=tree-basic&code=LYTwwgFghgTgLgOgM4QPYHcAyqoBMCWAdgOYAUAlANwBQAJAsQKZykBKA8uwCoD6ACgEEuACQAEAalEByAPS4ocKDKhIkzOQqUAzADaxGCAFZJUhKQBpRWgK6EAxnHynRpeYvKiA3tVGjQkWEQIfFxGbDwiMiofUTcoBDtgnVwYRkIELVQYAFEoRNIbe0dnVwVrYEsiUIAPD29fXyrGatEAUlEAJlEAXl7RAAZRADIhlzdyhNQdPQAHNVwe0TgYa0Zo3wBfdb9waHhkZnYZ4sJSGN9SVGOnQkX6ht84VCnHGYAuL3OHpZh8YiYYB8pPg4IxgBYvg9ln8AexCEDgKhrGpEQA3RhSSGiDbmLFqX6MJAfADaWN892-DTgIBmjCBy0YGNxlIecRJcQAupYyQ0AF7PYAfACM3JZDRgOEFP1WzLFoiQIGAACMpgBlfC8umiYkAFh15g6HS5PN8CuVUw-pFRUB0MtEM1gUGASA83QAfJ85Q0ZDIHXAIG8fQBZfrmQZCgCsofDUfMUYGcf6vMxXt8OjSi1IADlykrGDBSA6YE6kAhrba1qIZKIhf1yAgngAxfDVRi4Cg0VOifBaFz4JBZqBZwuO51lm2rcgeE3fVJwawwW5SAhO0y4KSd1NzhdLv0B4PR6QSUTp26SCyDKTH0_HiwAZjvCYfyc3YpxM7NKp0AGlGTMBEgtIOB8ywyjOeh5joHwUnKMyoEgII3EC6ZaHAEJdui8D4HYNoCDofzwtIwAhLg6boamNoEUCvzEBAaGyl6mSEHA6qah8ACcM7vl66ZQOiRKeqmEGMFBgldnBCEnNRfx0e
 RGH5o4OE6HhVFESRZEMRR-HEIRUgoWhM6bFxmmUmCMzQAhAkwWKmR2MiQKhEgdhpPIzEpnK3Fys0DqELgAi-WAUyzGoIErIwJnfFAhD4MACg3AAIgucWmB8EaxjOUUxclhCJcWJwAKozG4WoAOxRjyGxYhyXxbDE0RbJQQA).
   
   The easiest way to draw this chart in ECharts is with **simple lines**. Since the lines differ only by length and label, one can build a function _doSerie_ with position,length,label as inputs and a line serie as output. Then feed the function with input statistical data in format _type,length,label_ where:
      - type = Analyze, Forecast ,Demand, ... to define X-axis position
      - length = 92, 12, ...   for line length as % of a constant width
      - label = "% on backorder 5.07%", "Consistent under (<2%)", ... 
    
   The only vexing detail is how to put a label at the **start** of the line. [Label](https://echarts.apache.org/en/option.html#series-line.label) shows on both sides and [endLabel](https://echarts.apache.org/en/option.html#series-line.endLabel) shows at the end. Aarrghhh! 😠


-- 
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