There's no support in the API for this. Probably the best you can do is
try to overlay images on the chart, but positioning them can be quite
difficult.
On Wednesday, April 24, 2013 6:20:29 PM UTC-4, Tabias Pittman wrote:
>
> Before I begin, I want to say that I am very new to Google's Graph API.
> I want to be able to add dynamic icons to my line graph that would display
> the wind direction. I've looked up how to do it, and I know it's possible.
> But I don't know how to implement the
> code in my script. Could someone please take a look at my code and tell me
> how I would go about this?
>
> <script type="text/javascript">
> function Wind() {
> // Create and populate the data table.
> var data = google.visualization.arrayToDataTable([
> ['Time', 'Wind Speed'],
> ['15:45', <?php echo $wind_speeds[54]?> ],
> ['18:00', <?php echo $wind_speeds[63]?> ],
> ['20:15', <?php echo $wind_speeds[72]?> ],
> ['22:30', <?php echo $wind_speeds[81]?> ],
> ['0:45', <?php echo $wind_speeds[90]?> ],
> ['3:00', <?php echo $wind_speeds[99]?> ],
> ['5:15', <?php echo $wind_speeds[108]?> ],
> ['7:15', <?php echo $wind_speeds[117]?> ],
> ['9:30', <?php echo $wind_speeds[126]?> ],
> ['11:45', <?php echo $wind_speeds[135]?>]
> ]);
>
> // Create and draw the visualization.
> var ac = new
> google.visualization.ComboChart(document.getElementById('Wind'));
> ac.draw(data, { title: "Wind Speed and Direction",
> curveType: "function",
> width: 680, height: 260,
> vAxis: {title:"Wind Speed (m/s)"},
> hAxis: {title:"Time"},
> legend: {position: 'bottom', textStyle: {fontSize:
> 12}},
> });
> ;
> }
> google.setOnLoadCallback(Wind);
> </Script>
>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.