Groups
Groups
Sign in
Groups
Groups
d3-js
Conversations
About
Send feedback
Help
Grouped Bar Chart with Negative Values
49 views
Skip to first unread message
Chamver
unread,
Oct 15, 2017, 8:32:18 PM
10/15/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to d3-js
I have been trying to create a grouped bar chart with negative values, but I am unable to do so.
I already have some codes written but it would not render properly.
Here is what I have done so far:
https://codepen.io/trainingc/pen/yzqmvZ?editors=0010
I am looking at this code on stackoverflow:
https://stackoverflow.com/questions/16561226/grouped-bar-chart-with-negative-value-d3
And combining that with this template:
https://bl.ocks.org/mbostock/3887051
Appreciate the help that I could get thanks!
sandeep edara
unread,
Oct 17, 2017, 12:01:09 PM
10/17/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to d3-js
Hi Cham,
I dont see any issue with the code,
you can increase the inner padding to see the groups clearly.
var x0 = d3
.scaleBand()
.rangeRound([0, width])
.paddingInner(0.5);
Regards,
Sandeep.
Reply all
Reply to author
Forward
0 new messages