imaNNeo / imaNNeo/fl_chart

Dot Color?

Open
#542 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement Line Chart
Dominant language
Dart
Stars
7.6k
Forks
2k
Avg merge
9d 1h
Merged PRs (30d)
2

Description

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](https://user-images.githubusercontent.com/39173295/104219463-d0a74880-5446-11eb-8e17-8759350f8c23.JPG)

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the supplied line-chart configuration, focusing on the final two dots and their gradient behavior. Inspect the line-chart dot rendering and gradient handling; done when dot colors follow the intended value-based gradient and a regression check covers the case.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
data-visualization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.