You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/04/29 06:09:49 UTC

[GitHub] [echarts] 372798735 opened a new issue, #16965: Y轴设置两个刻度的长度,第一个写死,第二个根据内容自动变化

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

   ### What problem does this feature solve?
   
   如何实现:Y轴设置两个刻度的长度,第一个高度写死,第二个高度根据内容自动变化,效果图如下:
   https://user-images.githubusercontent.com/52733319/165892758-0874cd33-cf75-42e6-b34f-7f1f0ae77037.png
   
   ### What does the proposed API look like?
   
   帮忙解答,谢谢


-- 
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] fuchunhui commented on issue #16965: Y轴设置两个刻度的长度,第一个写死,第二个根据内容自动变化

Posted by GitBox <gi...@apache.org>.
fuchunhui commented on issue #16965:
URL: https://github.com/apache/echarts/issues/16965#issuecomment-1128785474

   ECharts 目前不支持你说的这种场景(自动的适应背景高度)。
   
   介于已知信息较少,不确定你目前的实现方案,希望能够补充最小粒度的 Demo,便于问题讨论。
   疑问点:Y 轴高度是否固定,是否可以无限往下。【重点】
   
   猜想下,可能的设计思路,使用 bar.markArea 绘制背景,第一个背景固定,第二个通过 柱的个数 * (每个柱的宽度 - 柱之间的空隙)计算求得动态后的值。
   
   类似如:
   ```javascript
   markArea: {
       data: [
           [
               {
                   name: 'start',
                   x: '11%',
               },
               {
                   x: '17%'
               }
           ],
           [
               {
                   name: '动态',
                   x: '19%'
               },
               {
                   x: '57%' // 此值,动态变化,计算求得
               }
           ]
       ]
   }
   ```
   
   ![image](https://user-images.githubusercontent.com/29879262/168806264-15857a19-261c-4487-aef3-330f1032760a.png)
   
   上图中,每个柱子width: 6%,gap: 2%,即刻度宽8%。
   
   [上述截图 Demo](https://codesandbox.io/s/4h04pr)
   
   
   


-- 
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] echarts-bot[bot] commented on issue #16965: Y轴设置两个刻度的长度,第一个写死,第二个根据内容自动变化

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #16965:
URL: https://github.com/apache/echarts/issues/16965#issuecomment-1128792273

   @372798735 Please provide a demo for the issue either with [Official Editor](https://echarts.apache.org/examples/editor.html), [CodePen](https://codepen.io/Ovilia/pen/dyYWXWM), [CodeSandbox](https://codesandbox.io/s/echarts-basic-example-template-mpfz1s) or [JSFiddle](https://jsfiddle.net/plainheart/e46ozpqj/7/).


-- 
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] echarts-bot[bot] commented on issue #16965: Y轴设置两个刻度的长度,第一个写死,第二个根据内容自动变化

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #16965:
URL: https://github.com/apache/echarts/issues/16965#issuecomment-1112907815

   @372798735 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. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **TITLE**
   
   The Y-axis sets the length of two scales, the first is written to death, and the second changes automatically according to the content
   
   **BODY**
   
   ### What problem does this feature solve?
   
   How to achieve: the Y axis sets the length of two scales, the first height is written dead, the second height automatically changes according to the content, the rendering is as follows:
   https://user-images.githubusercontent.com/52733319/165892758-0874cd33-cf75-42e6-b34f-7f1f0ae77037.png
   
   ### What does the proposed API look like?
   
   Helpful answers, thank you
   </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