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 2020/02/26 08:36:04 UTC

[GitHub] [incubator-echarts] LarsKoelpin opened a new issue #12198: Determine Bar-Width based on time-axis

LarsKoelpin opened a new issue #12198: Determine Bar-Width based on time-axis
URL: https://github.com/apache/incubator-echarts/issues/12198
 
 
   ### What problem does this feature solve?
   The current barSeries is centered around its point in time.
   But, to present time-based data, it is often necessary to present a bar based on a given time-window.
   
   Currently, it is possible to determine the width of the bar in pixels but not relative to the corresponding x-value when using **time-axis**.
   For my specific usecase i need to draw a bar chart representing a timewindow.
   e.g. the bar shall span from 1pm to 2pm instead of centering a fixed pixelwidth around 1:30pm.
   
   ### What does the proposed API look like?
   My Proposal would be the be able to specify a function, "relativeBarWith", which gets the current x value as parameter
   ```
   {
     type: "bar",
     relativeBarWidth: (timestamp) => ({
       startBarAt: timestamp - MS_ONE_HOUR,
       endBarAt: timestamp
     })
   }
   ```
   
   echarts would then dynamically calculate the width in pixels of the bar.
   
   <!-- 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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] LarsKoelpin edited a comment on issue #12198: Determine Bar-Width based on time-axis

Posted by GitBox <gi...@apache.org>.
LarsKoelpin edited a comment on issue #12198: Determine Bar-Width based on time-axis
URL: https://github.com/apache/incubator-echarts/issues/12198#issuecomment-595634544
 
 
   > @LarsKoelpin Can you post a snippet of the custom chart option you used?
   
   Sure, its the one derivation used in my reproduction case of #12221 (https://jsfiddle.net/3zrLnvqp/). The code may to off tho, as the "lowerLeft" is actually topLeft I think. 
   Also, as the issue suggests, you have to turn off progressive rendering

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [echarts] github-actions[bot] closed issue #12198: Determine Bar-Width based on time-axis

Posted by GitBox <gi...@apache.org>.
github-actions[bot] closed issue #12198:
URL: https://github.com/apache/echarts/issues/12198


   


-- 
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] [incubator-echarts] LarsKoelpin commented on issue #12198: Determine Bar-Width based on time-axis

Posted by GitBox <gi...@apache.org>.
LarsKoelpin commented on issue #12198: Determine Bar-Width based on time-axis
URL: https://github.com/apache/incubator-echarts/issues/12198#issuecomment-593905154
 
 
   I managed to get it kind of working using a custom chart. 
   Would have been convienent to use a bar chart tho. 
   However, I think the ticket can be closed, as it is possible.
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] LarsKoelpin commented on issue #12198: Determine Bar-Width based on time-axis

Posted by GitBox <gi...@apache.org>.
LarsKoelpin commented on issue #12198: Determine Bar-Width based on time-axis
URL: https://github.com/apache/incubator-echarts/issues/12198#issuecomment-595634544
 
 
   > @LarsKoelpin Can you post a snippet of the custom chart option you used?
   
   Sure, its the one derivation used in my reproduction case of #12221 (https://jsfiddle.net/3zrLnvqp/)

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] Ovilia commented on issue #12198: Determine Bar-Width based on time-axis

Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #12198: Determine Bar-Width based on time-axis
URL: https://github.com/apache/incubator-echarts/issues/12198#issuecomment-593778579
 
 
   Please consider using custom series based on [histogram chart](https://www.echartsjs.com/examples/zh/editor.html?c=bar-histogram).

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] mpaduada commented on issue #12198: Determine Bar-Width based on time-axis

Posted by GitBox <gi...@apache.org>.
mpaduada commented on issue #12198: Determine Bar-Width based on time-axis
URL: https://github.com/apache/incubator-echarts/issues/12198#issuecomment-595423063
 
 
   @LarsKoelpin Can you post a snippet of the custom chart option you used?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [echarts] github-actions[bot] commented on issue #12198: Determine Bar-Width based on time-axis

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


   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] [incubator-echarts] echarts-bot[bot] commented on issue #12198: Determine Bar-Width based on time-axis

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #12198: Determine Bar-Width based on time-axis
URL: https://github.com/apache/incubator-echarts/issues/12198#issuecomment-591303963
 
 
   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 **you have posted enough image to demo your request**. 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 questions.
   
   If you are interested in the project, you may also subscribe our [mail 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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [echarts] github-actions[bot] commented on issue #12198: Determine Bar-Width based on time-axis

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


   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


[GitHub] [incubator-echarts] LarsKoelpin edited a comment on issue #12198: Determine Bar-Width based on time-axis

Posted by GitBox <gi...@apache.org>.
LarsKoelpin edited a comment on issue #12198: Determine Bar-Width based on time-axis
URL: https://github.com/apache/incubator-echarts/issues/12198#issuecomment-595634544
 
 
   > @LarsKoelpin Can you post a snippet of the custom chart option you used?
   
   Sure, its the one derivation used in my reproduction case of #12221 (https://jsfiddle.net/3zrLnvqp/). The code may to off tho, as the "lowerLeft" is actually topLeft I think :)

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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