From the course: Data Science for Java Developers
Unlock this course with a free trial
Join today to access over 22,600 courses taught by industry experts.
Challenge: Displaying data on a bar chart - Java Tutorial
From the course: Data Science for Java Developers
Challenge: Displaying data on a bar chart
- [Instructor] Okay. So now that we've seen a few examples of how to display data using JavaFX. We're going to do a challenge. The challenge for you now is just like we displayed a bar chart earlier that showed the average miles per gallon figures. Based on the number of cylinders that a car had, the challenge for you here is to display a very similar type of graph. But instead of dividing up the cars based on the number of cylinders, we're going to divide them up based on their origin. And just keep in mind that the origin figure, which you can see if you open up autompg.data. Is this second to last column here. And one stands for cars made by American based companies. Two signifies cars made by European based companies. And three represents cars that are made in Asian based companies. So this challenge should take you anywhere from five to about 10 minutes. And once you've had a try at it, feel free to move on to…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
Setting up JavaFX5m 38s
-
(Locked)
Formatting data for a scatterplot7m 55s
-
(Locked)
Displaying a scatterplot5m 22s
-
(Locked)
Multiple datasets on a scatterplot6m 35s
-
(Locked)
Calculating average MPG4m 46s
-
(Locked)
Displaying a bar chart4m 17s
-
(Locked)
Challenge: Displaying data on a bar chart1m 15s
-
(Locked)
Solution: Displaying data on a bar chart4m 8s
-
(Locked)
-
-
-