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

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…

Contents