Feature #1906
closedWAbstractChart support for headerDataChanged() signal!
0%
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
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
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
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
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
Updated by Koen Deforche over 11 years ago
- Status changed from Resolved to Closed