The timeline charts do not support setting a specific range for the time 
axis.

I cannot replicate your issue with the extra character after the div.  If 
your chart is too short to contain the data you input, the API will add a 
vertical scroll bar, though.

On Saturday, October 4, 2014 7:50:42 AM UTC-4, Ivan Kalish wrote:
>
> I have a timeline application where I want something like:
> ------XXX------------XXXXXXX--------------XXXXX-----
> In other words, the time line goes beyond the last interval (shown by X's)
> There seems to be no way to do that.
>
> Also, I may have found a bug, since an extra character seems to appear 
> after the chart if the height of the div does not match the height in 
> "options" and if it does match, I get a scrollbar.
>
> This is my sample code (only 3 intervals)
>
> function drawChart() {
>   var container = document.getElementById('example4.2');
>   var chart = new google.visualization.Timeline(container);
>   var dataTable = new google.visualization.DataTable();
>
>   dataTable.addColumn({ type: 'string', id: 'Role' });
>   dataTable.addColumn({ type: 'number', id: 'Start' });
>   dataTable.addColumn({ type: 'number', id: 'End' });
>   dataTable.addRows([
>     ['President', 10.123, 11.872],
>     ['President', 68.222,75.435],
>     ['President', 80.122,99.372]]);
>
>   var options = {
>       timeline: { groupByRowLabel: true, showRowLabels: false, 
> colorByRowLabel: true, singleColor: '#8d8', height: 10}
>   };
>
>   chart.draw(dataTable, options);
> }
>
> The div itself has a height of ten too. e.g. "div id="example4.2" 
> style="width: 900px; height: 10px;" 
>
> Thanks.
>
>

-- 
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 google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to