|
17 | 17 | #include "base/anim/interpolated.h" |
18 | 18 | #include "base/math/floating.h" |
19 | 19 | #include "base/math/range.h" |
| 20 | +#include "base/refl/auto_enum.h" |
20 | 21 | #include "chart/main/style.h" |
21 | 22 | #include "chart/options/align.h" |
22 | 23 | #include "chart/options/channel.h" |
@@ -233,7 +234,7 @@ bool PlotBuilder::linkMarkers(const Buckets &buckets, |
233 | 234 | auto &marker = **it.base().base().base(); |
234 | 235 | if (!marker.enabled) continue; |
235 | 236 | o = std::max(o, |
236 | | - marker.size.getCoord(++axisIndex), |
| 237 | + marker.size.getCoord(orientation(axisIndex)), |
237 | 238 | Math::Floating::less); |
238 | 239 | } |
239 | 240 | if (o == std::numeric_limits<double>::lowest()) o = 0.0; |
@@ -279,7 +280,8 @@ bool PlotBuilder::linkMarkers(const Buckets &buckets, |
279 | 280 | : *it.base().base().base(); |
280 | 281 |
|
281 | 282 | if (act) |
282 | | - prevPos = act->position.getCoord(++axisIndex) += |
| 283 | + prevPos = |
| 284 | + act->position.getCoord(orientation(axisIndex)) += |
283 | 285 | isAggregatable ? dimOffset[i] : prevPos; |
284 | 286 |
|
285 | 287 | hasConnection |= |
@@ -542,7 +544,7 @@ void PlotBuilder::addSeparation(const Buckets &subBuckets, |
542 | 544 | auto splitSpace = |
543 | 545 | plot->getStyle() |
544 | 546 | .plot.getAxis(plot->getOptions()->subAxisType()) |
545 | | - .split->get(max.getMax(), |
| 547 | + .spacing->get(max.getMax(), |
546 | 548 | plot->getStyle().calculatedSize()); |
547 | 549 |
|
548 | 550 | for (auto i = 1U; i < ranges.size(); ++i) |
|
0 commit comments