title: iOS Charts ValueFormatter
body: <p>I am using iOS charts plugin (line chart) and wish to style the chart values (the number above each point) to a decimal number.</p>
  
  <p>The value is a double, but charts by default is rounding it and displaying it as an integer.</p>
  
  <p>I have tried the following but not working:</p>
  
  <pre><code>    let valueformatter = NumberFormatter()
      valueformatter.numberStyle = .decimal
      valueformatter.locale = Locale.current
      lineChartDataSet.valueFormatter = valueformatter as? IValueFormatter
  </code></pre>
  
  <p>I have tried various other properties but non of them change the format of the number in the dataset.</p>
  
  <p>How can I change the format of the displayed number?</p>