问题
I am trying to get a scatter plot using dc.js. From my csv data file, following scatter plot attributes are assigned: size of bubble --> No. of sessions, xaxis --> Average time on page, yaxis --> Bounce rate, number of bubbles --> Sources I also want the colors of bubbles to be decided using another column from the csv file. Colors --> source category. (Source category is the category of the sources. SO there are 8 categories currently in my data file and therefore i need 8 colors.
Also i need the legends for those 8 colors.
Which dc.js function am i suppose to use to achieve the same?
来源:https://stackoverflow.com/questions/26060337/how-to-color-dc-js-scatter-plot-according-to-the-column-value