Project

General

Profile

Actions

Feature #1906

closed

WAbstractChart support for headerDataChanged() signal!

Added by Stefan Ruppert over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
05/15/2013
Due date:
% Done:

0%

Estimated time:

Description

Hi,

I'm currently implementing a PivotChart using Wt MVC Charting classes. See attached example. Sometimes I would like to change only the Axis labels and the underlying model changes the headerData and emits the headerDataChanged() signal.

But currently WAbstractChart does not support a modelHeaderDataChanged() signal. I can implement such a handling within my PivotChart, but then I need to double the setModel() method because I need to know when the model is changing...


Files

PivotChart-Example.png (35.1 KB) PivotChart-Example.png PivotChart example Stefan Ruppert, 05/15/2013 09:53 AM
Actions #1

Updated by Koen Deforche over 11 years ago

  • Status changed from New to InProgress
  • Assignee set to Koen Deforche
  • Target version set to 3.3.1
Actions #2

Updated by Koen Deforche over 11 years ago

  • Status changed from InProgress to Resolved

Of course!

Didn't know what a pivot table is, looked it up and it seems to be an 'interactive' version of any kind of chart? But that's not what your screenshot looks like? Out of curiosity, how does your pivot chart work?

regards,

koen

Actions #3

Updated by Stefan Ruppert over 11 years ago

Hi Koen,

the PivotChart uses a WAbstractTableModel to retrieve its data. Each box within the PivotChart listens to WAbstractArea::clicked() events and emits a cellClicked() event with the appropriate WModelIndex. In our implementation a controller instance listens to the cellClicked() events and probably change the underlying PivotChart model using setModel(). Therefore it is completely interactive!

Regarding interactive charts I would like to see that the WPieChart has the ability to click on a pie slice and can emit a appropriate signal. With such a feature our users can visually select or filter data! :-)

Regards,

Stefan

Actions #4

Updated by Koen Deforche over 11 years ago

Hey Stefan,

The suggestion actually is somewhat related to an already existing ticket: http://redmine.emweb.be/issues/1265 and it would be good to update it so that we don't forget about WPieChart ?

Regards,

koen

Actions #5

Updated by Koen Deforche over 11 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF