feat(slack): Pass display type from Explore URL to chartcuterie#112620
Merged
DominikB2014 merged 1 commit intomasterfrom Apr 10, 2026
Merged
Conversation
Parse the chartType from the visualize (or aggregateField) JSON URL param in Explore Slack unfurls and pass it as the "type" field in the chart data sent to chartcuterie. This enables rendering bar and area charts in addition to line charts. The numeric chartType values (0=bar, 1=line, 2=area) from the frontend are mapped to DisplayType string values expected by chartcuterie. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
narsaynorath
approved these changes
Apr 10, 2026
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Parses the
chartTypefrom thevisualize(oraggregateField) JSON URL param in Explore Slack unfurls and passes it as thetypefield in the chart data sent to chartcuterie. This enables rendering bar and area charts in Slack unfurls, matching the user's selected chart type in Explore.Also updates
map_explore_query_argsto prefer thevisualizeparam (used by spans explore) overaggregateField(used by logs explore), since the traces explore page usesvisualize.The numeric
chartTypevalues from the frontend (0=bar, 1=line, 2=area) are mapped toDisplayTypestring values expected by chartcuterie. When nochartTypeis present, thetypefield is omitted from chart data, preserving backward compatibility (chartcuterie defaults to line).Refs DAIN-1481