Questions tagged [d3py]

d3py ia a plotting library for python based on d3. The aim of d3py is to provide a simple way to plot data from the command line or simple scripts into a browser window.

The aim of d3py is to provide a simple way to plot data from the command line or simple scripts into a browser window.

d3py accomplishes this by building on two excellent packages. The first is d3.js (Mike Bostock), which is a javascript library for creating data driven documents, which allows us to place arbitrary svg into a browser window. The second is the pandas Python module (Wes Mckinney), which blesses Python with (amongst other things) the DataFrame data structure.

The idioms used to plot data are very simple, and borrow from R's ggplot2 (Hadley Wickham) and Python's matplotlib (John Hunter et al).

5 questions
2
votes
1 answer

How to apply column names to a pandas Series created via DataFrame.value_counts()

I have the following pandas Series (which is actually the output of running value_counts() on a certain column - "Tipo de vivienda" - of a DataFrame: With visualizaion libraries such as Seaborn, Bokeh etc. I can form a bar chart directly on this…
Pyderman
  • 14,809
  • 13
  • 61
  • 106
2
votes
1 answer

IO Error in d3py example code -- no such file or directory: 'static/d3.js'

I am trying to run through the d3py example code available in the d3py readme file (see link below), and am receiving the following error: https://github.com/mikedewar/d3py/blob/master/README.md (python 2.7.3 on 32-bit Windows) >>> # instantiate the…
baha-kev
  • 3,029
  • 9
  • 33
  • 31
1
vote
3 answers

How to plot graphs using networkx and d3py

I am trying to visualize graphs generated from networkx, using d3py. I used the example provided (https://github.com/mikedewar/d3py/blob/master/examples/d3py_graph.py) but all I get is the graph without node names, how do I plot node names as well?…
etzourid
  • 331
  • 4
  • 18
1
vote
0 answers

D3py multiple graphs in same output

I would like to know how I can obtain multiple graphs as output on a single html page using d3py. I have been working with some of the examples in https://github.com/mikedewar/d3py, but when I try to get 2 or 3 graphs in a single output html file,…
user1992696
  • 179
  • 1
  • 3
  • 10
1
vote
0 answers

Alluvial or Sankey diagram generated with Python, using d3py?

I'd like to create a Sankey or alluvial diagram using d3py, d3.js, and its sankey.js plugin, but I don't know how to reach this JavaScript library and the plugin from d3py. Can someone get me started here?
reckoner
  • 2,861
  • 3
  • 33
  • 43