bmbouter/worklog — Issue #26: y-axis does not behave properly in all situations
Author: bmbouter
Created: 2011-10-26 16:27:39+00:00
State: open

To Reproduce:

1. Create a job 'foo' with approximately a ten hour workitem each week for 10 weeks
2. Add in 10 hours of funding on week 7
3. Load /worklog/chart/
4. Choose job 'foo' and click Submit
5. Observe the graph is all red since it is 100% negative, but the y-axis is already shown
5. Click 'Show y-axis'
6. Observe how the y axis is shown but it is only the positive region of the y axis is shown

I expected that when y-axis = unchecked, the viewport is naturally scaled to show the entire graph taking up most of the y axis of the chart. When y-axis = checked, if the y axis is not shown using the scaling applied when y-axis=unchecked, then one side of the viewport is adjusted to include the line y=0.