Skip to content

Add lineShape option for Line and Area charts - #7582

Merged
eradman merged 1 commit into
getredash:masterfrom
eradman:line-shape
Nov 25, 2025
Merged

eradman merged 1 commit into
getredash:masterfrom
eradman:line-shape

Conversation

@eradman

@eradman eradman commented Nov 25, 2025 •

Copy link
Copy Markdown
Collaborator

What type of PR is this?

  • Feature

Description

Add lineShape option for Line and Area Charts

Linear
Spline
Horizontal-Vertical
Vertical-Horizontal

How is this tested?

  • Unit tests (pytest, jest)
  • Manually

Test Data

SELECT * 
FROM (VALUES
  ('2022-01-01', 45, 'B'),
  ('2022-02-01', 45, 'B'),
  ('2022-03-01', 65, 'B'),
  ('2022-04-01', 24, 'B'),
  ('2022-05-01', 55, 'B'),
  ('2022-05-01', 57, 'B'),
  ('2022-01-01', 58, 'A'),
  ('2022-02-01', 389, 'A'),
  ('2022-03-01', 537, 'A'),
  ('2022-04-01', 305, 'A'),
  ('2022-05-01', 360, 'A'),
  ('2022-05-01', 360, 'A')
) AS t(year, value, category);

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

line-shape-linear line-shape-spline line-shape-hv line-shape-vh

Linear
Spline
Horizontal-Vertical
Vertical-Horizontal
@yoshiokatsuneo

yoshiokatsuneo commented Nov 25, 2025 •

Copy link
Copy Markdown
Contributor

@eradman

Thank you !
It looks nice feature !
I confirmed that the feature works well.

Optionally, it might be also nice to support "hvh" and "vhv" shape type just to cover all types.
https://plotly.com/javascript/reference/#scatter-line-shape

@eradman
eradman merged commit b5781a8 into getredash:master Nov 25, 2025
@eradman

eradman commented Nov 25, 2025

Copy link
Copy Markdown
Collaborator Author

Thank you for the review @yoshiokatsuneo.

Optionally, it might be also nice to support "hvh" and "vhv" shape type just to cover all types

I was trying to limit the number of options, but yes, these would be easy to add

@eradman
eradman deleted the line-shape branch November 25, 2025 16:44
eradman added a commit to eradman/redash that referenced this pull request Nov 25, 2025
Linear
Spline
Horizontal-Vertical
Vertical-Horizontal
eradman added a commit to StarfishStorage/redash that referenced this pull request Nov 25, 2025
Linear
Spline
Horizontal-Vertical
Vertical-Horizontal
woogakoki added a commit to wooga/redash that referenced this pull request Feb 25, 2026
* master: (69 commits)
  Update Python version to 3.13 (getredash#7636)
  Update plotly.js to 3.3.1, react-pivottable to 0.11.0 (getredash#7634)
  Add charset option to RDS MySQL datasource (getredash#7616)
  Aggregate y value for same x (getredash#7631)
  fix(mysql): Change default charset to utf8mb4 (getredash#7615)
  Update packages for compatibility with setuptools 82 (getredash#7622)
  Snapshot: 26.02.0-dev
  chore: support ipv6 for server in docker (getredash#7596)
  Add impersonation option in trino datasource (getredash#7605)
  Fix Elasticsearch connector configuration key mismatch (getredash#7607)
  duckdb: Show catalog (database) where applicable (e.g. Motherduck) (getredash#7599)
  Snapshot: 26.01.0-dev
  Feature/catch notsupported exception (getredash#7573)
  Multi-org: format base path, not including protocol (getredash#7260)
  fix(destinations): Handle unicode characters in webhook notifications (getredash#7586)
  Persist updated values and apply saved dashboard parameters (getredash#7570)
  Add ibm-db package to enable DB2 as datasource: (getredash#7581)
  Snapshot: 25.12.0-dev
  PostgreSQL: allow connection parameters to be specified (getredash#7579)
  Add lineShape option for Line and Area charts (getredash#7582)
  ...
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.

2 participants