title: How to display currency on Google charts line chart?
body: <p>I am trying to display currency as the Y axis data in a Google API line chart:</p>
  
  <p><a href="https://i.stack.imgur.com/c3dMQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/c3dMQ.png" alt="Google line chart example"></a></p>
  
  <p>In the Y axis, I want the numbers to be shown as $0.00, $4.00, $8.00, $12.00, $16.00.</p>
  
  <p>Here is the code I'm using to populate the chart:</p>
  
  <pre><code>function drawDailySales() {
  
          var data = google.visualization.arrayToDataTable([
  
              ['Date', 'Daily Sales'],
  
              &lt;?php foreach ($daily_sales as $date =&gt; $sales) {
  
                  echo "['".$date."', {v: ".$sales['Amount'].", f: '$".number_format($sales['Amount'], 2, '.', ',')."'}],";   
  
              } ?&gt;
  
              ]);
  
              var options = {
                  title: 'Daily Sales',
                  legend: { 
                      position: 'bottom' 
                  }
  
              };
  
          var chart = new google.visualization.LineChart(document.getElementById('daily_sales'));
  
          chart.draw(data, options);
  
      }
  </code></pre>
  
  <p>This works on the tooltip that displays when the mouse is hovered over a point on the chart, but it doesn't display as currency in the Y axis on the chart.</p>