Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot set the name of axis? #1259

Closed
Flynn2018 opened this issue Feb 10, 2023 · 1 comment
Closed

Cannot set the name of axis? #1259

Flynn2018 opened this issue Feb 10, 2023 · 1 comment
Labels
Fundamental question Further information is requested

Comments

@Flynn2018
Copy link

Flynn2018 commented Feb 10, 2023

Now using fl_chart: ^0.60.0 to create one bar chart, but cannot set the name of axis due to "The named parameter 'axisTitleData' isn't defined."?

return BarChart( BarChartData( maxY: 25,

    axisTitleData: FlAxisTitleData( **//The method 'FlAxisTitleData' isn't defined for the type 'BarChartPageState'.**
      show: true,
      leftTitle: AxisTitle( **//The method 'AxisTitle' isn't defined for the type 'BarChartPageState'.**
        titleText: "Interest Rate",
        showTitle: true,
        textStyle: TextStyle(fontSize: 15, color: Colors.white),
      ),
      bottomTitle: AxisTitle(
        titleText: "Banks",
        showTitle: true,
        textStyle: TextStyle(fontSize: 15, color: Colors.white),
      ),
    ),
..........
@imaNNeo
Copy link
Owner

imaNNeo commented Feb 12, 2023

There are some breaking changes in 0.55.0.
Please follow the migration guide to fix your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fundamental question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants