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

Dot Color? #542

Open
YohanWadia opened this issue Jan 11, 2021 · 4 comments
Open

Dot Color? #542

YohanWadia opened this issue Jan 11, 2021 · 4 comments
Labels
enhancement New feature or request Line Chart

Comments

@YohanWadia
Copy link

Im trying to make as simple line graf.. where i show higher values in more Red... and lower values in more Yellow.
The graf works fine... but when the DOTS appear... its WIERD!?!?

for some reason the dot colors dont follow the same pattern as the Line's Gradient... OR... belowBarData
AND
I cant find any way to edit them either.

              isCurved: true,
              colors: gradientColors.map((color) => color.withOpacity(0.9)).toList(),
              gradientFrom: Offset(0.5,0),
              gradientTo: Offset(0.5,1),
              barWidth: 3,
              // dotData: FlDotData(show: false),
              belowBarData: BarAreaData(
                show: true,
                gradientFrom: Offset(0.5,0),
                gradientTo: Offset(0.5,1),
                colors: gradientColors.map((color) => color.withOpacity(0.3)).toList(), 

but the result is:
Capture

please notice the last 2 dots are totally following some other pattern
feels more as if they are following a left to right gradient!

@YohanWadia
Copy link
Author

Any help???

@imaNNeo
Copy link
Owner

imaNNeo commented Jan 30, 2021

I think we don't support vertical direction for dots gradient color.
Stay tuned! I work on this project in my free time. You can push me by donating. Otherwise please wait until I find free time to implement it.
Also, you always can send me a Pull Request.
Thanks for understanding!

@YohanWadia
Copy link
Author

May be you can push me, to push you by donating to me first!!! ;-)
Ok... I wana start with trying to send you a pull request... to make my life easier could you show me a location where I need to look at to help resolve this. thanks

@roman-yerin
Copy link

Any luck with the issue?

@imaNNeo imaNNeo added enhancement New feature or request Line Chart labels Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Line Chart
Projects
None yet
Development

No branches or pull requests

3 participants