Skip to content
This repository has been archived by the owner on Sep 17, 2021. It is now read-only.

Pie Chart is not in the center #233

Open
VanessaChu opened this issue Feb 22, 2018 · 0 comments
Open

Pie Chart is not in the center #233

VanessaChu opened this issue Feb 22, 2018 · 0 comments

Comments

@VanessaChu
Copy link

The Pie Chart is not being drawn in the center. It's not reacting the styles applied in View, instead it's positioned in the top left.

screen shot 2018-02-21 at 4 41 30 pm

      <View style={{flex: 1, justifyContent: 'center', alignItems: 'center'}}>
        <Pie data={data}
          options={options}
          accessorKey='population'
          margin={{top: 20, left: 20, right: 20, bottom: 20}}
          color='#774B97'
          pallete={
            [
              {'r': 123, 'g': 94, 'b': 144},
              {'r': 156, 'g': 142, 'b': 166},
              {'r': 89, 'g': 73, 'b': 101},
              {'r': 119, 'g': 75, 'b': 151}
            ]
          }
          />
      </View>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant