plotly / dash-table-experiments

NO LONGER SUPPORTED - use https://github.com/plotly/dash-table instead
MIT License
174 stars 57 forks source link

Subplot sort breaks if x axis is number #54

Open DaveAndersonQA opened 6 years ago

DaveAndersonQA commented 6 years ago

If the values used as the x axis in subplots are numbers, then the table sort is not reflected in the subplots.

Attached are two files which are the bare minimum to repro the issue.

The CSV file is a copy of https://raw.githubusercontent.com/plotly/datasets/master/gapminderDataFiveYear.csv which I downloaded and replaced the country names with a series of numbers.

usage_issue.py is the same as the one from the dash-table-experiments repo except for one change only: lines 18-20 which load the aforementioned CSV from the plotly datasets are commented out and a line is added to load the modified CSV from the local disk.

To reproduce:

Place the two attached files into an empty directory. Run usage_issue.py. Observe that when the table is sorted the subplot graphs do not update. modify usage_issue.py to use the CSV from githubusercontent Run usage_issue.py. Observe that when the table is sorted the subplot graphs DO update as expected.

Repro_Issue.zip