You are viewing a single comment's thread from:

RE: Tutorial #2 G2 (The Grammar of Graphics) - Create Pie Chart

in #utopian-io8 years ago

Your contribution cannot be approved because it does not follow the Utopian Rules.

Explanation: again, you didn't explain anything just dropped in code.

For example:

Use coord to set the Cartesian coordinate that we will use. There are four types of coord: rect, polar, theta, and helix. For circular graphs we will use the theta coord type.

^^^ Why use theta? What do all these four coordinate types do?

And:

Instead of interval we will use intervalStack for circular graphs.

^^^ Why? What does interval() do? What does intervalStack() do?

Other than this, you again just imported the g2.js CDN in your <head> section, dropped in a dummy data array (that's fine), instantiated a G2.Chart() object and dropped in the data.

You can contact us on Discord.
[utopian-moderator]