Skip to content

fix(charts): pie without legend, colours repeat, fixed radius #1160

Description

@ZhuchkaTriplesix

Problem

  • Pie radius is fixed at 100 px (quick_chart_view.dart:357): small on a large pane, clipped on a narrow one.
  • No legend. Slice titles appear only for ≤ 8 slices, but up to 50 slices are drawn, coloured from 5 palette colours in a cycle, so colours repeat ten times. Slices cannot be identified.
  • Slice titles use a fixed TextStyle(fontSize: 11) without colour, painted on top of the slice colour (contrast not guaranteed).

Scope

  • Radius from the available size (LayoutBuilder), donut style consistent with the theme.
  • Legend (right or below depending on width): colour, label, value, %; hover on a legend row highlights the slice and vice versa.
  • Default Top 8 + Other (the shared Top N control from fix(charts): bar/line silently use the first 50 rows; add aggregation and Top N #1158), so colours do not repeat.
  • Slice labels only as percentages for slices ≥ 5 %, colour chosen for contrast against the slice.

Acceptance

  • With 30 categories: 8 slices + Other, all identifiable from the legend, no repeated colour.
  • Pie fills the pane at 600 px and at 1 600 px wide without clipping.

Activity

  1. added
    bugSomething isn't working
    uiUser interface components and widgets
    data-gridInteractive data grid, cell editor, filtering, groupings
    P2Medium priority / Parity & Refactoring
    on Oct 8, 2026
  2. added 3 commits that reference this issue on Oct 9, 2026
  3. ZhuchkaTriplesix commented on Oct 9, 2026

    @ZhuchkaTriplesix
    MemberAuthor

    Closed by #1248.

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

    P2Medium priority / Parity & RefactoringbugSomething isn't workingdata-gridInteractive data grid, cell editor, filtering, groupingsuiUser interface components and widgets

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions