Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PieChart legend don't scroll and overlaps over the chart #994

Open
EduFrazao opened this issue Aug 20, 2024 · 0 comments
Open

PieChart legend don't scroll and overlaps over the chart #994

EduFrazao opened this issue Aug 20, 2024 · 0 comments

Comments

@EduFrazao
Copy link

Do read files under lib/* before reporting issues, you can find all the config there, all of them are straightforward.

Expected Behavior

Build a scroll area or increase the chart height size in order to render all legend entries.

Actual Behavior

Legends overlaps over the chart becoming unreadable

Screenshots

image

Data and config

<PieChart
        legend={{
          enabled: legend,
          textSize: 11,
          fontFamily: theme.fonts.LatoRegular,
          form: 'DEFAULT',
          orientation: 'HORIZONTAL',
          horizontalAlignment: 'CENTER',
          verticalAlignment: 'BOTTOM',
          direction: 'LEFT_TO_RIGHT',
          formToTextSpace: 5,
          xEntrySpace: 1,
          yEntrySpace: 1,
          textColor: processColor(theme.colors.text),
          drawInside: false,
          wordWrapEnabled: true,
          maxSizePercent: 0.15,
        }}
        animation={{ durationY: 1000, durationX: 1000 }}
        usePercentValues
        style={{ flex: 1 }}
        data={{
          dataSets: values.length
            ? [
                {
                  values,
                  label: '',
                  config: {
                    colors: colors,
                    valueTextSize: 10,
                    valueTextColor: processColor(theme.colors.white),
                    valueFormatter: "#.#'%'",
                    sliceSpace: 1,
                    selectionShift: 15,
                    valueLinePart1Length: 10,
                  },
                },
              ]
            : [],
        }}
        onSelect={handleSelect}
        drawEntryLabels={false}
        chartDescription={{ text: '' }}
        highlights={values.length ? [{ x: 0 }] : undefined}
        holeRadius={20}
        holeColor={processColor('#f0f0f0')}
        transparentCircleRadius={40}
        transparentCircleColor={processColor('#f0f0f088')}
        maxAngle={3500}
      />

Steps to Reproduce the Problem

Build a chart with more than 100

Specifications

  • Version: 0.6.0
  • Platform: Android
  • Subsystem: Android 14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant