So, I'm a few days trying to create the visualizariojs for the statistics. I tried with qwt and qtcharts but I didn't managed to have anything that I liked, so I started today getting rid of it and actually using the same code that I did for the profile.
This way I can Taylor for what I want instead of being locked In the ugliness of qwt of the lack of options for qt charts. Currently in the qt charts branch I can plot correct data generating an incorrect graph And I can plot the coordinate system but no data yet on the profile based chart library. It was good to see that I managed to create an actual good library for the profile that I could detach and use for other unrelated graphs with minimal modifications. Today I'll probably be able to present something worth of your time. On Wed 19. Jul 2017 at 21:34, Willem Ferguson < [email protected]> wrote: > On 19/07/2017 18:45, Tomaz Canabrava wrote: > > Hey people, > > > > I'll have one week to work on subsurface because of Akademy, without > > work or wife interference :) > > So I really think I'll be able to do something good there. > > > > About the mockups - they are good for desktop but they don't take into > > account mobile. > > but I'll try to do that. > > > > Tomaz > Tomaz, > That would be great. There is one issue we discussed that was not > finalised, the number of bars in each of the histograms. You could > initially use a fixed scheme and I or someone else could adapt it > afterwards to be more flexible without UI intervention. Alternatively, > here is a (sort of) algorithm that is likely to work to calculate the > number of bars. Maybe you have your own ideas, then please ignore all of > this. > > # For each histogram: > # ------------------- > binvalue = {1.0, 2.0, 2.5, 5.0, 10.0, 20.0} > Find minimum and maximum values of data to be graphed > range = maximum-minimum > BinSize = binvalue with size just > (range/10) > # e.g. if (range/10 == 3) then BinSize = 5; > # with our testdata (range/10=5.6969) then BinSize=10 > Startvalue = largest multiple of BinSize just < minimum > > In case that my help you, I attach a LibreOffice spreadsheet that uses > this algorithm on a dataset of 54 values (the blue column). > Ignore the multiplier value. A histogram (red bars) representing these > values is also shown. Unfortunately LibreOffice does not place the > numbers below the graph in the correct places. > Basically this uses part of the calculations one would do anyway to draw > a histogram. Only difference is that we dynamically determine BinSize > and Startvalue based on the chracteristics of the data. > I attach an image if what that histogram should look like if all labels > were written correctly. The bars can be wider and touching or narrower > like in the attached jpg file. I personally prefer wider bars. > > I hope this is understandable. > > Kind regards, > willem > > > > > _______________________________________________ > subsurface mailing list > [email protected] > http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface >
_______________________________________________ subsurface mailing list [email protected] http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
