Ruben,

Since your domain data is just strings, it is not possible for the columns
to have a different spacing between them.  But if you provide your data
with type date or datetime instead, then you will have a chance of spacing
them on a date range.

However, if you use date values, then your rows are not in order, and the
columns won't work out as you might expect.

It sounds like what you really want is two domain values, one for one week,
and a second for the second week.  Then you will get something like this:
http://jsfiddle.net/dlaliberte/yzgtrphf/

On Fri, Apr 17, 2015 at 7:56 AM, Ruben Gonzalez Orgaz <
[email protected]> wrote:

>
> <https://lh3.googleusercontent.com/-DmYRW-dIHUU/VTD09Wqte-I/AAAAAAAAAf4/Af9erXZvSi8/s1600/grafico.jpg>
>
> I need to show on a graph the 14 last days of the week, the bars have to
> go two by two (Monday-Monday, Tuesday-Tuesday ...) but between the two days
> two weeks do not want any space
>
> my code: google.load('visualization', '1', {packages: ['corechart',
> 'bar']}); google.setOnLoadCallback(drawBasic);
>
> function drawBasic() {
>
>   var data = new google.visualization.DataTable();
>   data.addColumn('string', 'Time of Day');
>   data.addColumn('number', 'Motivation Level');
>
>   data.addRows([
>     ["6/4/2015", 10] ,
>       ["13/4/2015", 10] ,
>       ["7/4/2015", 20] ,
>       ["14/4/2015", 10] ,
>     ["8/4/2015", 10] ,
>   ]);
>
>   var chart = new google.visualization.ColumnChart(
>     document.getElementById('chart_div'));
>
>   chart.draw(data, null);
> }
>
>
> <https://lh3.googleusercontent.com/-DmYRW-dIHUU/VTD09Wqte-I/AAAAAAAAAf4/Af9erXZvSi8/s1600/grafico.jpg>
>
>
>  --
> 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.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>  -
978-394-1058
[email protected] <[email protected]>   5CC, Cambridge MA
[email protected] <[email protected]> 9 Juniper Ridge
Road, Acton MA

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to