dc.js - multiple lineChart based on separate categories in single csv file
问题 For example if I have the following csv file: category, number, total A,1,3 A,2,5 A,3,1 B,1,4 B,2,6 B,3,1 C,1,5 C,2,2 C,3,4 I was able to follow the following example and separate out the data into different csv files and composing each one. github link However, I was wondering how would I recreate the same lineCharts if I were to only have a single csv file and separate each lineChart by each grouped category. Thanks. 回答1: @minikomi's answer is the straight d3 way to do this. The dc.js