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

Pie chart with 1 item in the midle not Transparent #124

Closed
NeETsu opened this issue Mar 22, 2017 · 3 comments
Closed

Pie chart with 1 item in the midle not Transparent #124

NeETsu opened this issue Mar 22, 2017 · 3 comments

Comments

@NeETsu
Copy link

NeETsu commented Mar 22, 2017

Hello
as first great chart tool :)

i am using the tool to display pie chart dynamically (building the chart when the user selects the data to display). I am also showing with a Text in the middle of the Chart. I found that if i have only one item selected (drawing the chart with only 1 Item) then the middle of the Chart is not Transparent but white.

Is these a known Issue?

@marzolfb
Copy link
Contributor

I was unable to reproduce this behavior when I edited the PieChartBasic and removed all but one data point. I wonder if you are using different versions of dependencies. What happens when you issue this command in your app:

npm list react-react-native react-native-svg paths-js

?

When I do this with the example app, I see this:

react-native-pathjs-charts@0.0.26
  ├── paths-js@0.4.5 
  └── react-native-svg@4.5.0

@NeETsu
Copy link
Author

NeETsu commented Mar 27, 2017

hello
when i run the command i see:

└─┬ react-native-pathjs-charts@0.0.26
  ├── paths-js@0.4.5
  └── react-native-svg@4.5.0

the result is seen below.

screen shot 2017-03-27 at 07 07 12

screen shot 2017-03-27 at 07 07 03

the result is seen beacuse i have a grey background. Before i also had text behind the chart and was not shown if i only selected one item.

@NeETsu
Copy link
Author

NeETsu commented Mar 27, 2017

Hello
just found the Issue and a workaround.
in case of one item it are not the arches drawn but a full circle in a full circle.

There is a parameter called monoItemInnerFillColor where you can set the color of the inner circle

@NeETsu NeETsu closed this as completed Mar 27, 2017
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

2 participants