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

Radar plot center point is zero #1351

Open
Athony1225 opened this issue May 30, 2023 · 12 comments
Open

Radar plot center point is zero #1351

Athony1225 opened this issue May 30, 2023 · 12 comments

Comments

@Athony1225
Copy link

image
I want the points with the value of zero to be concentrated on the center point as shown in the figure, but I don't know how to set it

@collamaf
Copy link

Hello, I am also having the same question. Are we missing something here?

@Athony1225
Copy link
Author

Hello, I am also having the same question. Are we missing something here?
I do not know, I searched, but could not find which property can be controlled.
The screenshot below is the result of version 0.41.0, but this problem occurred after I updated to 0.62.0
image

@imaNNeo
Copy link
Owner

imaNNeo commented Jun 8, 2023

I didn't understand your issue

@Athony1225
Copy link
Author

I didn't understand your issue

The 1 and 2 in the picture are the differences between the 0.62.0 and 0.41.0 versions, the 2 is the one I want. I don't know if there is a way to control this in version 0.62.0

image

@mfatihz
Copy link

mfatihz commented Jul 17, 2023

I got the same problem too. I ran the sample file and modified the data like this
image

And the result is as follows:
image

I think the value 0 should be in the center of the radar, like the image below
image

And an additional problem: when using other value combinations, the radar axis scales incorrectly. For example below:
image
image

@janosdupai
Copy link

Same here... If you have any solution, just let me know please!

@collamaf
Copy link

collamaf commented Aug 6, 2023

Guys I "solved" the problem by superimposing my desired data with another dataset (made transparent so not actually shown) having both 0 and 100 as values
Did I made it clean what I mean?

@hardgit
Copy link

hardgit commented Sep 19, 2023

I've encountered this problem too. May I ask when will the author fix it?

@imaNNeo
Copy link
Owner

imaNNeo commented Oct 1, 2023

Can someone please give me a reproducible code (a main.dart file) to let me fix the issue?

@ColinSchmale
Copy link

You can use the example and replace rawDataSets in example/lib/presentation/samples/radar/radar_chart_sample1.dart
as mentioned in my ticket with this simplified code:

List<RawDataSet> rawDataSets() {
    return [
      RawDataSet(
        title: 'Fashion',
        color: widget.fashionColor,
        values: [
          100,
          90,
          90,
        ],
      ),
    ];
}

@git-boya
Copy link

git-boya commented Jan 4, 2024

May I ask if there is any progress on this issue

@eldrig0
Copy link

eldrig0 commented Jan 15, 2024

#1078 broke the behaviour after version 0.6.2, i reverted to 0.6.1, and it works and to have the correct scale have a transparent dataset that contains max value and min value along with my actual dataset

 RadarDataSet(
       entryRadius: 8,
       fillColor: Colors.transparent,
       borderColor: Colors.transparent,
       borderWidth: 2,
      dataEntries:  [
         // Make sure the length of this dataset match the length of your original dataset.
         RadarEntry(value: 0), //minValue
         RadarEntry(value: 5) //maxValue
      ],
),

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

No branches or pull requests

9 participants