svelte-plots-basic 3.0.6 → 3.0.7

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,7 +1,7 @@
1
1
  {
2
2
  "name": "svelte-plots-basic",
3
3
  "description": "Svelte components for creating simple plots",
4
- "version": "3.0.6",
4
+ "version": "3.0.7",
5
5
  "author": "Sergey Kucheryavskiy",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -256,11 +256,11 @@
256
256
 
257
257
 
258
258
  {#if params.labelsFactor !== 0}
259
- {@const x = coords.start + (n + 0.85) * coords.width }
260
- <text {x} y={coords.ltop} dx={0} dy={0} dominant-baseline="hanging"
259
+ {@const x = coords.start + n * coords.width }
260
+ <text {x} y={coords.ltop} dx="1.2em" dy="-0.25em" dominant-baseline="hanging"
261
261
  fill={params.labelColor}
262
262
  font-size="{params.fontSize}em"
263
- text-anchor="middle"
263
+ text-anchor="right"
264
264
  >{@html getTickFactorLabel(params.labelsFactor)}</text>
265
265
  {/if}
266
266
  {/snippet}
package/src/constants.js CHANGED
@@ -90,7 +90,7 @@ export const Colors = {
90
90
 
91
91
  "AXIS_LINE": "#303030",
92
92
  "AXIS_TICK": "#606060",
93
- "CLEGEND_LABELS": "#606060"
93
+ "CLEGEND_LABELS": "#808080"
94
94
  }
95
95
 
96
96