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

[GitHub] [echarts] mukiwu opened a new issue, #18655: [Feature] 數據相差很大時,怎麼樣能讓他們同時顯示

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

   ### What problem does this feature solve?
   
   如果今天有兩筆資料數字相差很大,如下:
   
   ```
   option = {
     xAxis: {
       type: 'category',
       data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
     },
     yAxis: {
       type: 'value'
     },
     series: [
       {
         data: [8, 23131],
         type: 'bar'
       }
     ]
   };
   ```
   
   demo:
   https://echarts.apache.org/examples/zh/editor.html?c=bar-simple&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5AMYCGYVA5sAE7m0A0J6AE2aMiAbVoBZGL1i0AKgFcqM2gHUqAlXIAWClQDEOEFQGVmphdFoBdEgF8-6cjnxFUpMpRqyAbowA2SrT2jrB4VEZUhLCi_MQegsJiABw8sABMAMwAjDnWoR4U1HQARowcwR52JLZ2ANxAA
   
   那麼我很難在圖表上看到第一筆的資料,可能會覺得他是 0 或無資料
   
   ### What does the proposed API look like?
   
   有什麼辦法能在不限制 Y 軸刻度的情況下,讓 Y 軸能自己判定數據去調整刻度,然後顯示資料比較小的圖表


-- 
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] echarts-bot[bot] commented on issue #18655: [Feature] 數據相差很大時,怎麼樣能讓他們同時顯示

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

   @mukiwu 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**
   
   [Feature] When the data is very different, how can they be displayed at the same time
   
   **BODY**
   
   ### What problem does this feature solve?
   
   If there is a large difference in the numbers of two documents today, as follows:
   
   ```
   option = {
     xAxis: {
       type: 'category',
       data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
     },
     yAxis: {
       type: 'value'
     },
     series: [
       {
         data: [8, 23131],
         type: 'bar'
       }
     ]
   };
   ```
   
   demo:
   https://echarts.apache.org/examples/zh/editor.html?c=bar-simple&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5AMYCGYVA5sAE7m0A0J6AE2aMiAbVoBZGL1i0AKgFcqM2gHUqAlXIAWClQDEOEFQ GVmphdFoBdEgF8-6cjnxFUpMpRqyAbowA2SrT2jrB4VEZUhLCi_MQegsJiABw8sABMAMwAjDnWoR4U1HQARowcwR52JLZ2ANxAA
   
   Then it is difficult for me to see the first data on the chart, and I may think that it is 0 or no data
   
   ### What does the proposed API look like?
   
   Is there any way to let the Y-axis judge the data by itself to adjust the scale without restricting the scale of the Y-axis, and then display a chart with relatively small data
   </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] plainheart commented on issue #18655: [Feature] 數據相差很大時,怎麼樣能讓他們同時顯示

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

   也许你可以试试设置 [`barMinHeight`](https://echarts.apache.org/option.html#series-bar.barMinHeight)


-- 
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 #18655: [Feature] 數據相差很大時,怎麼樣能讓他們同時顯示

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

   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.


-- 
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 #18655: [Feature] 數據相差很大時,怎麼樣能讓他們同時顯示

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

   ```yAxis: {type: 'log'}``` ?


-- 
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] mukiwu commented on issue #18655: [Feature] 數據相差很大時,怎麼樣能讓他們同時顯示

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

   如果還是傾向使用 `type: 'value'` 的話,該怎麼處理呢?
   因為資料量都是數值,不太確定改用 `type: log` 會有什麼影響
   還是他們之間的差別只有刻度不同?


-- 
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] closed issue #18655: [Feature] 數據相差很大時,怎麼樣能讓他們同時顯示

Posted by "echarts-bot[bot] (via GitHub)" <gi...@apache.org>.
echarts-bot[bot] closed issue #18655: [Feature] 數據相差很大時,怎麼樣能讓他們同時顯示
URL: https://github.com/apache/echarts/issues/18655


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