This is the link that I am seeing.  I am working on a project that was started 
before me and I have never used google visualizations before.  It appears their 
is also a local copy of googlechartapi.js should that be there.  Here is the 
other link I am seeing.

format+en,default,corechart.I.js
www.google.com/uds/api/visualization/1.0/d780f2951a73e815f003b2b487c1d0a3

Thanks,
  Kevin

On December 6, 2013 at 4:51:23 PM, Sergey Grabkovsky ([email protected]) wrote:

That's really weird. What is the URL that is being requested when you load the 
library? You can find this in the Network tab of the Chrome developer tools. It 
should look something like 
https://www.google.com/uds/api/visualization/1.1/85433ced5f4f5ecf8f1c2c20eb7b5d63/format+en,default+en,ui+en,corechart+en.I.js.

- Sergey


On Fri, Dec 6, 2013 at 5:45 PM, Kevin Berry <[email protected]> wrote:
I’m using Chrome on OS X Mavericks.  This is running off my local host with in 
a rails app.

Thanks,
  Kevin

On December 6, 2013 at 4:43:53 PM, Sergey Grabkovsky ([email protected]) wrote:

It's really odd that you're seeing that error. Everything works well for me 
without those lines. What browser and operating system are you using?

- Sergey


On Fri, Dec 6, 2013 at 5:38 PM, Kevin Berry <[email protected]> wrote:
I was actually having the issue with the example given in the docs.  Below is 
what I am doing know.  If I remove the 2 setColumnProperty lines then I get the 
“All series on a given axis must be of the same data type” error.  With those 2 
lines I don’t get that error any longer, but the style and annotation are 
ignored most of the time.  Every once in  while when I refresh the page it will 
render the annotation and style properly.

google.load("visualization", "1", {packages:["corechart"]});
      google.setOnLoadCallback(drawChart);
      function drawChart() {
  var data = google.visualization.arrayToDataTable([
            ['Type', 'Laps', { role: 'annotation' },  { role: 'style' }],
                ['Mastersbilt',25, 'Mastersbilt', 'color:green'],
                ['Chevy (32 CI)',25, 'Chevy (32 CI)', 'color:green'],
          ]);

          data.setColumnProperty(2, 'role', 'annotation');
          data.setColumnProperty(3, 'role', 'style');

          var options = {
            title: 'Usage Chart',
            vAxis: {titleTextStyle: {color: 'red'}},
            hAxis: {title:'Laps',minValue:0},
            legend:{position:'none'},
            fontName:"proxima-nova",
            backgroundColor: { fill:'transparent' },
            chartArea: {left:100, width: 400},
          };

          var chart = new 
google.visualization.BarChart(document.getElementById('testchart'));
          chart.draw(data, options);
      }

Thanks,
  Kevin

On December 6, 2013 at 4:30:08 PM, Sergey Grabkovsky ([email protected]) wrote:

Hi Kevin, can you give me a case where the arrayToDataTable doesn't assign a 
column role properly? I tried the example given and it worked perfectly for me. 
It might be that you guys are getting older versions of the code sometimes, but 
I don't see why that would be.

- Sergey


On Fri, Dec 6, 2013 at 5:21 PM, Kevin Berry <[email protected]> wrote:
I found the issue for this.  Apparently arrayToDataTable does not assign roles 
properly.  If you add  "data.setColumnProperty(2, 'role', 'style');" after you 
create the data table it will assign the role properly.  This error issue for 
me, but there still seems to be some sort of caching issue.  I never get the 
error but some more times then not the style is just ignored.  If you find 
anyway to fix that I would love to know.


On Friday, December 6, 2013 4:00:41 PM UTC-6, Kevin Berry wrote:
I'm having this same issue as well.

On Thursday, December 5, 2013 3:37:12 PM UTC-6, Camille BOISSEL wrote:
I have the same problem.

Le samedi 30 novembre 2013 18:53:18 UTC-5, jonnyG a écrit :
Have cleared the cache. Like Daniel when I tried again last night it worked 
perfectly and consistently. Now cleared cache but code not working again in 
playground or site.
Have tried in several browsers but same issue.


On Sunday, December 1, 2013 12:43:31 AM UTC+8, asgallant wrote:
If that is the case, then it would work consistently after the cache was 
flushed.

Jonny, clear your browser cache and try again, that should verify if it is a 
cache issue.

On Saturday, November 30, 2013 11:33:36 AM UTC-5, Daniel LaLiberte wrote:
Hi Jonny,

I tried your example in the playground, and it seems to work consistently for 
me.  I wonder if you are seeing a problem due to some caching.  If so, this 
could clear up on its own as caches get flushed.


On Sat, Nov 30, 2013 at 5:32 AM, jonnyG <[email protected]> wrote:
Hi
New to this group...
the style feature looks great but the one described in bar and column chart is 
not working in the playground (or in my site)...any one any ideas?
Am I missing something obvious??




function drawVisualization() {
  // Create and populate the data table.
   var data = google.visualization.arrayToDataTable([
 
//this bit from the section on how to color in bar charts

 ['Element', 'Density', { role: 'style' }],
        ['Copper', 8.94, '#b87333'],            // RGB value
  ['Silver', 10.49, 'silver'],            // English color name
  ['Gold', 19.30, 'gold'],
  ['Platinum', 21.45, 'color: #e5e4e2' ], // CSS-style declaration
      ]);

  // Create and draw the visualization.
  new google.visualization.BarChart(document.getElementById('visualization')).
      draw(data,
           {title:"not working",
            width:600, height:400,
           
            vAxis: {title: "Year"},
            hAxis: {title: "Cups"}}
      );
}

Try pasting into the playground - only works occasionally, other times returns 
'All series on a given axis must be of the same data type

--
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/groups/opt_out.



--
Daniel LaLiberte  - 978-394-1058
[email protected]   5CC, Cambridge MA
[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/groups/opt_out.

--
You received this message because you are subscribed to a topic in the Google 
Groups "Google Visualization API" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/google-visualization-api/xfcR1zC0J_A/unsubscribe.
To unsubscribe from this group and all its topics, 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/groups/opt_out.


-- 
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/groups/opt_out.

Reply via email to