Skip to content

Added tooltip to area chart , bar chart , line chart #148

Merged
ankit-thesys merged 14 commits into
mainfrom
adding-tooltip-to-xAxixTick
Jul 3, 2025
Merged

Added tooltip to area chart , bar chart , line chart #148
ankit-thesys merged 14 commits into
mainfrom
adding-tooltip-to-xAxixTick

Conversation

@i-subham23

Copy link
Copy Markdown
Contributor

No description provided.

@ankit-thesys
ankit-thesys force-pushed the adding-tooltip-to-xAxixTick branch from 3242575 to 6fbca7a Compare July 3, 2025 12:45
…ult prop handling

This commit refactors the LabelTooltipProvider component by extracting default values for delayDuration, skipDelayDuration, and disableHoverableContent into constants. The component is also converted to a functional component for improved readability and maintainability. Additionally, the LabelTooltip component now utilizes the default delayDuration constant, enhancing consistency across the tooltip implementation.
…, and LineChart components

This commit enhances the AreaChart, BarChart, and LineChart components by wrapping them with the new LabelTooltipProvider. This integration allows for improved tooltip functionality across these chart components, ensuring a consistent user experience when interacting with chart elements. Additionally, the charts maintain their existing tooltip features while benefiting from the new provider's capabilities.
This commit cleans up the BarChart component by removing a duplicate import statement for the LabelTooltipProvider. This change enhances code clarity and maintains consistency in the import structure.
…gration

This commit updates the XAxisTick component to utilize the new LabelTooltip for displaying content. It introduces state management to check for text truncation and conditionally renders the tooltip based on the content's visibility. Additionally, the LabelTooltip component is integrated into both multi-line and angled tick variants, improving user experience by providing contextual information when text is truncated.
This commit removes the "angled" variant from the XAxisTick component, simplifying the implementation by eliminating unnecessary code related to angled text rendering. The XAxisTick type definition is also updated to reflect this change, enhancing clarity and maintainability of the component.
This commit simplifies the useMaxLabelHeight hook by removing the redundant handling for the "angled" tick variant, as it is no longer necessary following recent refactoring of the XAxisTick component. This change enhances code clarity and maintainability.
@ankit-thesys
ankit-thesys merged commit 3b2998d into main Jul 3, 2025
3 checks passed
@ankit-thesys
ankit-thesys deleted the adding-tooltip-to-xAxixTick branch July 3, 2025 16:07
@ankit-thesys
ankit-thesys restored the adding-tooltip-to-xAxixTick branch July 3, 2025 16:10
ankit-thesys added a commit that referenced this pull request Jul 3, 2025
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.

3 participants