How to color dc js scatter plot according to the column value

老子叫甜甜 提交于 2019-12-10 12:08:01

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!