Feature request: Hatched lines in the bar chart
- Dominant language
- Dart
- Stars
- 7.6k
- Forks
- 2k
- Avg merge
- 9d 1h
- Merged PRs (30d)
- 2
Description
I am having hard time creating hatched lines within the bar chart as I have some requirement with trading application for created hatched lines, mainly with respect to OI Chart. I have attached the image below of it
Passing an optional hatch pattern to the BarRodStick
`BarChartRodStackItem(
y1,
y1 + y2,
null, // No solid color
isHatched: true,
hatchPattern: const HatchPattern(
hatchColor: Color(0xff38f3f3),
backgroundColor: Color(0xff0293ee),
spacing: 6.0,
angle: -45.0,
strokeWidth: 2.5,
),
),`
**Describe alternatives you've considered**
I have tried adding an overlay to the bar chart for this with stack for the hatched lines over it, it seems to be a complicated approach rather than adding an option to the rod itself using custom painter
**Additional context**
Contributor guide
Research direction
Start with BarChartRodStackItem and the bar chart's custom painter, using the proposed optional hatch pattern as the requested API shape. Done means bar chart rod stacks can render the requested hatch color, background, spacing, angle, and stroke width without requiring an overlay.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100