I have a table.
year,continent,state,export_value,import_value,all
2013,Африка,Angola,94061754,220518.54,94282272.54
2013,Африка,Burundi,4136818,1239175.91,5375993.91
2013,Африка,Benin,3251643.49,65421.6,3317065.09
I need to make a pie chart enter image description here using dc.js
Problem at this point code.
impexDim = ndx.dimension(function (d) {return ((d.export_value > 0 ? 'Export' : 'Import')
&& (d.import_value > 0 ? 'Import' : 'Export')) ;}),
groupeimpexDim = impexDim.group().reduceSum(function(d) {return +d.all}),
How to combine columns export_value and import_value?
--
You received this message because you are subscribed to the Google Groups "dc-js user group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dc-js-user-gro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dc-js-user-group/2ef4cdd1-721e-43b4-93db-5064e683cc0b%40googlegroups.com.