You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the example above, I expect a trapezoid shape graph that spans 6:00:01.3 pm to 6:00:01.5 pm.
Current Behavior
Currently, the graph starts at 6:00:01.050 pm, and ends at 6:00:01.950pm. Notice the dark tick marks at the requested min/max values. Also, the background fill extends outside the graph area.
Possible Solution
I can hook afterBuildTicks to set axis.min and axis.max to their proper values, and manually construct the ticks array. This fixes the x-axis range, but doesn't fix the fill problem.
Steps to Reproduce (for bugs)
Graph a data set using a time scale on the x-axis.
Set the x-axis min or max to be inside the data's x range.
Context
I'm trying to draw a real-time graph that show time-series data. This bug shows up when data history exceeds my graph window. I want data history to exceed the graph window because I want the left-most line segment to be correct.
Environment
Chart.js version: 2.6.0
Browser name and version: Safari 10.1.2
The text was updated successfully, but these errors were encountered:
See this: https://jsfiddle.net/moonchen/hvzaabxn/6/
Expected Behavior
In the example above, I expect a trapezoid shape graph that spans 6:00:01.3 pm to 6:00:01.5 pm.
Current Behavior
Currently, the graph starts at 6:00:01.050 pm, and ends at 6:00:01.950pm. Notice the dark tick marks at the requested min/max values. Also, the background fill extends outside the graph area.
Possible Solution
I can hook afterBuildTicks to set axis.min and axis.max to their proper values, and manually construct the ticks array. This fixes the x-axis range, but doesn't fix the fill problem.
Steps to Reproduce (for bugs)
Context
I'm trying to draw a real-time graph that show time-series data. This bug shows up when data history exceeds my graph window. I want data history to exceed the graph window because I want the left-most line segment to be correct.
Environment
The text was updated successfully, but these errors were encountered: