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

Migrate to 0.70.x #1862

Open
biodegradable000 opened this issue Feb 13, 2025 · 1 comment
Open

Migrate to 0.70.x #1862

biodegradable000 opened this issue Feb 13, 2025 · 1 comment

Comments

@biodegradable000
Copy link

I am struggling to migrate from 0.69 to 0.70.x because I cannot find any documentation on it.

My problem is that in the SideTitleWidget the axisside property has disappeared. Instead, I need to add a "meta" property but I have no clue how to use it.
I'm sorry if this is obvious, but I have searched everywhere I can think of. I don't find any example showing how to use it, I can't find any documentation where the property is mentioned and I also cannot find any migration guide here

What am I missing?
Thanks a lot for pointing me to the right direction!

@PvtPuddles
Copy link

If you're using the SideTitleWidget as part of the SideTitles data, the getTitlesWidget builder gives you a TitleMeta object.

      AxisTitles(
        sideTitles: SideTitles(
          getTitlesWidget: (double value, TitleMeta meta) {
            return SideTitleWidget(
              meta: meta,
              child: MyTitleWidget(value),
            );
          },
        ),
      )

Otherwise, you'll have to construct your own TitleMeta. Snooping through the code, you'll only need to worry about the sideTitles and rotationQuarterTurns parameters, everything else is ignored (for now).

I agree that it's poorly documented; the SideTitleWidget doc comment still refers to the old axisSide parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants