mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
Some more graph tweaks
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@928 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -386,7 +386,8 @@ void StatsPanel::showCategory() {
|
||||
if (dimensionality(layout) != dims.size()) {
|
||||
// we must switch to another layout
|
||||
layout = dims.size() == 1 ? GRAPH_TYPE_BAR
|
||||
: dims.size() == 2 ? GRAPH_TYPE_STACK
|
||||
: dims.size() == 2 ? (layout == GRAPH_TYPE_SCATTER_PIE || dims[1]->numeric
|
||||
? GRAPH_TYPE_SCATTER : GRAPH_TYPE_STACK)
|
||||
: GRAPH_TYPE_SCATTER_PIE;
|
||||
}
|
||||
graph->setLayout(layout, true);
|
||||
|
||||
Reference in New Issue
Block a user