abstract-chart 8.1.3 → 8.1.6

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/lib/chart.js CHANGED
@@ -593,9 +593,9 @@ function generateBars(xMin, xMax, yMin, yMax, chart) {
593
593
  const outlineColor = (_f = b.textOutlineColor) !== null && _f !== void 0 ? _f : chart.textOutlineColor;
594
594
  const [tl, middle, br] = bars.direction === "x"
595
595
  ? [
596
- AI.createPoint((_g = b.min) !== null && _g !== void 0 ? _g : xMinValue, barPos - bars.width / 2),
596
+ AI.createPoint((_g = b.min) !== null && _g !== void 0 ? _g : xMinValue, barPos + bars.width / 2),
597
597
  AI.createPoint((b.max - ((_h = b.min) !== null && _h !== void 0 ? _h : xMinValue)) / 2, barPos),
598
- AI.createPoint(b.max, barPos + bars.width / 2),
598
+ AI.createPoint(b.max, barPos - bars.width / 2),
599
599
  ]
600
600
  : [
601
601
  AI.createPoint(barPos - bars.width / 2, b.max),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abstract-chart",
3
- "version": "8.1.3",
3
+ "version": "8.1.6",
4
4
  "description": "Drawing charts using multiple unit of measure axes as coordinate system",
5
5
  "repository": "https://github.com/dividab/abstract-visuals/tree/master/packages/abstract-chart",
6
6
  "main": "lib/index.js",
@@ -18,5 +18,5 @@
18
18
  "abstract-image": "^8.2.1",
19
19
  "ts-exhaustive-check": "^1.0.0"
20
20
  },
21
- "gitHead": "7a35c6d3b98bb18e168f34e501234b330cbc20c5"
21
+ "gitHead": "5d4e5d3db107737972bbc35937b40cad31b1df13"
22
22
  }
package/src/chart.ts CHANGED
@@ -1073,9 +1073,9 @@ export function generateBars(xMin: number, xMax: number, yMin: number, yMax: num
1073
1073
  const [tl, middle, br] =
1074
1074
  bars.direction === "x"
1075
1075
  ? [
1076
- AI.createPoint(b.min ?? xMinValue, barPos - bars.width / 2),
1076
+ AI.createPoint(b.min ?? xMinValue, barPos + bars.width / 2),
1077
1077
  AI.createPoint((b.max - (b.min ?? xMinValue)) / 2, barPos),
1078
- AI.createPoint(b.max, barPos + bars.width / 2),
1078
+ AI.createPoint(b.max, barPos - bars.width / 2),
1079
1079
  ]
1080
1080
  : [
1081
1081
  AI.createPoint(barPos - bars.width / 2, b.max),