Skip to content

LayerChart 2.0 (next)#449

Open
techniq wants to merge 325 commits intomainfrom
next
Open

LayerChart 2.0 (next)#449
techniq wants to merge 325 commits intomainfrom
next

Conversation

@techniq
Copy link
Copy Markdown
Owner

@techniq techniq commented Mar 10, 2025

No description provided.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 10, 2025

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
layerchart ✅ Ready (View Log) Visit Preview 0fb5400

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 10, 2025

Open in StackBlitz

npm i https://pkg.pr.new/layerchart@449

commit: 0fb5400

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 12, 2025

🦋 Changeset detected

Latest commit: 0fb5400

The changes in this PR will be included in the next version bump.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@HicaroD
Copy link
Copy Markdown

HicaroD commented May 9, 2025

Hey, @techniq.
First of all, thank you for your amazing work, this package is actually incredible!

I have a question: When are you planning to merge this PR so we can finally get the Svelte 5 support? 🤗

@techniq
Copy link
Copy Markdown
Owner Author

techniq commented May 9, 2025

Hey @HicaroD, thanks for the kind words 🫶. Sorry, I don't have a rough release date set yet. There are a good number of improvements I would like to include in 2.0.0 (see milestone although not guaranteed to cover everything or have everything).

With that said, you 100% can use it today via layerchart@next and docs at https://next.layerchart.com/. I do this already for Github Analysis, Strava Analysis, and my main work project. It's also be used to build out shadcn-svelte Charts (issue).

I could see pushing some items to 2.1 but want to make sure if we find any breaking changes (mostly API refinements) we get them all in 2.0. I'm anticipating very little (if any), but still don't want to rush it.

Related: I also need to migrate Svelte UX fully over to Svelte 5 (it's Svelte 3-5 compat with Svelte 3/4 state/syntax). Both libraries have already been migrated to Tailwind 4, but the move to Svelte 5 state runes/snippets and regressions checking will take some concentrated efforts and time. I don't know how close I'll try to sync their release schedules though (and the benefit of having @next releases in place so they can be incrementally adopted).

@cycle4passion
Copy link
Copy Markdown

All the examples give 500 errors on https://next.layerchart.com/

@techniq
Copy link
Copy Markdown
Owner Author

techniq commented May 9, 2025

All the examples give 500 errors on https://next.layerchart.com/

@cycle4passion Odd... working here

image

Maybe try a hard refresh? Which browser?

@cycle4passion
Copy link
Copy Markdown

mobile only, does not work in arc (chromium), native chrome, or Safari browser.

@techniq
Copy link
Copy Markdown
Owner Author

techniq commented May 9, 2025

mobile only, does not work in arc (chromium), native chrome, or Safari browser.

Really odd... I can't reproduce

image

@github-actions github-actions bot mentioned this pull request Apr 1, 2026
cycle4passion and others added 19 commits April 1, 2026 10:27
* dynamic-smart-labels

* Merge getDynamicTextProps into getTextProps.  Add example

* Add changeset

---------

Co-authored-by: Sean Lynch <techniq35@gmail.com>
* Add squares to markers

Documenation listed squares as an option, but this did not exits. I have added 'square' and 'square-stroke' as options. I have also updated line and spline examples to illustrate it.

* Add changeset

---------

Co-authored-by: Sean Lynch <techniq35@gmail.com>
* Add Month component (WIP)

* Support start/end that do not align on year boundaries (ex. last 90 days)

* Refactor Month component to remove unused rangeMonths and enhance month label generation

* Update monthLabelHeight calculation to conditionally account for label visibility

* Update Month component to use current date as end date instead of last day of year

* cleanup examples

* remove old Month docs

* Remove `optimizeDeps.include` from vite.config.js (not needed anymore for "optimized dependencies changed. reloading" issues
…nsform pan/zoom and brush selection. Uses range-rescaling pattern to smoothly zoom and pan categorical bar charts. Automatically constrains panning to data boundaries and prevents zooming out past initial view.
…hen the domain is larger than the available space. Automatically shows more tick labels when zoomed in on band scale transforms.
Prioritizes results whose title starts with or contains the search query, showing them in a "Best match" group above regular results.
…Path, preventing non-interactive overlays from capturing hit canvas events
…ePointer` to TransformState when props change. Fixes inverted globe dragging when dynamically switching between flat and globe projections.
…ale: true` in default `transformApply` for globes.
…are now interpreted as relative values. `scaleExtent: [0.5, 8]` means 0.5x to 8x of the fitted projection scale. `translateExtent` is offset from the initial fitted position in pixels.
…with one another across different projections (mercator, orthographic, natural earth, etc)
…ct, Circle, Ellipse, Line, Text, Path, Group)
…during bench:save

Trim to 5 representative primitives (rect, circle, group, text, path) and cap scaling at 250 instances. The full suite with 7 primitives and 1000-instance scaling accumulated enough memory to crash the browser tab when run alongside all other benchmark suites.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants