Giter Site home page Giter Site logo

Comments (9)

coin avatar coin commented on August 16, 2024

Indeed; I just experienced a similar bug, I'm using the pie chart to give newsletters statistics about how many time the links are clicked, but in my case I don't even have the black border, the pie just vanish.

from g.raphael.

nelsou avatar nelsou commented on August 16, 2024

FIX:

On line 23 of http://github.com/DmitryBaranovskiy/g.raphael/blob/master/g.pie.js
replace "stroke:opt.stroke" by "stroke:opts.stroke"

Should be better :)

from g.raphael.

rokcarl avatar rokcarl commented on August 16, 2024

I have the same problem and this fix does not fix it for me, still the same 1px black border.

from g.raphael.

impressiver avatar impressiver commented on August 16, 2024

in the minimized js file, replace "stroke:opt.stroke" with "stroke:o.stroke"

from g.raphael.

aivijay avatar aivijay commented on August 16, 2024

I have the same problem with one item. With the above changes nothing happens.
On firefox nothing shows up.
On Chrome the filled circle shows up, on hover it vanishes.
Any ideas why this is happening?

from g.raphael.

aivijay avatar aivijay commented on August 16, 2024

I resorted finally to do the changes as above in g.pie.js setting it to stroke:o.stroke though it didnt fix the problem. I set one of the other data as well to a fraction 0.001 and was able to get the chart shown as needed with 100% for the one which needs to show up but there is a very fraction which doesnt effect the chart for now.

Maybe this might help someone having a similar problem.

Mailtics.com
-vi

from g.raphael.

aivijay avatar aivijay commented on August 16, 2024

you can check it out at mailtics.com

from g.raphael.

fredpyo avatar fredpyo commented on August 16, 2024

The problem is that according to w3c's SVG spec (http://www.w3.org/TR/SVG/implnote.html#ArcOutOfRangeParameters) if the start and endpoint match, then no arc is drawn.

from g.raphael.

frostbytten avatar frostbytten commented on August 16, 2024

To anyone who needs to just put a dot (100% of a value for example):

The following commit solves this problem, as well as adding a couple of features for the pie chart. My group is extending this library for our cross-platform graphing library.

open-agroclimate/g.raphael@3fe60f3

Best of luck

from g.raphael.

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.