Statistics

Started by Mario, April 12, 2017, 08:51:59 PM

Previous topic - Next topic

Mario

I had used an older version of the D3.JS Statistics & Visualization JavaScript library in a sample app for IMatch 5.

For IMatch 2017, I've made a few tests with the latest version of D3 and decided to use it for a test app. IMWS offers a number of statistic and grouping endpoints, and testing these in a useful app is more fun. I found a small glitch right away, with ACL processing for the /folder endpoint. Already worth the effort!

D3 makes it quite easy to produce "charts" and visualizations for arbitrary data. The small app I wrote uses this to give users access to statistics like "Which of my folders take up most disk space", "Which categories are the largest", "Which keywords do I use most" or "Which camera models did I use and how many files did I take with each camera".

Similar statistics are available in the IMatch Statistics panel, but this cannot work in a browser or with a remote database. The new App can! I will be able to use the code for IMatch WebViewer in a future version as well :-)

This is how the app looks:



-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

BanjoTom

I can hardly wait for IMatch 2017!  This  looks GREAT!
— Tom, in Lexington, Kentucky, USA

Mario

Yeah. Testing is part of the release cycle. Lots of new stuff in IMatch 2017 and I make sure that everything works as good as possible.

What I find particularity interesting is the performance we can achieve with the new scripting. Much faster than Basic ever was.

I tested the Statistics app with a 350,000 files database, with thousands of folders and over 12,000 categories.
The chart takes between 0.5 (Top 50 folders) and ~ 2 seconds (Files per camera model) to build. This means not only performing the selection in IMWS, but also transferring the data into the browser, running the JavaScript to process, sort and cut-off the data and the time to create and render the chart.

This will be a good platform to develop new and exciting features for IMatch indeed  :)

And the best thing is: It will also work with an IMWS running on a remote computer. Over a network or even over the Internet. Yippee!
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook