This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification 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
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

(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: 66258
250
  • 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: 66258
250
  • 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.
     
    Marshal
    Posts: 14388
    240
    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: 7271
    492
    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: 66258
    250
    • 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: 2408
    106
    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: 66258
    250
    • 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.`
     
    no wonder he is so sad, he hasn't seen this tiny ad:
    Java file APIs (DOC, XLS, PDF, and many more)
    https://products.aspose.com/total/java
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!