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

My Jupyter document does not have the sort arrows on the bar chart #24

Closed y2kbowen closed 7 years ago

y2kbowen commented 7 years ago

I am using the jupyter_pivottablejs on my document and following along with the examples, but my notebook does not render the sort arrows like the examples. Am I missing something? missingsortarrows

I was looking for the arrows like the picture below: sortarrowsexpected

nicolaskruchten commented 7 years ago

Ah yes, jupyter_pivottable uses version 1.6.3 of PivotTable.js, but the sorting UI was introduced in 2.11 so I will need to update jupyter_pivottable. I'll try to do this in the next couple of days.

y2kbowen commented 7 years ago

Is all that needs to be done is change the version numbers in these script links or do other links in the template need updates as well?

For example:

<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pivottable/1.6.3/pivot.min.js"></script>

And replace like this

<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pivottable/2.11.0/pivot.min.js"></script>

And the same for these:

` src="https://cdnjs.cloudflare.com/ajax/libs/pivottable/1.6.3/pivot.min.js">

    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pivottable/1.6.3/c3_renderers.min.js"></script>
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pivottable/1.6.3/export_renderers.min.js"></script>

`

nicolaskruchten commented 7 years ago

It's something like that, yep :)

On Tue, Apr 25, 2017 at 11:07 AM, KenB notifications@github.com wrote:

Is all that needs to be done is change the version numbers in these script links or do other links in the template need updates as well?

For example:

And replace like this

And the same for these:

src="https://cdnjs.cloudflare.com/ajax/libs/pivottable/1.6.3/pivot.min.js"> <script type="text/javascript" src="https://cdnjs.cloudflare. com/ajax/libs/pivottable/1.6.3/c3_renderers.min.js"> <script type="text/javascript" src="https://cdnjs.cloudflare. com/ajax/libs/pivottable/1.6.3/export_renderers.min.js">

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/nicolaskruchten/jupyter_pivottablejs/issues/24#issuecomment-297060800, or mute the thread https://github.com/notifications/unsubscribe-auth/AAMbA-X9erl4xPsInbmxSLbvVk2_QgG0ks5rzgxCgaJpZM4NCUOA .

nicolaskruchten commented 7 years ago

Sorry for the delay on this, but I've just pushed a new version of this package to PyPi so you should be able to reinstall it with pip install pivottablejs and get the features you're looking for. You'll also get some new aggregators like Median and Sample Variance, which is what I was waiting to finish before pushing this new version :)