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 2021/10/12 06:38:13 UTC

[GitHub] [echarts] maxkoretskyi opened a new issue #15864: Stacking items on the same series

maxkoretskyi opened a new issue #15864:
URL: https://github.com/apache/echarts/issues/15864


   ### What problem does this feature solve?
   Currently it's possible to stack items using multiple series:
   
   const series = [
     {type: 'bar', data: [10], stack: '2020'},
     {type: 'bar', data: [15], stack: '2020'}
   ]
   
   However, if I only need one series with multiple items but want to show those items stacked it's not possible. I need to create multiple series with just one item in each to accomplish that.
   
   ### What does the proposed API look like?
   It'd be great if I could do something like this:
   
   const series = [
     {type: 'bar', data: [10, 15], stack: true}
   ]
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


-- 
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 #15864: Stacking items on the same series

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


   It should be 4 series (LONDON, MANCHESTER, NY, SEATTLE) and the previous two should be set with `stack: 'uk'`. xAxis should be with type `'category'` and with data `['2020', '2021']`.


-- 
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] maxkoretskyi edited a comment on issue #15864: Stacking items on the same series

Posted by GitBox <gi...@apache.org>.
maxkoretskyi edited a comment on issue #15864:
URL: https://github.com/apache/echarts/issues/15864#issuecomment-942467893






-- 
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] maxkoretskyi edited a comment on issue #15864: Stacking items on the same series

Posted by GitBox <gi...@apache.org>.
maxkoretskyi edited a comment on issue #15864:
URL: https://github.com/apache/echarts/issues/15864#issuecomment-942467893


   Maybe I could have something like this:
   
   ```
   {type: 'bar', data: [10, 15], dimensions: ['2021', '2022'], stack: true}
   ```
   so it produces something like this:
   
   ```
   
       25|                  ______
   	|		 |          |
   	|		 |          |
   	|		 | 2022 |
     10  |		 |______ |
   	|		 |          |
   	|		 | 2021 |
   	|		 |          |
     0  -------------------------------
   
   ```
   
   
   


-- 
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] maxkoretskyi edited a comment on issue #15864: Stacking items on the same series

Posted by GitBox <gi...@apache.org>.
maxkoretskyi edited a comment on issue #15864:
URL: https://github.com/apache/echarts/issues/15864#issuecomment-944863251






-- 
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] maxkoretskyi edited a comment on issue #15864: Stacking items on the same series

Posted by GitBox <gi...@apache.org>.
maxkoretskyi edited a comment on issue #15864:
URL: https://github.com/apache/echarts/issues/15864#issuecomment-942467893






-- 
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] maxkoretskyi commented on issue #15864: Stacking items on the same series

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


   Maybe I could have something like this:
   
   ```
   {type: 'bar', data: [10, 15], dimensions: ['2021', '2022'], stack: true}
   ```
   so it produces something like this:
   
   ```
   
     25|         ______
   	|		 |      |
   	|		 |      |
   	|		 | 2022 |
     10|		 |______|
   	|		 |      |
   	|		 | 2021 |
   	|		 |      |
     0  -------------------------------
   
   ```
   
   
   


-- 
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 closed issue #15864: Stacking items on the same series

Posted by GitBox <gi...@apache.org>.
Ovilia closed issue #15864:
URL: https://github.com/apache/echarts/issues/15864


   


-- 
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 #15864: Stacking items on the same series

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


   Sorry, we do not have consulting servives. But you are welcomed to send emails to dev@echarts.apache.org for such 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] maxkoretskyi edited a comment on issue #15864: Stacking items on the same series

Posted by GitBox <gi...@apache.org>.
maxkoretskyi edited a comment on issue #15864:
URL: https://github.com/apache/echarts/issues/15864#issuecomment-942467893


   Maybe I could have something like this:
   
   ```
   {type: 'bar', data: [10, 15], dimensions: ['2021', '2022'], stack: true}
   ```
   so it produces something like this:
   
   ```
   
     25|         ______ 
       |        |      |
       |        |      |
       |        | 2022 |
     10|        |______|
       |        |      |
       |        | 2021 |
       |        |      |
     0  -------------------------------
   
   ```
   
   
   


-- 
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] maxkoretskyi commented on issue #15864: Stacking items on the same series

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


   Maybe I could have something like this:
   
   ```
   {type: 'bar', data: [10, 15], dimensions: ['2021', '2022'], stack: true}
   ```
   so it produces something like this:
   
   ```
   
     25|         ______
   	|		 |      |
   	|		 |      |
   	|		 | 2022 |
     10|		 |______|
   	|		 |      |
   	|		 | 2021 |
   	|		 |      |
     0  -------------------------------
   
   ```
   
   
   


-- 
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 #15864: Stacking items on the same series

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


   If it's defined as `{type: 'bar', data: [10, 15], stack: true}`, how should you state which x value are the data?


-- 
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] maxkoretskyi commented on issue #15864: Stacking items on the same series

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


   @Ovilia yeah, true, thanks. I'm trying to find a way to render a table with double grouping in a stacked way like this:
   
   ```
   const c = `
   
   
     25|         ____________ 
       |        |            |
       |        | MANCHESTER |
       |        |            | |
     10|        |____________| UK
       |        |            | |
       |        |   London   |
       |        |            |
     0  -------------------------------
                     2020
   
   
   `;
   
   
   /*
                   2020    2021
   UK LONDON       1        2
   UK MANCHESTER   2        3
   USA NY          3
   USA SEATTLE     4        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] maxkoretskyi commented on issue #15864: Stacking items on the same series

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


   @Ovilia appreciate you help, seems to have worked! 
   
   On a separate note, do you maybe know if anyone on the core team does consulting? I'll need to implement pretty sophisticated charts, possibly using `render` function or even custom shapes and I'm afraid without good documentation I'll struggle a lot. So I thought maybe I could get consulting from somebody who's very familiar with internals of echarts.  


-- 
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 #15864: Stacking items on the same series

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


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that it contains **a minimum reproducible demo** and necessary **images** to illustrate. Otherwise, our committers will ask you to do so.
   
   *A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.
   
   You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.
   
   If you are interested in the project, you may also subscribe to our [mailing list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


-- 
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 #15864: Stacking items on the same series

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


   If it's defined as `{type: 'bar', data: [10, 15], stack: true}`, how should you state which x value are the data?


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