title: Plotting Line Graph with JSON data, Android
body: <p>I'm total beginner in Android development and I'm doing app for class. My assigment is to display JSON data in application as text and graphs. I'm using Retrofit 2 to display it as text in one activity, but I'm having problems with graphs, I don't know how to do it (I'm still learning, everything I've done so far was with help from tutorials).</p>
  
  <p>The data looks like this (this is an example):</p>
  
  <pre><code>{
  "id": 1,
  "measurements": [{
      "time": "18:25:43",
      "value": 25.4
  },
  {
      "time": "18:35:43",
      "value": 27.3
  },
  {
      "time": "18:45:21",
      "value": 26.3
  },
  {
      "time": "18:55:43",
      "value": 25.2
  },
  {
      "time": "19:05:43",
      "value": 25.2
  },
  {
      "time": "19:15:43",
      "value": 25.2
  },
  {
      "time": "19:25:43",
      "value": 24.9
  }]
  }
  </code></pre>
  
  <p>I've found <a href="https://github.com/jjoe64/GraphView-Demos/blob/master/app/src/main/java/com/jjoe64/graphview_demos/examples/SimpleLineGraph.java" rel="nofollow noreferrer">this</a>, but I'm not sure what to do next. Should I make two array lists with data(if that's the answer, how to do that?), or there's better solution that directly takes time and value and plots graph with time as X-axis and value as Y-axis.</p>