Skip to content

feat(chartcuterie): Support multiple display types in Explore chart rendering#112610

Merged
DominikB2014 merged 1 commit intomasterfrom
dominikbuszowiecki/dain-1481-support-other-display-types-with-explorer
Apr 9, 2026
Merged

feat(chartcuterie): Support multiple display types in Explore chart rendering#112610
DominikB2014 merged 1 commit intomasterfrom
dominikbuszowiecki/dain-1481-support-other-display-types-with-explorer

Conversation

@DominikB2014
Copy link
Copy Markdown
Contributor

Refactors the Explore chartcuterie rendering to use the plottable infrastructure (Line, Area, Bars classes and their toSeries() methods) instead of hardcoding LineSeries. This ensures Slack unfurl charts match the frontend rendering for line, bar, and area display types.

ExploreChartData now accepts an optional type field (DisplayType), defaulting to LINE for backward compatibility. The Python unfurl code can pass "type": "bar" or "type": "area" to render different chart types.

Also extracts createPlottableFromTimeSeries(displayType, timeSeries, config?) as a reusable function that takes a DisplayType directly, and renames the Widget-dependent variant to createPlottableFromTimeSeriesAndWidget.

Refs DAIN-1481

…endering

Refactor Explore chartcuterie rendering to use the plottable
infrastructure instead of hardcoded LineSeries, ensuring Slack unfurl
charts match the frontend rendering for line, bar, and area charts.

Extract createPlottableFromTimeSeries to accept a DisplayType directly,
and rename the Widget-dependent variant to
createPlottableFromTimeSeriesAndWidget.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@linear-code
Copy link
Copy Markdown

linear-code bot commented Apr 9, 2026

@DominikB2014 DominikB2014 marked this pull request as ready for review April 9, 2026 19:30
@DominikB2014 DominikB2014 requested a review from a team as a code owner April 9, 2026 19:30
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 9, 2026
@DominikB2014 DominikB2014 merged commit 09310b6 into master Apr 9, 2026
66 checks passed
@DominikB2014 DominikB2014 deleted the dominikbuszowiecki/dain-1481-support-other-display-types-with-explorer branch April 9, 2026 20:25
george-sentry pushed a commit that referenced this pull request Apr 9, 2026
…endering (#112610)

Refactors the Explore chartcuterie rendering to use the plottable
infrastructure (`Line`, `Area`, `Bars` classes and their `toSeries()`
methods) instead of hardcoding `LineSeries`. This ensures Slack unfurl
charts match the frontend rendering for line, bar, and area display
types.

`ExploreChartData` now accepts an optional `type` field (`DisplayType`),
defaulting to `LINE` for backward compatibility. The Python unfurl code
can pass `"type": "bar"` or `"type": "area"` to render different chart
types.

Also extracts `createPlottableFromTimeSeries(displayType, timeSeries,
config?)` as a reusable function that takes a `DisplayType` directly,
and renames the `Widget`-dependent variant to
`createPlottableFromTimeSeriesAndWidget`.

Refs DAIN-1481

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants