I'm trying to make it so that my graph displays the remaining time in the
day (so it doesn't look like the market is closed). If my data points don't
run until the market close, I want the chart to be blank until that time.
I've tried using the following options. Anything I'm missing?
var data = new google.visualization.DataTable();
data.addColumn('datetime', 'Date');
data.addColumn('number', 'Bid');
var dataView = new google.visualization.DataView(data);
dataView.setColumns([{calc: function(data, row) { return
data.getFormattedValue(row, 0); }, type:'datetime'}, 1]);
// Set chart options
var options = {'title':'Silver Bid or Ask - <?php echo
$string_for_chart_date; ?>',
'width':680,
'height':300,
'chartArea.left': '0px',
'theme': 'maximized',
'lineWidth':1,
'hAxis.maxValue': new Date(<?php echo
$year.",".($month+1).",".$day.",20,15,0"; ?>),
'hAxis.minValue': new Date(<?php echo
$year.",".($month+2).",".$day.",07,15,0"; ?>),
'hAxis.viewWindowMode': 'explicit'};
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-visualization-api/-/C4_gbJVRH0QJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.