Commit graph

15 commits

Author SHA1 Message Date
Moritz Jung
d8ff4232f8
Merge pull request #19 from emmekappa/fix/line-chart-ordering
fix: line chart point ordering
2026-05-12 14:15:31 +02:00
emmekappa
c68605e619 fix: remove bases-chart-view class on unload to avoid leaking flex layout into other views
When switching from a chart view to another view (e.g. table) of the
same Base, Obsidian reuses the same scrollEl. The plugin was adding
the `bases-chart-view` class on load but never removing it, so the
`display: flex` rule from styles.css kept being applied to the table
container, causing rows to overlap the header.

Also adds a Table view to the penguins example base so this regression
is easy to reproduce in exampleVault.
2026-05-10 23:14:24 +02:00
emmekappa
c4370effb3 fix line chart point ordering
Sort points by x within each group in sortDataByGroup. groupedData
from BasesQueryResult is not guaranteed to be presorted, and
svelteplot's Line draws the polyline in array order, so without an
x-sort the line could connect points out of chronological order.

Adds an example data-points base/dataset to reproduce.
2026-05-10 23:03:38 +02:00
Moritz Jung
99bc2cb193 movie data; scatter lables; fix group by sorting; fix #4 2025-10-10 16:44:31 +02:00
Moritz Jung
c754b93f93 fix empty chart without groupby 2025-10-09 15:53:41 +02:00
Moritz Jung
6328ac24e3 some more nitpicks 2025-10-09 13:17:27 +02:00
Moritz Jung
549cda7e1d y domain limits 2025-10-09 12:26:02 +02:00
Moritz Jung
1fa3693fc5 refactor; update readme 2025-10-08 13:22:23 +02:00
Moritz Jung
a086b18a5e cleanup and clicking 2025-10-07 13:02:06 +02:00
Moritz Jung
a18f53b739 grouping; multiple plots; and more 2025-10-05 16:44:48 +02:00
Moritz Jung
67317855e3 update readme 2025-10-04 16:52:25 +02:00
Moritz Jung
2717c72c0d labels and colors 2025-10-04 14:01:28 +02:00
Moritz Jung
b41925ff4a update stuff 2025-10-02 21:08:03 +02:00
Moritz Jung
00a320a42d initial version 2025-10-02 14:51:00 +02:00
Moritz Jung
8b839c1030
Initial commit 2025-10-02 11:10:56 +02:00