plotly / dash-table

OBSOLETE: now part of https://github.com/plotly/dash
https://dash.plotly.com
MIT License
419 stars 74 forks source link

Potential Bug concerning 'derived_virtual_row_ids' property of DataTable #824

Open ghost opened 4 years ago

ghost commented 4 years ago

I am using the 'derived_virtual_row_ids' property of DataTable to update the color of markers in my plot based on the filtering of a datable. I only want the color change after filtering if the number of remaining rows is smaller than in the unfiltered df, with 'size' being the number of rows of the unfiltered df. Hence I use the following code:

if len(row_ids) != size: for i in row_ids: colors[i] = '#7FDBFF'

This works fine but Dash is giving me following error: TypeError: object of type 'NoneType' has no len()

Edit: I should also mention, that the App itself works as expected.

sorenwacker commented 3 years ago

I have the same problem with derived_virtual_selected_row_ids. I have selected some rows, but this property always returns [None].

  - dash=1.18.1=pyhd8ed1ab_0
  - dash-bootstrap-components=0.11.1=pyhd3deb0d_0
  - dash-core-components=1.14.1=pyhd8ed1ab_0
  - dash-html-components=1.1.1=pyh9f0ad1d_0
  - dash-renderer=1.8.3=pyhd8ed1ab_0
  - dash-table=4.11.1=pyhd8ed1ab_0
    - dash-bio==0.5.0
    - dash-extensions==0.0.42
    - dash-tabulator==0.4.1