-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
feat(explore): enable heat map tooltips on click #115413
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
Changes from all commits
ef88ded
79a6555
99c0bda
c94781f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -61,11 +61,16 @@ export function HeatMapWidgetVisualization(props: HeatMapWidgetVisualizationProp | |
| <Flex direction="column" height="100%"> | ||
| <BaseChart | ||
| autoHeightResize | ||
| // will be grouped by date as we only support time as the x-axis right now. | ||
| // TODO(nikki): eventually this will change later and we'll pass in what kind of x-axis we have | ||
| isGroupedByDate | ||
| showTimeInTooltip | ||
| tooltip={{ | ||
| show: false, | ||
| show: true, | ||
| axisPointer: { | ||
| show: false, | ||
| }, | ||
| triggerOn: 'click', | ||
|
Comment on lines
68
to
+73
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The heatmap tooltip incorrectly displays a single timestamp instead of a time range because Suggested FixAdjust the Prompt for AI Agent
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. doing this in a different pr |
||
| }} | ||
| series={series} | ||
| xAxis={{ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: The heatmap tooltip formatter is not customized for 3D data, causing it to display the Y-axis label instead of the Z-axis count as the series value.
Severity: MEDIUM
Suggested Fix
Provide a custom
formatterfunction in thetooltipconfiguration for the heatmap chart. This formatter should correctly access the Z-axis value from the 3D series data at index 2 (e.g.,params.value[2]) to display the correct count in the tooltip.Prompt for AI Agent
Did we get this right? 👍 / 👎 to inform future reviews.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ya ya later problem