Full JS fiddle with data example is here: https://jsfiddle.net/ojrhn96y/2/ .
I have some data with two values: Achievement
and Balance
. I currently have created two text elements with dc.js that keep track of the average of both values. However, I'd like to have a bar chart with an x axis ['Achievement', 'Balance']
that then has [achievement_sum, balance_sum]
as its y values, with a bar for each metric.
How would I go about creating this type of a bar chart?
I have my average values, which are created using something like:
achievementAvg = achievement.groupAll().reduceSum(
function(d) {
return d.achievement;
}),
but am not sure how to assign each of these values to separate bars.