Ask coding questions

← Back to all posts
How do we make bar chart with data inside Java language on repl.it?
IliyanAli (0)

I need to make it for learning purpose

Comments
hotnewtop
InvisibleOne (3226)

What do you mean by bar chart? Something in the console or an actual display window, because if it's something in the output you could always just

System.out.println("          ")
System.out.println("          ")
System.out.println("          ")
System.out.println("  #       ")
System.out.println(" ##     # ")
System.out.println("###   ##  ")

do something like that if you get the idea.

IliyanAli (0)

@InvisibleOne like actual bar graph that displays info. Not like you did above. I did some research and came across JavaFx but i dont know how that works on repl.it. Thank you

InvisibleOne (3226)

I don't remember if the Java has an output window, I don't know if you can. @IliyanAli

IliyanAli (0)

@InvisibleOne I think we have to use Java Swing. but i am new so i dont know. if you do please tell me. I appreciate your help