imaNNeo / imaNNeo/fl_chart

How to change line color in line chart depending on values selected?

Open
#1,831 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
7.6k
Forks
2k
Avg merge
9d 1h
Merged PRs (30d)
2

Description

I need to dynamically change the line color in a line chart based on the data values selected. Specifically, I want to:

- Change color when values cross certain thresholds
- Update colors in real-time as data changes
![Screenshot 2024-12-30 at 18 52 11](https://github.com/user-attachments/assets/cdffe6fd-b6a9-419d-ac64-021e6b90fbb3)

Contributor guide

Open the contributing guide

Research direction

The issue names no file, test, or entry point. Start by reviewing the line-chart implementation and its current color configuration, then establish how threshold-based and real-time updates should work; done means colors change correctly as selected values cross the defined thresholds.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.