Solved.

var view7 = new google.visualization.DataView(data);   
    view7.setColumns([37, 38, 39, 40]), view7.setRows([0, 1, 2, 3, 4, 5, 6, 
7, 8, 9]);

Josh

On Wednesday, January 20, 2016 at 11:14:09 PM UTC+1, Joshua Grant wrote:
>
> Hi,
>
> I've been putting together a presentation which has a number of different 
> charts (pie, bar, column) all pulling data from the same data table (which 
> I query). I've defined a different view for each chart, specifying the 
> columns with the data for that specific chart. This works fine except that 
> one of my column charts has 20 entries on the horizontal axis (rows from 
> the data table) and the others have 2-8. Unfortunately ALL the column 
> charts are formatted as if they're expecting 20 entries on the horizontal 
> axis. So the charts with only four values are squished to the left-hand 
> side with a bunch of white space for entries that don't exist. Is there a 
> way to make each chart independent, or dependent (in terms of auto-axis 
> format) on only the columns of data that are actually plotted? Here are two 
> images in case my description wasn't clear.
>
> Thanks for any help you can offer.
>
>
> <https://lh3.googleusercontent.com/-ZN7g5FMC6Ls/VqAGfz_D1eI/AAAAAAAAAHc/4Bz3QUMQMhM/s1600/Long.jpg>
>
>
> <https://lh3.googleusercontent.com/-OYiP3cj680M/VqAGihU7OuI/AAAAAAAAAHk/7dlol01f0vM/s1600/short.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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/04daa6e3-c5fd-4759-9f0b-e4e48a59395d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to