Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ source = ColumnDataSource(data=data)
|
|
24 |
|
25 |
|
26 |
# Create a color mapper with reversed palette
|
27 |
-
color_mapper = linear_cmap(field_name='id', palette=Viridis256[::-1], low=0, high=
|
28 |
|
29 |
# Create the figure
|
30 |
p = figure(title="Scatter Plot with Image Hover", tools="hover", tooltips="""
|
|
|
24 |
|
25 |
|
26 |
# Create a color mapper with reversed palette
|
27 |
+
color_mapper = linear_cmap(field_name='id', palette=Viridis256[::-1], low=0, high=len(data['id']))
|
28 |
|
29 |
# Create the figure
|
30 |
p = figure(title="Scatter Plot with Image Hover", tools="hover", tooltips="""
|