From 495adedb04c05444187da8a35f2d57966467010c Mon Sep 17 00:00:00 2001 From: Lucy Park Date: Wed, 30 Jan 2013 01:35:23 +0900 Subject: [PATCH] Fix error in 'bar' example - Error message:"Uncaught TypeError: Object function h(a){return e(a)} has no method 'rangeBand'" - Patch: Replace 'Figure' with 'PandasFigure' --- examples/d3py_bar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/d3py_bar.py b/examples/d3py_bar.py index 49712e5..bda8e4d 100644 --- a/examples/d3py_bar.py +++ b/examples/d3py_bar.py @@ -18,10 +18,10 @@ p += d3py.xAxis(x = "apple_type") p.show() -# if you are writing in a terminal, use without 'with' to keep everything nice +# if you are writing in a terminal, use without 'with' to keep everything nice # and interactive """ -p = d3py.Figure(df) +p = d3py.PandasFigure(df) p += d3py.Bar(x = "apple_type", y = "count", fill = "MediumAquamarine") p += d3py.xAxis(x = "apple_type") p.show()