Forum Discussion

niketowns's avatar
niketowns
New Member
6 years ago

Changing Y-value dataset from dropdown selection for a graph figure

Hello!

 

I have the following sample dataset:

 
ProductAmount WaterAmount SugarAmount ZincDate Added
Pink Drink 0.0020.030.0017/31/2019
Blue Drink0.0040.10.0037/24/2019
Black Drink0.0010.330.016/25/2019
Blue Drink0.020.550.044/3/2019
Pink Drink 0.010.220.0071/2/2019
Blue Drink0.0220.660.00912/1/2019
Black Drink0.00110.870.0123/4/2019

On my dashboard, I have 2 initial selection criterias:

1. a dropdown selection of what product the user wants to focus on (Blue, Black, or Pink Drink)

2. a date range (data is selected from Date Added column)

 

I want to select the Y-value dataset from the middle 3 headers (Amount Water, Amount Sugar, Amount Zinc)

The X-values will be the date range selected above. 

 

Does anyone know how to create a dynamically changing figure where you cans select your Y-axis dataset columns from a dropdown selection? 

 

Thanks in advance!

2 Replies