Replies: 2 comments 2 replies
-
As far as roughjs is concerned for rendering, i'd say use the for example (codepen: https://codepen.io/shihn/pen/OJjBaOd): rc.arc(350, 300, 200, 200, Math.PI, Math.PI * 1.6, true);
rc.arc(350, 300, 200, 200, 0, Math.PI / 2, true, {
fill: 'rgba(255,255,0,0.4)',
fillStyle: 'solid'
});
rc.arc(350, 300, 200, 200, Math.PI / 2, Math.PI, true, {
fill: 'rgba(255,0,255,0.4)'
});
rc.arc(350, 300, 200, 200, Math.PI * 1.6, Math.PI * 2, true, {
fill: 'orange',
fillStyle: 'cross-hatch'
}); will render: Regarding selection of colors, the simplest solution would be to cycle through a standard palette. |
Beta Was this translation helpful? Give feedback.
1 reply
-
As well, should I create an issue for this feature request? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I'm absolutely amazed by the copy/paste charting feature, and my girlfriend uses it to generate quick charts for presentations. I wanted to help her by creating the option to also generate pie charts.
I can implement it but based on past discussions it looks like there are several challenges (i.e. unique colors). I was wondering if anyone already has tips, ideas and ways to build these pie charts - I think it would be a useful chart option to add:)
Beta Was this translation helpful? Give feedback.
All reactions