C
C
costagolub2016-02-24 10:13:24
JavaScript
costagolub, 2016-02-24 10:13:24

Who knows good examples of pie chart with gradient?

We need examples of pie chart with a gradient, maybe someone saw beautiful pie charts on some sites? I saw it somewhere a couple of times, but I can't remember exactly where.
I would like to see how they work and look into the code.
It is also interesting, who will advise what about the library for writing, which one is better for such a purpose?
At the moment, I'm leaning towards writing on canvas without using libraries, but if there is a ready-made library with the ability to write this, it will be better.
You need to do something like this
OMaslEy.png
But with a gradient fill, for example, as in the figure
pS6GJ.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nicholas, 2016-02-24
@healqq

On d3.js, the pie chart is made in 25 lines. The plus is that everything is on svg, no canvases and other obscenity.
zeroviscosity.com/d3-js-step-by-step/step-1-a-basi... article on how to make a basic graph. As the article progresses, it is quite obvious how you can embellish / change the shape / colors.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question