svelte-tiny-linked-charts 2.3.0 → 2.3.1

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.
@@ -192,6 +192,8 @@
192
192
  points.push([i * ((barWidth + gap) + (barWidth / (Object.keys(data).length))), height - getHeight(Object.values(data)[i])])
193
193
  }
194
194
 
195
+ points[points.length - 1][0] = width
196
+
195
197
  return points
196
198
  }
197
199
 
@@ -265,8 +267,8 @@
265
267
  <circle
266
268
  fill={hover && $hoveringKey[linkedKey] !== null && $hoveringKey[linkedKey] == key ? (fillArray[i] || fill) : "transparent"}
267
269
  r={lineDotRadius || (grow ? barMinWidth : barWidth / 2)}
268
- cy={height - getHeight(value)}
269
- cx={((gap + barWidth) + (barWidth / (Object.keys(data).length))) * i} />
270
+ cy={polyline?.[i]?.[1]}
271
+ cx={polyline?.[i]?.[0]} />
270
272
  {/if}
271
273
 
272
274
  <!-- svelte-ignore a11y_no_noninteractive_tabindex -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-tiny-linked-charts",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",