We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 735f33d commit ed0b8d5Copy full SHA for ed0b8d5
src/chart/generator/plotbuilder.cpp
@@ -572,6 +572,18 @@ PlotBuilder::addSeparation(const Buckets &buckets,
572
auto maxRange = Math::Range<>{{}, {}};
573
for (auto &resItem : res) {
574
if (!resItem.enabled) continue;
575
+
576
+ auto onlyPositive = !std::signbit(resItem.containsValues.min);
577
+ plot->getOptions()->setAutoRange(onlyPositive,
578
+ onlyPositive,
579
+ true);
580
581
+ resItem.containsValues =
582
+ plot->getOptions()
583
+ ->getChannels()
584
+ .at(axisIndex)
585
+ .range.getRange(resItem.containsValues);
586
587
max = max + resItem.containsValues;
588
maxRange.include(resItem.containsValues);
589
}
0 commit comments