apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.82k stars 19.62k forks source link

Bar graph doesn't hold on to min max period #9620

Closed psannus closed 3 years ago

psannus commented 5 years ago

General Questions

In this issue, I have provided information with: 在这个 issue 中我提供了以下信息:

Issue Type

Issue Details

When I set the min max times for line graph, it behaves correctly, but bar graph goes over the time range for some reason.

Expected Behavior

Both the line graph and bar graph should be within specified time range. image

Current Behavior

image

How much it goes over the specified time period is related to the bar width, and also when I switch lower graph to "line" type just like upper, then it behaves correctly.

xAxis: [
                {
                    gridIndex: 0,
                    type: "time",
                    min: "2018-01-01T00:00:00+02:00",
                    max: "2018-12-31T23:59:59+02:00",
                },
                {
                    gridIndex: 1,
                    type: "time",
                    min: "2018-01-01T00:00:00+02:00",
                    max: "2018-12-31T23:59:59+02:00",
                },
            ],

Online Example

Topics

Anything Else We Need to Know

Using latest echarts and echarts-react-wrapper

Environment

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 3 years ago

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!