title: How do I show data other than the chart points (x, y) in a Marker?
body: <p>I have figured out how to modify the text and x, y values that appear in a marker, but I can't figure out how to show other data in the marker.</p>
  
  <p>Here's my marker currently:</p>
  
  <p><a href="https://i.stack.imgur.com/Ql4IL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ql4IL.png" alt="enter image description here"></a></p>
  
  <p>Instead of the x and y values, I want to show two values that were used to calculate the y value:</p>
  
  <p>"5 reps @ 200 lb" </p>
  
  <hr>
  
  <p><strong>Update:</strong> In other words, the point being shown on the chart is 233.3 (the y value). But I need to make the label display the 5 and the 200 that were used to calculate the result of 233.3 that is the point on the chart.</p>
  
  <hr>
  
  <p>It looks like I would use <code>func refreshContent(entry: ChartDataEntry, highlight: Highlight)</code> but this takes a <code>ChartDataEntry</code> and the values I want to show are <em>not</em> data points (ChartDataEntry).  </p>
  
  <p>I've looked through all the Issues on the Github project and the closest thing I could find to a solution was <a href="https://github.com/danielgindi/Charts/issues/954" rel="nofollow noreferrer">this thread</a>, but the answer doesn't really help a beginner level developer.</p>
  
  <p>Can someone educate me about how to display non-data point data in a marker?</p>
  
  <p><strong>Update</strong>: Thanks to @RazibMollick for directing me to the solution which was to use the <code>ChartDataEntry</code> initializer that takes an additional argument ( <code>ChartDataEntry(x:y:data:)</code> ) in my <code>generatedLineData</code> method:</p>
  
  <pre><code>let numberFormatter = NumberFormatter()
  let repetitions = numberFormatter.string(from: liftEvents[index].repetitions)
  let weightLifted = numberFormatter.string(from: liftEvents[index].weightLifted)
  let liftData = LiftData(repetitions: repetitions!, weightLifted: weightLifted!)
  
  return ChartDataEntry(x: (thisDateInSeconds! - beginningDateInSeconds) / (3600.0 * 24.0), y: yValue, data: (liftData as AnyObject))
  </code></pre>
  
  <p>And in <code>refreshContent(entry:highlight)</code> I now have this:</p>
  
  <pre><code>open override func refreshContent(entry: ChartDataEntry, highlight: Highlight)
  {
      let unit = UserDefaults.weightUnit()
      let liftData = entry.data as! LiftData
      setLabel(String(format: "%@ reps @ %@ \(unit)", liftData.repetitions, liftData.weightLifted))
  }
  </code></pre>
  
  <p>Now I have this:</p>
  
  <p><a href="https://i.stack.imgur.com/o28A9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/o28A9.png" alt="enter image description here"></a></p>
  
  <p>Now if I can just get those corners on the <code>BalloonMarker</code> to be rounded...</p>