I have added the idea of array initialization for the 'Process & handle count' chart. Let me know if similar can be used for all the streaming charts to resolve the graph shifting issue.
On Fri, 25 Aug 2023 at 13:34, Sahil Harpal <sahilharpal1...@gmail.com> wrote: > Hi Aditya, > On Fri, 25 Aug 2023 at 12:32, Aditya Toshniwal < > aditya.toshni...@enterprisedb.com> wrote: > >> >> On Fri, Aug 25, 2023 at 12:15 PM Sahil Harpal <sahilharpal1...@gmail.com> >> wrote: >> >>> Hi Aditya, >>> >>> On Fri, 25 Aug 2023 at 12:06, Aditya Toshniwal < >>> aditya.toshni...@enterprisedb.com> wrote: >>> >>>> Hi Sahil, >>>> >>>> On Fri, Aug 25, 2023 at 12:02 PM Sahil Harpal < >>>> sahilharpal1...@gmail.com> wrote: >>>> >>>>> Hi Aditya, >>>>> On Fri, 25 Aug 2023 at 11:29, Aditya Toshniwal < >>>>> aditya.toshni...@enterprisedb.com> wrote: >>>>> [image: image.gif] >>>>> >>>>>> Hi Sahil, >>>>>> On Thu, Aug 24, 2023 at 8:07 PM Sahil Harpal < >>>>>> sahilharpal1...@gmail.com> wrote: >>>>>> >>>>>>> Hi, >>>>>>> Can we include total space stats (left pie chart) in the same bar >>>>>>> chart? or would it be better if we keep it separate? >>>>>>> [image: image.png] >>>>>>> >>>>>> How do you propose to merge both? I would also suggest using a >>>>>> stacked bar chart on the right. And format from bytes to MBs. >>>>>> >>>>>>> [image: image.gif] >>>>>>> >>>>>> >>>>> Currently, I have implemented like this: >>>>> [image: image.png] >>>>> So, I was thinking of adding one more column for total space for each >>>>> disk. >>>>> Regarding the stacked bar chart, we will need to increase the height >>>>> of the default chart container; otherwise, the proportion of different >>>>> categories won't be clearly visible in some cases. >>>>> And I believe that if we use a stacked bar chart, there won't be a >>>>> need to provide total space details, as the height of that stacked bar >>>>> will >>>>> be nothing but the total space, right? >>>>> >>>> I don't think we'll need to increase the height though. Even if you use >>>> stacks, they will show total for each drive and not total available space. >>>> >>> >>> Ahh yes, users won't be able to see the absolute total value. So should >>> I change it to a stacked bar with 3 categories then? >>> >> I would suggest keeping the pie chart and making the stacks of used and >> unused. If possible please keep the pie chart colors different from bar >> chart. >> > Ok, sure I'll do it. > > On Fri, 25 Aug 2023 at 11:56, Aditya Toshniwal < > aditya.toshni...@enterprisedb.com> wrote: > >> Hi Sahil, >> Can you please share the rebased patch? >> > Please find the attached patch with recent changes. It doesn't include > this stacked bar, but it contains things suggested in the second review, > and I also tried to resolve the tooltip issue. Let me know if it's working > correctly. > I have also pushed these changes here: > https://github.com/Sahil1479/pgadmin4/tree/system_stats [Branch: > system_stats] > > I will share the final patch with a detailed summary of all the things > that have been changed once I complete this stacked/pie chart and a few > more refinements. > > Thank you, > Sahil >