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

A way to pass non JSON-serializable arguments in rendererOptions ? #62

Closed Noctevent closed 3 years ago

Noctevent commented 3 years ago

Hi ! I am trying to alter the name/value of the C3 tooltips generated in my graphs. This would be done by renderer option tooltip.format.name. The C3 doc allows the use of a JS function that returns a formatted name. I have tried setting this option to different values (stringified JS function, string literal) and none have affected the way my tooltips show. A great feature would be to be able to pass a Python callable, or a stringified JS function to drive those types of options. I have no idea if this is feasible without breaking your current implementation though. Cheers !

nicolaskruchten commented 3 years ago

It's unfortunately definitely not going to be possible :)

Noctevent commented 3 years ago

Yes I suspected your Python wrapper would be unable to do that by design, but it never hurts to ask ! Your library is already feature-rich as is, thanks for your answer. Cheers !