D3.js 如何使用dc.js以何种格式显示数据

D3.js 如何使用dc.js以何种格式显示数据,d3.js,dc.js,D3.js,Dc.js,我正在使用Dimensional Charting javascript库dc.js制作一个图形,它基于d3和交叉过滤器。我是dc.js库的新手。我正在尝试使用django framework for python显示图形。我正在使用dataforamat csv。csv的格式如下。我搞不清楚显示的数据是以piechart、rowchart、barchart、bubble chart格式显示的 Name,Date,Word,Word_count The Telegram,2014-04-02,P

我正在使用Dimensional Charting javascript库dc.js制作一个图形,它基于d3和交叉过滤器。我是dc.js库的新手。我正在尝试使用django framework for python显示图形。我正在使用dataforamat csv。csv的格式如下。我搞不清楚显示的数据是以piechart、rowchart、barchart、bubble chart格式显示的

Name,Date,Word,Word_count
The Telegram,2014-04-02,Panag,1
The Telegram,2014-04-02,rule:,1
The Telegram,2014-04-02,Story,1
The Telegram,2014-04-02,U.P.,1
The Telegram,2014-04-02,leaders,1
The Telegram,2014-04-02,Mumbai,1
The Telegram,2014-04-02,Union,1
The Telegram,2014-04-02,Dimple,1
The Telegram,2014-04-02,Drivers,1
The Telegram,2014-04-02,Tennis,1
The Telegram,2014-04-02,son,1
The Telegram,2014-04-02,Style,1
The Telegram,2014-04-02,Anantnag,1
The Telegram,2014-04-02,Golf,1
The Telegram,2014-04-02,Chess,1
The Telegram,2014-04-02,cook,1
The Telegram,2014-04-02,u.p.,1
The Telegram,2014-04-02,best-seller,1
The Telegram,2014-04-02,Arts,1
The Telegram,2014-04-02,Interview,1
The Telegram,2014-04-02,Jaha,1
The Telegram,2014-04-02,Mehboob,1
The Telegram,2014-04-02,Other,1
The Telegram,2014-04-02,Hollywood,1
The Telegram,2014-04-02,Week,1
The Telegram,2014-04-02,Modis,1
The Telegram,2014-04-02,Life,1
The Telegram,2014-04-02,TV,1
The Telegram,2014-04-02,Delhi,2

我不确定问题是什么,但是除了生成您提到的csv之外,您不需要在dc.js上使用django。其余部分完全在浏览器中

如果要过滤数据,需要对数据进行预处理,将字符串日期转换为javascript日期,例如,将其用作折线图上的X轴

对于dc提供的各种图表,您可以查看以下文档: