flutter-examples icon indicating copy to clipboard operation
flutter-examples copied to clipboard

moving label text completely left in y axis rectangular box

Open gopibathini opened this issue 2 years ago • 3 comments

i want add space between y axis labels and axis and labels need to move complete left , iam using categoryaxis but no option related to that graph

gopibathini avatar Jul 12 '22 07:07 gopibathini

Hi @gopibathini,

Greetings from Syncfusion. We suggest you the solution to add the spacing between the axis label and the axis you can increase the majorTickLines size and set the color of the tick lines to transparent. It will help you to add the spacing between the axis and axis labels. We have attached the code snippet below for your reference.

Code snippet:

primaryYAxis: NumericAxis(
  majorTickLines: MajorTickLines(
    size: 10, 
    color: Colors.transparent
  ),
),

Regards, Yuvaraj.

Yuvaraj-Gajaraj avatar Jul 13 '22 11:07 Yuvaraj-Gajaraj

@Yuvaraj-Gajaraj y axis labels are strings not able to use numeric and tried using major ticklines not moving completely left

gopibathini avatar Jul 14 '22 05:07 gopibathini

Hi @gopibathini,

Currently, we don't have any padding property to move the axis label completely left, we have logged the feature request to replace the axis label with the custom widget. Using this you can be able to add padding to the axis label and move it as per your requirement, it will be available in any of our upcoming releases. We have attached the feedback link below, you can track the status of the feature here.

Feedback: https://www.syncfusion.com/feedback/23096

Regards, Yuvaraj.

Yuvaraj-Gajaraj avatar Jul 15 '22 16:07 Yuvaraj-Gajaraj