@@ -206,8 +206,8 @@ bool PlotBuilder::linkMarkers(const Buckets &buckets,
206206 std::numeric_limits<double >::lowest ());
207207
208208 auto isAggregatable =
209- !plot->getOptions ()->isMeasure (- axisIndex)
210- || (isMain && plot->getOptions ()->isMeasure (- !axisIndex)
209+ !plot->getOptions ()->isMeasure (+ axisIndex)
210+ || (isMain && plot->getOptions ()->isMeasure (+ !axisIndex)
211211 && plot->getOptions ()->geometry .get ()
212212 == ShapeType::rectangle);
213213
@@ -228,7 +228,7 @@ bool PlotBuilder::linkMarkers(const Buckets &buckets,
228228 auto &marker = **it.base ().base ().base ();
229229 if (!marker.enabled ) continue ;
230230 o = std::max (o,
231- marker.size .getCoord (+axisIndex),
231+ marker.size .getCoord (++ axisIndex),
232232 Math::Floating::less);
233233 }
234234 if (o == std::numeric_limits<double >::lowest ()) o = 0.0 ;
@@ -274,7 +274,7 @@ bool PlotBuilder::linkMarkers(const Buckets &buckets,
274274 : *it.base ().base ().base ();
275275
276276 if (act)
277- prevPos = act->position .getCoord (+axisIndex) +=
277+ prevPos = act->position .getCoord (++ axisIndex) +=
278278 isAggregatable ? dimOffset[i] : prevPos;
279279
280280 hasConnection |=
@@ -350,7 +350,7 @@ void PlotBuilder::calcLegendAndLabel(const Data::DataTable &dataTable)
350350 if (scale.title ) calcLegend.title = *scale.title ;
351351
352352 if (auto &&meas = scale.measure ()) {
353- if (plot->getOptions ()->isMeasure (- type)) {
353+ if (plot->getOptions ()->isMeasure (+ type)) {
354354 if (isAutoTitle)
355355 calcLegend.title = dataCube.getName (*meas);
356356 calcLegend.measure = {std::get<0 >(stats.at (type)),
@@ -364,7 +364,7 @@ void PlotBuilder::calcLegendAndLabel(const Data::DataTable &dataTable)
364364 auto merge =
365365 type == LegendId::size
366366 || (type == LegendId::lightness
367- && plot->getOptions ()->dimLabelIndex (- type) == 0 );
367+ && plot->getOptions ()->dimLabelIndex (+ type) == 0 );
368368 for (std::uint32_t i{}, count{}; i < indices.size (); ++i)
369369 if (const auto &sliceIndex = indices[i]) {
370370 auto rangeId = static_cast <double >(i);
@@ -412,7 +412,7 @@ void PlotBuilder::calcAxis(const Data::DataTable &dataTable,
412412 auto isAutoTitle = scale.title .isAuto ();
413413 if (scale.title ) axis.title = *scale.title ;
414414
415- if (plot->getOptions ()->isMeasure (- type)) {
415+ if (plot->getOptions ()->isMeasure (+ type)) {
416416 const auto &meas = *scale.measure ();
417417 if (isAutoTitle) axis.title = dataCube.getName (meas);
418418
@@ -431,7 +431,7 @@ void PlotBuilder::calcAxis(const Data::DataTable &dataTable,
431431 }
432432 else {
433433 for (auto merge =
434- plot->getOptions ()->dimLabelIndex (- type) == 0
434+ plot->getOptions ()->dimLabelIndex (+ type) == 0
435435 && (type != plot->getOptions ()->mainAxisType ()
436436 || plot->getOptions ()->sort != Sort::byValue
437437 || scale.dimensions ().size () == 1 );
0 commit comments