nicolaskruchten / jupyter_pivottablejs

Drag’n’drop Pivot Tables and Charts for Jupyter/IPython Notebook, care of PivotTable.js
http://nicolas.kruchten.com/content/2015/09/jupyter_pivottablejs/
Other
687 stars 88 forks source link

Growing/resizing the chart area #25

Closed gstiller5 closed 7 years ago

gstiller5 commented 7 years ago

I have a lot of data with long names and I would like to do something like #627 (in the other repository) where the chart area was grown. The difference is I am using python for this project. What argument do I need to pass in Python similar to "rendererOptions: { c3: { size: {width: 600, height: 600} }" in JavaScript? Is this possible in python? (I am new to python and JavaScript)

My other option for getting the data to display on the line chart correctly is to remove the legend at the bottom of the chart. Again, how would this be done in python and/or is it possible?

Thanks Griffin

nicolaskruchten commented 7 years ago

Pretty much exactly as you had it :)

pivot_ui(df, rendererOptions={"c3": {"size": {"height": 600, "width": 600}}})
gstiller5 commented 7 years ago

You are the man. Thanks for the speedy response!