@windborne/grapher 1.0.54 → 1.0.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windborne/grapher",
3
- "version": "1.0.54",
3
+ "version": "1.0.55",
4
4
  "description": "Graphing library",
5
5
  "main": "src/index.js",
6
6
  "module": "dist/bundle.esm.js",
@@ -356,7 +356,7 @@ export default class GraphBodyRenderer extends Eventable {
356
356
  let barClosestSpacing = null;
357
357
  for (const s of barSeriesInAxis) {
358
358
  const sp = s.dataBounds?.closestSpacing;
359
- if (sp != null && sp > 0 && (barClosestSpacing === null || sp < barClosestSpacing)) {
359
+ if (sp != null && sp > 0 && (barClosestSpacing === null || sp > barClosestSpacing)) {
360
360
  barClosestSpacing = sp;
361
361
  }
362
362
  }
@@ -116,7 +116,7 @@ export default function calculateTooltipState({mousePresent, mouseX, mouseY, siz
116
116
  let barClosestSpacing = null;
117
117
  for (const s of barSeriesInAxis) {
118
118
  const sp = s.dataBounds?.closestSpacing;
119
- if (sp != null && sp > 0 && (barClosestSpacing === null || sp < barClosestSpacing)) {
119
+ if (sp != null && sp > 0 && (barClosestSpacing === null || sp > barClosestSpacing)) {
120
120
  barClosestSpacing = sp;
121
121
  }
122
122
  }