Skip to content

fix: line chart grouping (resolves #45) #67

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 26, 2025
Merged

fix: line chart grouping (resolves #45) #67

merged 4 commits into from
May 26, 2025

Conversation

gka
Copy link
Contributor

@gka gka commented May 26, 2025

Copy link

netlify bot commented May 26, 2025

Deploy Preview for svelteplot ready!

Name Link
🔨 Latest commit 6825029
🔍 Latest deploy log https://app.netlify.com/projects/svelteplot/deploys/6834f171820ae20008881b80
😎 Deploy Preview https://deploy-preview-67--svelteplot.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@gka gka added this to the 0.2.7 milestone May 26, 2025
Copy link

📦 Preview package for this PR is published!

Version: 0.2.6-pr-67.0

Install it with:

npm install svelteplot@pr-67
# or install the specific version
npm install svelteplot@0.2.6-pr-67.0

Copy link

📦 Preview package for this PR is published!

Version: 0.2.6-pr-67.1

Install it with:

npm install svelteplot@pr-67
# or install the specific version
npm install svelteplot@0.2.6-pr-67.1

@gka
Copy link
Contributor Author

gka commented May 26, 2025

@gka gka requested a review from Copilot May 26, 2025 22:56
Copy link

📦 Preview package for this PR is published!

Version: 0.2.6-pr-67.2

Install it with:

npm install svelteplot@pr-67
# or install the specific version
npm install svelteplot@0.2.6-pr-67.2

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the line chart grouping issue (resolves #45) and bumps some dependency versions.

  • Adds a new test to ensure points from different groups are not connected.
  • Updates line grouping logic in Line.svelte by removing extra point duplication for single-point groups.
  • Updates various configuration files (package.json, VS Code settings, GitHub workflows) to improve project consistency.

Reviewed Changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/tests/line.test.ts Adds a test to validate that points from different groups are not connected
src/routes/transforms/jitter/+page.md Removes the detailed time interval documentation for temporal jittering
src/lib/marks/Line.svelte Changes the grouping logic by removing the condition that duplicated single points
package.json Bumps the typedoc dependency version
.vscode/settings.json Adds formatting, linting, and extension configurations
.vscode/extensions.json Introduces recommended VS Code extensions
.github/workflows/npm-prerelease.yml Consolidates if conditions and updates registry URL quotes
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported
Comments suppressed due to low confidence (2)

src/routes/transforms/jitter/+page.md:76

  • The removal of detailed time interval strings might confuse users. Consider adding a note explaining the updated supported formats.
- '1 day', '3 days', ... (removed)

src/lib/marks/Line.svelte:76

  • Removing the condition that duplicates a single point changes how line paths are rendered. Please confirm that single-point groups are now handled as intended.
if (group.length === 1) { ... } (removed)

@gka gka merged commit 0e7c864 into main May 26, 2025
8 checks passed
@gka gka deleted the fix/line-grouping branch May 26, 2025 22:58
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.

[BUG] Line chart connects points between different groups
1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy