O'Reilly logo

Java 9 Cookbook by Nick Samoylov, Mohamed Sanaulla

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Getting ready

I have collected the statistics from the one-day international cricket match between India and New Zealand held on October 26, 2016 (http://www.espncricinfo.com/series/1030193/scorecard/1030221). The data collected is the score and overs in progress during the fall of wickets during both New Zealand and India's innings. This data can be found in the file, chp9/9_scatter_charts/src/gui/com/packt/wickets. The data looks like the following:

NZ,0.2,0
NZ,20.3,120
NZ,30.6,158
NZ,40.5,204

In the preceding sample, each line of data has three parts:

  • The team
  • The over in progress during the fall of the wicket
  • Team score during the fall of the wicket

We will plot this data on a scatter chart and get an idea as to how the wickets fell ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required