Skip to content

Feature request: Hatched lines in the bar chart #2008

Open

Description

@ShashankSMayya

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
Image

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions