Skip to content

Ensure the chart area is clipped in charts to the size passed to paint(ui.Canvas canvas, ui.Size size) #7

@mzimmerm

Description

@mzimmerm

Right now, wide labels can cause the paint(ui.Canvas canvas, ui.Size size) to paint outside the area passed by the size parameter. There are a few ways to clip this, the most obvious, adding

 canvas.clipRect(const ui.Offset(0.0, 0.0) & size); 

at the end of the paint method seems to be doing "nothing". Investigate why and find a way to achieve clipping.

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