-
Notifications
You must be signed in to change notification settings - Fork 185
arc mark and pie transform #85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Awesome! 👍 |
Two conceptual difficulties:
|
…entages of the available radius arc tests
- sort: false; sortValues: false; - value: "value"
Just wanted to thank @Fil for the work on this mark, and share some small updates I made for a project where I needed validate election results: I found it useful to plot little pie charts on a county/race graph to help spot patterns in the errors (which were often related to one of the axises). I have a demo up here, and the specific changes I made are here. I'm not super familiar with the system yet (I was getting errors somewhere in the facet init), so I had to move the data_in.forEach(d => {
const completed = d.counted / d.official
const pie = d3.pie()([completed, 1 - completed])
data_out.push({
...pie[0],
...d,
})
}) I'd be happy to submit any changes, but I'm sure my code is full of ES6 errors - it's been a while since I've done this sort of development, and am trying to relearn some things! |
ref. #80
Todo:
test notebook https://observablehq.com/d/49758b3252c58f13