mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/stats] Display only one axis in box view
This commit is contained in:
@@ -16,7 +16,7 @@ MultipleBoxesView::MultipleBoxesView(Store * store, BoxView::Quantile * selected
|
||||
for (int i = 0; i < Store::k_numberOfSeries; i++) {
|
||||
BoxView * boxView = dataViewAtIndex(i);
|
||||
boxView->setDisplayBannerView(false);
|
||||
//histView->setDisplayLabels(false); //TODO
|
||||
boxView->setDisplayAxis(false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,4 +31,13 @@ int MultipleBoxesView::seriesOfSubviewAtIndex(int index) {
|
||||
return static_cast<BoxView *>(subviewAtIndex(index))->series();
|
||||
}
|
||||
|
||||
void MultipleBoxesView::layoutSubviews() {
|
||||
MultipleDataView::layoutSubviews();
|
||||
int numberOfDataSubviews = numberOfSubviews() - 1;
|
||||
assert(numberOfDataSubviews > 0);
|
||||
for (int i = 0; i < numberOfDataSubviews; i++) {
|
||||
static_cast<BoxView *>(subviewAtIndex(i))->setDisplayAxis(i == numberOfDataSubviews - 1);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user