Y'all have been such an enormous help in getting me up to speed rapidly in 
my new quest to learn and use javaScript that I'm hoping you can do it 
again.   [:-)}

In Google Charts, I am trying to replicate this chart appearance whose 
software I am trying to replace for tighter integration into a web site. 
<https://lh3.googleusercontent.com/-3zopV--sHKU/VINwblwNi2I/AAAAAAAACcs/OixYtGxDkVc/s1600/temps.png>

Note that the data after the "current time" is shown in dashed lines.

I am outputting a csv file (with more temps than shown in the image above) 
that looks like this ...
<https://lh4.googleusercontent.com/-YGVx1vwOgXk/VIN07a3bKaI/AAAAAAAACdA/AmUpfnk2aHI/s1600/input.png>

My challenge is to set the Type and Role attributes on columns 2,4,6,8,10 
to reflect the nature of those columns as 'certainty' data, not temp 
values, as I want to make the data point entries later than the 'current 
time' dashed by using the "certainty" role: attribute.

I have spent a day trying to find documentation/examples oh how to do this 
correctly, but all the examples use manually created data tables where the 
column definitions can be set up before the Table is populated.

My Table is *already read in* and I must thus create the proper definitions 
"after the fact"

My code is (full code page attached) ...
         . . . 
            var dataView = new google.visualization.DataView(data);
dataView.setColumns([2, 4, 6, 8, 10 {
type: "boolean",
role: "certainty"
}]);
                . . . 


Without the "dataView 4 lines of code everything works, except I get this 
error...

   "All series on a given axis must be of the same data type"


With the dataView code lines I get a...
   
   " Uncaught SyntaxError: Unexpected token { "

Can't get rid of the unexpected token error, and ALSO wondering if I am 
doing this right anyway?!  That is, is there an even easier way to change 
the data appearance after a specific x-axis value (ie, later times) that 
doesn't require all the 'certainty' column data to be inserted into the 
data package?



Thanks for any help you can suggest.
  [:-)}

-- 
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.

<<< text/html; charset=UTF-8; name="Chart.html": Unrecognized >>>

Reply via email to