syncfusion / flutter-examples

This repository contains the Syncfusion Flutter UI widgets examples and the guide to use them.
Other
1.98k stars 775 forks source link

moving label text completely left in y axis rectangular box #650

Closed gopibathini closed 1 year ago

gopibathini commented 2 years ago

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

Yuvaraj-Gajaraj commented 2 years ago

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.

gopibathini commented 2 years ago

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

Yuvaraj-Gajaraj commented 2 years ago

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.