#openobserve

Pie Chart Selection Issue on OpenObserve Dashboard

TLDR Shashank reports a dropdown selection issue related with pie chart on OpenObserve Dashboard. Kirtan confirms this behavior and asks him to create an issue. West suggests to add "ALL" option to dropdown. Issue link shared by Shashank.

Powered by Struct AI

1

Oct 30, 2023 (1 month ago)
Shashank
Photo of md5-a830a209ddc7244eb2f35531dcf20752
Shashank
06:32 AM
HI Team, I am trying to plot a pie in openobserve dashboard. Here I am using a variable called test and reference to this variable is also present in my custom query. Now when I select some values from the dropdown, I am getting the expected result, but there is no option to unselect test again once some value is selected from dropdown. Example initially pie(p1) loads, now I select some value of test from dropdown and updated pie(p2) gets loaded, now there is now way to load pie(p1) again !! Can someone pls help me with the scenario ?
Image 1 for HI Team, I am trying to plot a pie in openobserve dashboard. Here I am using a variable called test and reference to this variable is also present in my custom query. Now when I select some values from the dropdown, I am getting the expected result, but there is no option to unselect test again once some value is selected from dropdown. Example initially pie(p1) loads, now I select some value of test from dropdown and updated pie(p2) gets loaded, now there is now way to load pie(p1) again !! Can someone pls help me with the scenario ?
Kirtan
Photo of md5-4a36c3bc25964c64330a5747ba443346
Kirtan
06:48 AM
Hi, so what all values are there in the dropdown? When initially pie p1 loads, what is the value of your dropdown? currently there is no way to unselect any value. any one value will be selected at all the time.
Shashank
Photo of md5-a830a209ddc7244eb2f35531dcf20752
Shashank
06:51 AM
Initially when it(P1) loads test has 3 values in list DEMO, PROD & STAGE. When I chose DEMO its giving me right value, but again when I want to load for all i.e; DEMO, PROD & STAGE I am not able to do so.
Kirtan
Photo of md5-4a36c3bc25964c64330a5747ba443346
Kirtan
06:58 AM
Yes that will not work. As clearing the value should also remove that AND condition from the query. so that is currently not possible. In this case we need to dynamically add or remove the condition from the where clause from the query. Can you please create an issue for the same?

1

West
Photo of md5-b709b3903f1ba9d85f54fade78bd9aa7
West
08:01 AM
Kirtan, I think dropdown should have default option "ALL" so that users can skip filtering and can get complete data by selecting "ALL" option
Kirtan
Photo of md5-4a36c3bc25964c64330a5747ba443346
Kirtan
08:47 AM
Yes that requires the query to be altered with all option. We will look into this
Nov 23, 2023 (1 week ago)