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

UI Broken when I use XY chart with value more than 9,223,372,036,854,775,807 (max value of int 64) #2066

Closed
dungnguyen2703 opened this issue Sep 11, 2024 · 3 comments
Labels
charts Charts component waiting for customer response Cannot make further progress until the customer responds.

Comments

@dungnguyen2703
Copy link

Bug description

UI broken when y value is bigger than max value of int 64 when I use double

Steps to reproduce

  1. Sample FastLineSeries
  2. yValueMapper: (_Point point, _) => 1000000000000000000000000000000000.0 (double value more than max value of int64)
  3. UI will be broken and error show me Infinity or NaN toInt

Code sample

Code sample
FastLineSeries<_Point, DateTime>(
                  color: e.param.color ?? defaultMonitorStyle.color,
                  animationDuration: 0,
                  dataSource: e.points,
                  xValueMapper: (_Point point, _) => point.x,
                  yValueMapper: (_Point point, _) => 100000000000000000000000000000000000000000000,
                  name: e.param.description,
                ),

Screenshots or Video

Screenshots / Video demonstration

image

Stack Traces

No

On which target platforms have you observed this bug?

Windows

Flutter Doctor output

Doctor output
[√] Flutter (Channel stable, 3.22.3, on Microsoft Windows [Version 10.0.22631.4037], locale en-US)
    • Flutter version 3.22.3 on channel stable at C:\Dev\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b0850beeb2 (8 weeks ago), 2024-07-16 21:43:41 -0700
    • Engine revision 235db911ba
    • Dart version 3.4.4
    • DevTools version 2.34.3

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at C:\Users\dungn\AppData\Local\Android\sdk
    • Platform android-35, build-tools 35.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.11+0--11852314)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.10.4)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.10.35027.167
    • Windows 10 SDK version 10.0.22621.0

[√] Android Studio (version 2024.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.11+0--11852314)

[√] VS Code (version 1.93.0)
    • VS Code at C:\Users\dungn\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.96.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.22631.4037]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 128.0.6613.121
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 128.0.2739.67

[√] Network resources
    • All expected network resources are available.
@VijayakumarMariappan VijayakumarMariappan added charts Charts component open Open labels Sep 12, 2024
@hoangnamu
Copy link

Same for me 😢

@ManiKesavaraj
Copy link
Contributor

Hi @dungnguyen2703 , @hoangnamu ,

We have reviewed your query and observed that a compilation error occurs when using a number larger than what an integer can hold. Integers have a fixed range, and exceeding this range results in an overflow error. We have verified that this behavior also occurs in the framework's slider widgets.

Could you please provide more details about your use case for this large number? Based on your requirements, we will validate and suggest the most suitable solution to assist you more effectively.

Regards,
Naveen.

@LavanyaGowtham2021 LavanyaGowtham2021 added waiting for customer response Cannot make further progress until the customer responds. and removed open Open labels Sep 30, 2024
@LavanyaGowtham2021
Copy link
Collaborator

Please reopen this ticket with requested details to proceed further on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
charts Charts component waiting for customer response Cannot make further progress until the customer responds.
Projects
None yet
Development

No branches or pull requests

5 participants