-
Notifications
You must be signed in to change notification settings - Fork 9
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
Pie chart feature #3
Conversation
(d3-attr 'y' (pipe outputAccessor yScale)) | ||
(d3-attr 'height' (pipe outputAccessor yScale (bar-height height))) | ||
) | ||
enter=(pipe |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you please revert the changes to this file? they shouldn't be in this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, will resolve in the next commit
addresses #13 |
|
||
export function emberSparklesArc([ radius ], textLabel=false) { | ||
if (textLabel === true){ | ||
return arc().outerRadius(radius - 40).innerRadius(radius - 40); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we will want to pass outerRadius
and innerRadius
arguments to this helper instead of hardcoding their inputs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this means we will be able to remove the if (textLabel...)
part (since the arguments will be different depending on whether these are text labels or not)
@taras can you review this PR please? The pie chart is fully functional now |
|
||
this.setProperties({ data, domain }); | ||
|
||
assert.equal(this.$('path').length, 4, 'There are the correct number of arcs after the data is updated'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know that checking the data bound to each arc is very hard to do - instead, can you also check the arc percentages as a proxy for this?
I get this error when I click around the pie chart. I did some googling. It looks like you need a custom tween for this. http://stackoverflow.com/a/21287079/172894 |
Looks great! |
closes #3 |
…h-pages * 'master' of github.com:LocusEnergy/ember-sparkles: (88 commits) Released v0.4.7 Pie chart feature (#3) Removed use of map and d3-get (#19) Reactive helpers (#18) Released v0.4.6 removes unused code Released v0.4.5 sets up demo site (#17) updates node version fixes CI config upgrades ember-cli, adds ember-cli-eslint Released v0.4.4 adds ember-cli-release config adds ember-try Released v0.4.3 uses v0.9 of ember-cli-d3-shape and v0.5.1 of ember-d3-helpers (#15) 0.4.2 Refines axis filter, makes vertical axis label responsive (#16) 0.4.1 filters ticks based on integer input (#14) ...
No description provided.