Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

(Time) Bar Graphing

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

I need to present some numbers in the company where I work, and a video in question caught my attention by the way these numbers are approached, follow the video link: https://www.youtube.com/watch?v=a3w8I8boc_I

I don't know much about Java and programming in general, so please kindly don't swear at me so much, lol, but finally, they informed me that it was some software, but other people said it was JavaScript, so I would like the opinion of you, is it Java or not? Through Java, can I do the same as video or simulate?

Thanks !
 
Marshal
Posts: 70692
288
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I merged your stuff with the following thread. I hope that is okay by you.
 
Campbell Ritchie
Marshal
Posts: 70692
288
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

You cannot tell by watching the animation what program was used to produce it. It is however most unlikely to be programmed in Java® because few browsers support Java® in the 2nd decade of this century. It is of course possible to guess the techniques probably used to program the display:-
  • 1: A link to a database with all the numbers in.
  • 2: Some means of making the display and the numbers change with time. A java.desktop/javax.swing.Timer would work; you might set it to “fire” once every 25ms (40× per second) or maybe a little faster to give a nice smooth display.
  • 3: Some way to make bars of different lengths depending on the numbers you are displaying.
  • 4: Sorting the numbers so the largest bar is on top. (That probably means sorting the numbers backwards, which is hardly more difficult than sorting the numbers the normal way.)
  • Although none of those tasks is particularly difficult on its own, and you can design a Swing® desktop app to display all your figures, you should consider how long it would take you to learn the techniques and whether you have the time available for that exercise. You would probably learn lots of programming if you create a good program to show such an animated display.
    It is also possible to use a presentation/PDF creator program to create an animated PDF; you can even specify the time it takes for the bars to move. But you might have to define the bars and their movement by hand.
     
    Sheriff
    Posts: 15944
    265
    Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    1. As Campbell said, there's really no indication what programming language was used to produce that kind of display. It could have been either Java or JavaScript, a combination, or something else altogether.

    2. If you have never programmed before, doing something like that is going to be quite the challenge for you, not unlike an inactive, non-athletic person thinking of running the Boston Marathon next month. That would be a pretty good challenge for any experienced programmer. It's quite a piece of work shown in that video. Lots of technical challenges, not the least of which was to get that kind of visualization effect.
     
    Marshal
    Posts: 7791
    536
    Mac OS X VI Editor BSD Linux
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    @OP

    I'd say use Microsoft Word or Powerpoint, they should have some charts templates. When I was in a secondary school I'm sure they had. So using those should be fairly easy to create something similar. Just wouldn't be animated perhaps.
     
    Campbell Ritchie
    Marshal
    Posts: 70692
    288
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    I am pretty sure you can animate that sort of template. You can set up a transition from a bar representing 100,000 to one representing 115,000 whereby the bar gets 15% longer and moves up one level over the course of maybe 0.8″. I have used the OpenOffice/LibreOffice counterpart (??Impress??) to do that.
     
    Bartender
    Posts: 2702
    130
    Google Web Toolkit Eclipse IDE Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Also keep the possibility that perhaps the video creator has not used any bar graphing tool at all This could be well made as a standalone animation using tweens for the intermediate steps.
    In the past, Adobe Flash could make such animations. I dont know what's the current buzz in the market. If browsers are your prime platform, then you can look into javascript libraries that achieve such effects.

    As a side note, that video is nearly 10 minutes long. If you are presenting this as a visualization, keep your audience in mind. If you want them to see your presentation offline, then spending time into making something like this makes sense. However, if you are giving a live presentation with some talking points, you'll find it very difficult to keep up with an on-going video.
     
    Campbell Ritchie
    Marshal
    Posts: 70692
    288
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator

    salvin francis wrote:. . . difficult to keep up with an on-going video.

    It is possible; I have done it, but with much simpler things (representations of parsers) and I had to be very careful about the timings.`
     
    My honeysuckle is blooming this year! Now to fertilize this tiny ad:
    Thread Boost feature
    https://coderanch.com/t/674455/Thread-Boost-feature
    reply
      Bookmark Topic Watch Topic
    • New Topic