Skip to content

Allow Removing Y-Axis Labels Without Retaining Space in NumericAxis #2303

Open
@iOS-Max

Description

@iOS-Max

Description
Currently, when setting labelStyle: TextStyle(color: Colors.transparent) in primaryYAxis of SfCartesianChart, the labels are hidden, but the space they occupy remains. This prevents the chart from fully utilizing the available area.

I want to

  1. Show the Y-axis line (keep axisLine visible).
  2. Remove Y-axis labels (no text should appear).
  3. Remove the space occupied by the labels, so the chart appears fully stretched without any reserved padding.

Steps to Reproduce

  1. Define a SfCartesianChart with NumericAxis for primaryYAxis.
  2. Hide the labels using labelStyle: TextStyle(color: Colors.transparent).
  3. Observe that the labels are not displayed, but the space where they would appear remains.

Expected Behavior
There should be an option to completely remove the Y-axis labels and their space, so that the chart area expands accordingly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    chartsCharts componentwaiting for customer responseCannot make further progress until the customer responds.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions