Project

General

Profile

Actions

Bug #4289

closed

WCartesianChart axes with some setLocation() options not displayed with setZoomEnabled in layout

Added by Bruce Toll almost 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Roel Standaert
Target version:
Start date:
07/03/2015
Due date:
% Done:

0%

Estimated time:

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

ChartsExample.C (12.3 KB) ChartsExample.C Bruce Toll, 07/03/2015 07:01 PM
Actions #1

Updated by Bruce Toll almost 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.

Actions #2

Updated by Koen Deforche almost 9 years ago

  • Status changed from New to InProgress
  • Assignee set to Roel Standaert
  • Target version set to 3.3.5
Actions #3

Updated by Roel Standaert almost 9 years ago

  • Status changed from InProgress to Resolved
Actions #4

Updated by Koen Deforche over 8 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF