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: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org