Skip to content

Releases: techniq/layerchart

[email protected]

23 Feb 23:31
9708e00
Compare
Choose a tag to compare

Patch Changes

[email protected]

22 Feb 13:23
e1d446c
Compare
Choose a tag to compare

Minor Changes

  • [Area/AreaStack/Spline] Simplify overwriting x/y accessors by applying xScale/yScale within components (#115)

Patch Changes

[email protected]

19 Feb 15:24
03931cb
Compare
Choose a tag to compare

Patch Changes

  • Support radial / polar coordinate system (along with cartesian) for Axis, Spline, Area, and Point (#107)

  • [Tooltip] Change variant light/dark (default: dark) to default / invert and base on theme colors (#110)

  • [Axis] Fallback to tick value if no tick format defined (band scales) (#107)

[email protected]

14 Feb 13:17
d380d1a
Compare
Choose a tag to compare

Patch Changes

[email protected]

12 Feb 03:44
8a27f1c
Compare
Choose a tag to compare

Minor Changes

  • Theme support (#78)

Patch Changes

  • Update sub-component props type that are spread (ComponentProps<SomeComponent>) to be more accurate (Partial<...>) (#78)

  • [ClipPath] Add disabled prop to show all (ignore clipping) (#78)

  • Update dependencies (#78)

  • Add GeoCircle component (#78)

  • Add antipode() geo util (#78)

[email protected]

27 Dec 14:41
Compare
Choose a tag to compare

LayerChart

0.27.0

Minor Changes

  • [TooltipContext] Replace on:click event handler with onClick prop (easier to consume when using <Chart tooltip={{ onClick(e) => { ... } }} />) (ee80654)

0.26.2

Patch Changes

  • Use Symbol() instead of empty object for context keys (c676611)

0.26.1

Patch Changes

  • Expose geoContext as top-level export (8bef371)

  • [Tooltip] Fix xOffset usage after recent refactor (cd9d8b7)

0.26.0

Minor Changes

  • [Tooltip] Position improvements including anchor support (#72)

    Breaking Changes

    Replace TooltipContext's snapToDataX/Y with <Tooltip x="data" y="data" />

    Before:

    <Chart tooltip={{ snapToDataX: true, snapToDataY: true }}>
      <Tooltip>
        ...
      </Tooltip>
    </Chart>

    After:

    <Chart tooltip>
      <Tooltip x="data" y="data">
        ...
      </Tooltip>
    </Chart>

    Rename <Tooltip left={...} top={...} /> to <Tooltip x={...} y={...} />

    Before:

    <Chart tooltip>
      <Tooltip left={0} top={0}>
        ...
      </Tooltip>
    </Chart>

    After:

    <Chart tooltip>
      <Tooltip x={0} left={0}>
        ...
      </Tooltip>
    </Chart>

    Additional

    • Rename tooltipContext's top/left to x/y
    • Add anchor prop to align based on corner/edge/center (9 points) of tooltip instead of always top-left corner.
    • Add more tooltip examples
  • [Labels] Remove old formatStyle prop since Svelte UX format now covers all use cases (06d9bde)

  • Setup as monorepo using pnpm workspace (#69)

Patch Changes

  • Expose data and flatData as Chart slot props (97e812d)

  • [Bars] Change named bars slot to default. Update group/stacked transition examples to use directly and set {#each} key (7fd24a5)

  • Update dependencies (#73)

0.25.1

Patch Changes

  • [Text] Fix display of 0 value when number (and not string) (c1e20dc)

  • [Axis] Do not replace all default classes when setting labelsProps={{ class: '...' }} (fc9e281)

0.25.0

Minor Changes

  • [Bar / Bars] Rename padding to inset (006daae)

Patch Changes

  • [TooltipContext] Fix bisect-y padding adjustment (5f078cf)

  • Add Candlestick example (665ebef)

  • Update dependencies (ca79b59)

  • [Bars] Remove no longer used getProps and getKey (can now use Bar component and slot) (5a57e63)

0.24.4

Patch Changes

  • [TooltipContext] Fix bisect-x/bisect-y pointer handling with chart left/top padding (d69295a0)

  • [Tooltip] Add variant support with 'light', 'dark', and 'none' (c464874)

0.24.3

Patch Changes

  • [Spline] Fix draw transition when using Svelte 4 (22e5a82)

  • Update Layer Chart to 8.0.2 (fix sorted ordinal regression)

  • [Preview] Add "View data" button/dialog (f91b006)

0.24.2

Patch Changes

  • Update svelte-ux to latest (with new top-level sort utils) (e3e3ba1)

0.24.1

Patch Changes

0.24.0

Minor Changes

  • [LinearGradient] Replace from/to with stops prop, which both simplifies tailwind color usage, and simplifies more complex cases (gradient encoding). Also support passing tuple values for explicit offsets (gradient threshold) (97098fd)

Patch Changes

  • [Calendar] Add month labels (68e4694)

  • Added Sparkline examples (#44)

  • [Tooltip] Support passing explicit top and/or left for fixed position (4681c7f)

  • [Legend] Support passing class without overriding built-in classes (cbc0249)

  • Add highlight on hover examples for multi-series Area and Line (b9e4722)

  • [Line] Add "gradient encoding" and "gradient threshold" examples (b171e8e)

0.23.0

Minor Changes

  • Update major dependencies, including svelte to 4.x. Change svelte to peerDependency (ff4b907)

Patch Changes

  • Add url slot prop to LinearGradient, Blur, and ClipPaths to simplify usage (fa805e0)

  • Add Arc color wheel example (4b0285e)

  • Add Calendar component (8ba2b5f)

0.22.2

Patch Changes

  • [Chart] Expose zScale and rScale as slot props (f1e532a)

  • Update non-major dependencies (a20c74a)

0.22.1

Patch Changes

  • [Line] Fix initializing y1 with wrong value (3f6a661)

  • [Highlight] Support setting classes on points/lines/area without overriding all default class (77e6808)

0.22.0

Minor Changes

  • Add initial* values to all primative components' (Arc, Rect, Group, Line, Rect) tweened properties (x, y, width, height, value, etc) which enables initial mount transitions (see added examples). (6f8cfb0)

  • Remove ConnectedPoints component and replace with links prop on <Points> (f514bb6)

  • Highlight overhaul (d9dd4bf)

    • Consolidate HighlightLine and HighlightRect
    • Support enabling points, lines, and area individually
    • Support passing props to underlying Line, Circle, and Rect
    • Support overriding with slots
    • Remove color prop

Patch Changes

  • [motionStore] Fix resolving per-property options (do not enable tweened height with default options if only height is enabled) (b930ef7)

  • [LinearGradient] Generate id by default and change default slot to render contexts with id passed (like ClipPath) (476f03a)

  • [HighlightRect] Fix usage with scaleBand yScale's without breaking histogram usage (53a1fff)

  • [LinearGradient] Add units prop to support defining coordinate system for attributes (5e58b98)

0.21.1

Patch Changes

  • Fix TooltipContext mode="bounds" with array of points (ex. duration) (80f3e56)

0.21.0

Minor Changes

  • Remove color prop from Bars, Points, Pie, and Link. Use rScale or fill, stroke, or class prop to define (13b7688)

0.20.2

Patch Cha...

Read more

[email protected]

04 Dec 19:08
ffc9fe8
Compare
Choose a tag to compare

Minor Changes

  • [TooltipContext] Replace on:click event handler with onClick prop (easier to consume when using <Chart tooltip={{ onClick(e) => { ... } }} />) (ee80654)

[email protected]

23 Nov 14:26
ead5f48
Compare
Choose a tag to compare

Patch Changes

  • Use Symbol() instead of empty object for context keys (c676611)

[email protected]

22 Nov 20:00
f5930b9
Compare
Choose a tag to compare

Patch Changes

  • Expose geoContext as top-level export (8bef371)

  • [Tooltip] Fix xOffset usage after recent refactor (cd9d8b7)