Bug #4289
closedWCartesianChart axes with some setLocation() options not displayed with setZoomEnabled in layout
0%
Description
This is a follow-up to #4269 that was resolved. Wt now works fine with the sample attached to that report. (Thanks!)
With the latest version on github (3.3.3-76-gcdab40d), however, the axes are not visible unless configured to be at setLocation(ZeroValue).
Attached is a modified version of ChartsExample.c that configures the "Scatter Plot (sine function)" within a layout and disables the setLocation(ZeroValue), to fall-back on the default MinimumValue. The axes are visible when setZoomEnabled is false, but not when setZoomEnabled is true.
Files
Updated by Bruce Toll over 9 years ago
As a follow-up, I noticed that it is possible to get the axes to appear if an initial resize(x,y) is done on the chart with suitable x and y. Values of x and y equal to or larger than the corresponding dimensions of the initial layout size seem to work. As one test, I inserted a "chart->resize(800, 300)" right after the "holder->resize(800, 300)" at around line 345 in the attached ChartsExample.C, and the axes appear.
In a resizable layout, if the axes are visible initially, they continue to be visible even if the available layout space is subsequently increased or decreased.
Setting an initial size on the chart also seems to affect the cross-hairs, which do not seem to adjust correctly to layout changes.
Updated by Koen Deforche over 9 years ago
- Status changed from New to InProgress
- Assignee set to Roel Standaert
- Target version set to 3.3.5
Updated by Roel Standaert over 9 years ago
- Status changed from InProgress to Resolved
Updated by Koen Deforche about 9 years ago
- Status changed from Resolved to Closed