N
N
Nikolay2014-09-11 21:00:44
API
Nikolay, 2014-09-11 21:00:44

How to insert an image into title json(Chrome)?

<html>
  <head>
    <script type="text/javascript" src="https://www.google.com/jsapi"></script>
    <script type="text/javascript">
      google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {

  var data = google.visualization.arrayToDataTable([
    ['Day', 'Sales'],
    ['11.09.2014',  1000],
    ['12.09.2014',  1170],
    ['13.09.2014',  660 ],
    ['14.09.2014',  1030]
  ]);

  var options = {
    title: 'Company Performance',
    hAxis: {title: 'Day', titleTextStyle: {color: 'red'}}
  };

  var chart = new google.visualization.ColumnChart(document.getElementById('chart_div'));

  chart.draw(data, options);

}
    </script>
  </head>
  <body>
    <div id="chart_div" style="width: 900px; height: 500px;"></div>
  </body>
</html>

Instead of "Company Performance".

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Max, 2014-09-11
@AloneCoder

As far as I understand, out of the box - no way, and why - because there is not html, but SVG

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question