wuxudong / react-native-charts-wrapper

a react native charts wrapper (support android & iOS)
2.45k stars 659 forks source link

Customize PieChart #613

Open hpelitebook745G2 opened 5 years ago

hpelitebook745G2 commented 5 years ago

Expected Behavior

Screen Shot 2019-10-18 at 11 33 03 AM

I want the PieChart to look like this. Is it possible to:

Actual Behavior

Screen Shot 2019-10-18 at 11 37 37 AM

Here's the actual graph.

Data and config

          <PieChart
            touchEnabled={false}
            style={styles.chart}
            logEnabled={true}
            legend={{ enabled: false }}
            chartDescription={{ text: "" }}
            holeRadius={60}
            usePercentValues={true}
            transparentCircleRadius={0}
            drawEntryLabels={false}
            entryLabelColor={processColor("white")}
            entryLabelTextSize={9}
            data={{
              dataSets: [
                {
                  values,
                  label: "test",
                  config: {
                    colors: graphColors,
                    sliceSpace: 5,
                    drawValues: true,
                    valueTextSize: 18,
                    valueTextColor: processColor("white"),
                    valueFormatter: "#.##'%'",
                    fontFamily: "Bariol-Italic",
                    borderRadius: 10
                  }
                }
              ]
            }}
          />

Specifications

BillwallApp commented 4 years ago

@hpelitebook745G2 Did you find any solution for the customization?