Code Monkey home page Code Monkey logo

Comments (7)

ivnsch avatar ivnsch commented on June 21, 2024

If I understand the first problem correctly, you want to update slices, that's currently not possible. You have to re-create the complete chart. The second problem, you should be able to adjust the radius of the chart labels in order to not to overlap with the percentage? If this is not the problem please post a screenshot.

from piecharts.

GianlucaP17 avatar GianlucaP17 commented on June 21, 2024

ok, i understand, i thought it could be refreshed in some way. The percentage will be in the center of the circle.
Thank you for the time.

from piecharts.

ivnsch avatar ivnsch commented on June 21, 2024

Ok. What I meant with the percentage, is that if you have overlaps with the labels of the chart, you can increase the radius of those labels such that they don't overlap with the percentage.

There's a feature request to be able to update slices #2 but I'm a bit scarce of time now so it will take a while until it's implemented (unless someone else does it).

from piecharts.

GianlucaP17 avatar GianlucaP17 commented on June 21, 2024

Ok, i thought i can remove a slice in a certain index, but for now i have only this: chartView.removeSlices()

How can i remove a Slice (with index or if isn't possible just like the last)?

from piecharts.

ivnsch avatar ivnsch commented on June 21, 2024

There's no support for update or delete yet. Only insert. Please look at the README ;)

You can in the meantime remove and re-add the chart with the updated state, as described in #2.

from piecharts.

GianlucaP17 avatar GianlucaP17 commented on June 21, 2024

Then i can't change the percentage / value of the entire slice?

from piecharts.

ivnsch avatar ivnsch commented on June 21, 2024

No as mentioned above it's not possible to update or delete individual slices yet. You can re-initialize the chart with updated values. Feel free to submit a PR to help to improve this.

from piecharts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.