Skip to content

Auto-Hide Y-Axis When No Data is Available #16900

@Vighneshaa

Description

@Vighneshaa

Is your feature request related to a problem? Please describe.
We are currently using the labelVisibility property to hide axes when there is no data available for a specific axis. However, since our users can filter data based on time periods, it requires checking through the dataset each time to determine if data exists for the axis. This is inefficient and negatively impacts performance. Additionally, when an axis has no data, it still takes up space on the chart, which makes the layout look awkward and incomplete.

Describe the solution you'd like
We would like a property or feature that automatically detects if an axis has no data and hides it accordingly, without requiring manual iteration through the dataset. This would improve performance and ensure that unused axes don't take up unnecessary space, providing a cleaner and more professional layout.

Describe alternatives you've considered
The only alternative we've considered so far is continuing to use the labelVisibility property and performing manual checks within the dataset. However, this approach has proven inefficient, particularly when handling time-based data.

Additional context
This feature would greatly enhance the user experience by ensuring that axes without data do not clutter the chart, making the visualization more streamlined and improving overall performance.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions