OK, so I did some snooping around, and it appears that there was language 
autodetection, but we won't be able to support it the same way, since we do 
not have a server.

I'm not really sure how to advise you on this. We do intend to do some 
language detection for frozen versions, but it will be done on the 
client-side, so I don't know if it will work as well.

On Wednesday, November 4, 2015 at 4:08:51 PM UTC-5, Sergey wrote:
>
> So the focusTarget:'category' issue should be fixed now, with the latest 
> frozen 43 push.
>
> As for the language autodetection... Which browser/OS are you using, and 
> do you have the browser configured in any special sort of way?
>
> I'm on a Mac, and I tried to reproduce by setting Chrome's primary 
> language, and by changing my region, to no avail.
>
> On Tuesday, November 3, 2015 at 7:46:56 PM UTC-5, Frédéric Gaye wrote:
>>
>> Hi Sergey,
>>
>> Thanks.
>> I  was thinking there was an autodetection (and a bug) because see theses 
>> 2 codes. 
>>
>>
>>    - The first one (old jsapi) show tooltip in my language (french) 
>>    without any language indication
>>    
>>
>>  <script type="text/javascript" src="
>> https://www.google.com/jsapi?autoload={'modules':[{'name':'visualization
>> ','version':'1','packages':['corechart']}]}"></script>
>>      <script type="application/javascript">
>> google.setOnLoadCallback(drawChart);
>> function drawChart() {
>>
>>   var data = new google.visualization.DataTable();
>> data.addColumn({type:'date', role:'domain'});
>> data.addColumn('number', 'Sessions');
>> data.addColumn({type:'date', role:'domain'});
>> data.addColumn('number', 'Sessions');
>>
>> data.addRows([
>> [new Date("4/11/2015"),2189,new Date("3/11/2015"),2189],
>> [new Date("4/12/2015"),2389,new Date("3/12/2015"),2536],
>> [new Date("4/13/2015"),2189,new Date("3/13/2015"),2545],
>> [new Date("4/14/2015"),2129,new Date("3/14/2015"),2390],
>>  ]);
>>       var options = {
>>     focusTarget:'category',
>>         legend: { position: 'none' },
>>         tooltip: {textStyle:{ color: '#333', fontSize:12 }},
>>       };
>>       var chart = new 
>> google.visualization.LineChart(document.getElementById('barchart_values3'));
>>       chart.draw(data, options);
>>   }
>> </script>
>> <div id="barchart_values3" style="width: 900px; height: 300px;"></div>
>>
>>
>>
>>    - And the second (loader.js) , need to force/add  'language': 'fr' to 
>>    see tooltip in french instead of en ("by default").
>>    
>>
>> <script type="text/javascript" src="
>> https://www.gstatic.com/charts/loader.js";></script> 
>> <script type="application/javascript">google.charts.load('43', {packages: 
>> ['corechart'], *'language': 'fr'*});
>> google.charts.setOnLoadCallback(drawChart);
>>  
>>
>>   function drawChart() {
>>   var data = new google.visualization.DataTable();
>> data.addColumn({type:'date', role:'domain'});
>> data.addColumn('number', 'Sessions');
>> data.addColumn({type:'date', role:'domain'});
>> data.addColumn('number', 'Sessions');
>>
>> data.addRows([
>> [new Date("4/11/2015"),2189,new Date("3/11/2015"),2189],
>> [new Date("4/12/2015"),2389,new Date("3/12/2015"),2536],
>> [new Date("4/13/2015"),2189,new Date("3/13/2015"),2545],
>> [new Date("4/14/2015"),2129,new Date("3/14/2015"),2390],
>>  ]);
>>       var options = {
>>     focusTarget:'category',
>>         legend: { position: 'none' },
>>         tooltip: {textStyle:{ color: '#333', fontSize:12 }},
>>       };
>>       var chart = new 
>> google.visualization.LineChart(document.getElementById('barchart_values2'));
>>       chart.draw(data, options);
>>   }
>>   </script>
>>
>> Any idea to show in the second code a "autodetected" french language 
>> without any 'language': 'fr' ?
>>
>> Regards
>>
>> Le mardi 3 novembre 2015 15:47:29 UTC+1, Sergey a écrit :
>>>
>>> As far as I know, we have never autodetected the language/locale and 
>>> automatically loaded the correct version. So, if anything, this is not a 
>>> bug, but a feature request. We have discussed how we would do this before, 
>>> and I think we have a plan for how to proceed. However, I don't have any 
>>> estimates for when we might do this, since the browser APIs for language 
>>> detection haven't really stabilized yet.
>>>
>>> On Tue, Nov 3, 2015 at 8:46 AM Frédéric Gaye <
>>> [email protected]> wrote:
>>>
>>>> Hi Sergey,
>>>>
>>>> Thanks for your (quickly) anwsers.
>>>>
>>>> Note : there another "little" but boring bug. Now with frozen 42 and 
>>>> 43, date in  tooltip are by default in english. We need to 
>>>> add  google.charts.load('42', {packages: ['corechart'], 'language': 
>>>> 'fr'}); 
>>>> to have date in french. Is it possible to correct this to stay like before 
>>>> frozen (that is to say, language are automatically detected and no need to 
>>>> force with 'language': 'fr' to have french.
>>>>
>>>> Regards
>>>>
>>>> Le lundi 2 novembre 2015 22:05:24 UTC+1, Sergey a écrit :
>>>>
>>>>> Thanks for notifying us of this bug! We will fix it soon.
>>>>>
>>>>> On Mon, Nov 2, 2015 at 4:02 PM Frédéric Gaye <
>>>>> [email protected]> wrote:
>>>>>
>>>> Hi Daniel,
>>>>>>
>>>>>> It seems there a bug with Forzen 43 and  use of 
>>>>>> option focusTarget:'category'.
>>>>>> When we use both, it become impossible to mouse over a barchart to 
>>>>>> see the tooltip (we see tooltip only if we put our mouse next to 
>>>>>> barchat) 
>>>>>> if we use frozen 42 all is fine.
>>>>>>
>>>>>> See this simple example 
>>>>>>
>>>>>> <script type="text/javascript" src="
>>>>>> https://www.gstatic.com/charts/loader.js";></script>
>>>>>> <script type="application/javascript"> google.charts.load('43', 
>>>>>> {packages: ['corechart'], 'language': 'fr'});
>>>>>> google.charts.setOnLoadCallback(drawChart);
>>>>>>  
>>>>>>     function drawChart() {
>>>>>>    var data = google.visualization.arrayToDataTable([
>>>>>>  ['Canaux', '28 derniers jours', { role: 'style' }, { role: 
>>>>>> 'annotation' }, 'Période précédente'],
>>>>>>  ['Organic Search', 59200, '#337ab7', -3130, 58750 ],
>>>>>>  ['Referral', 6450, '#337ab7', -387, 6837],
>>>>>>  ['Direct', 5874, '#337ab7', -424, 6298 ],
>>>>>>  ['Social', 113, '#337ab7', -78, 191],
>>>>>>  ['(other)', 20, '#337ab7', 3, 17]
>>>>>>  ]);
>>>>>>       var options = {
>>>>>>         title: "Density of Precious Metals, in g/cm^3",
>>>>>>         width: 600,
>>>>>>         height: 400,
>>>>>>   focusTarget:'category',
>>>>>>         legend: { position: 'none' },
>>>>>>         tooltip: {textStyle:{ color: '#333', fontSize:12 }},
>>>>>>       };
>>>>>>       var chart = new 
>>>>>> google.visualization.BarChart(document.getElementById('barchart_values2'));
>>>>>>       chart.draw(data, options);
>>>>>>   }
>>>>>>   </script>
>>>>>> <div id="barchart_values2" style="width: 900px; height: 300px;"></div>
>>>>>>
>>>>>> Any idea to correct this point ?
>>>>>>
>>>>>> Regards
>>>>>>
>>>>>> Le mardi 28 juillet 2015 14:11:12 UTC+2, Daniel LaLiberte a écrit :
>>>>>>
>>>>>>> *Introducing Frozen Google Charts*
>>>>>>>
>>>>>>> When we push out new releases of Google Charts, some of the changes 
>>>>>>> are big, like entirely new chart types, but other changes are small, 
>>>>>>> like 
>>>>>>> enhancements to the appearance or behavior of existing charts.  
>>>>>>>
>>>>>>> Many Google Chart creators fine-tune the look and feel of their 
>>>>>>> charts until it's exactly what they want. Some of those users might 
>>>>>>> feel 
>>>>>>> more comfortable knowing that their charts will never change, 
>>>>>>> regardless of 
>>>>>>> what improvements we make in the future.  For those users, we're proud 
>>>>>>> to 
>>>>>>> announce Frozen Google Charts.  
>>>>>>>
>>>>>>> To load a frozen version, you must make some small changes in how 
>>>>>>> you load the Google Charts packages.  For example, here is the 
>>>>>>> usual way of loading the stable version and drawing a chart:
>>>>>>>
>>>>>>> <script type="text/javascript" 
>>>>>>>
>>>>>>> src="https://www.google.com/jsapi";></script>
>>>>>>>
>>>>>>> <script type="text/javascript">
>>>>>>>
>>>>>>>    google.load('visualization', '1', {packages: ['corechart']});
>>>>>>>
>>>>>>>    google.setOnLoadCallback(drawChart);
>>>>>>>
>>>>>>> </script>
>>>>>>>
>>>>>>> You'll need to change your code to be like this (changes 
>>>>>>> highlighted in bold):
>>>>>>>
>>>>>>> <script type="text/javascript" 
>>>>>>>
>>>>>>>             src="*https://www.gstatic.com/charts/loader.js* 
>>>>>>> <https://www.gstatic.com/charts/loader.js>"></script>
>>>>>>>
>>>>>>> <script type="text/javascript">
>>>>>>>
>>>>>>>    *google.charts.load(**'41'**,* {packages: ['corechart']});
>>>>>>>
>>>>>>>    *google.charts.setOnLoadCallback*(drawChart);
>>>>>>> </script>
>>>>>>>
>>>>>>>
>>>>>>> Note that when you call google.charts.load(), you should not 
>>>>>>> include the ‘visualization’ parameter, and the version number is a 
>>>>>>> string.  Only version ‘41’ is supported at this time, which corresponds 
>>>>>>> to 
>>>>>>> the current stable release, and additional frozen versions will be 
>>>>>>> announced as we push out each new stable release.  More details 
>>>>>>> about using the frozen version loader will be available here 
>>>>>>> <https://google-developers.appspot.com/chart/interactive/docs/library_loading_enhancements>
>>>>>>> .
>>>>>>>
>>>>>>>
>>>>>>> When you use a frozen version of Google Charts, all charts and 
>>>>>>> features should work the same as for the stable version it was created 
>>>>>>> from.  But there are two minor, though important, limitations with 
>>>>>>> loading frozen versions, which we expect to resolve in the near 
>>>>>>> future.
>>>>>>>
>>>>>>>    1. You can only call google.charts.load() one time.  You can 
>>>>>>>    instead list all the packages that you'll need in one call, so there 
>>>>>>> is 
>>>>>>>    usually no need to make separate calls. 
>>>>>>>    2. If you are using a ChartWrapper, you must explicitly load all 
>>>>>>>    the packages you'll need rather than relying on the ChartWrapper to 
>>>>>>>    automatically load them for you. 
>>>>>>>
>>>>>>> We expect that frozen versions will remain available indefinitely, 
>>>>>>> though we may retire frozen versions that have security concerns.  We 
>>>>>>> will 
>>>>>>> typically not provide support for frozen versions, except to suggest 
>>>>>>> upgrading to newer versions.
>>>>>>>
>>>>>>> Even if you don't plan to use the frozen version 41, it would help 
>>>>>>> us if you could try it now with your charts and please let us know if 
>>>>>>> you 
>>>>>>> experience any problems.
>>>>>>>
>>>>>>> -- 
>>>>>>>
>>>>>> Daniel LaLiberte 
>>>>>>> <https://plus.google.com/100631381223468223275?prsrc=2>  - 
>>>>>>> 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.
>>>>>> To view this discussion on the web visit 
>>>>>> https://groups.google.com/d/msgid/google-visualization-api/851eebd7-3b47-4cb9-820c-67744230173b%40googlegroups.com
>>>>>>  
>>>>>> <https://groups.google.com/d/msgid/google-visualization-api/851eebd7-3b47-4cb9-820c-67744230173b%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>> -- 
>>>>>
>>>>> *[image: unnamed.gif] *
>>>>> *Sergey Grabkovsky* | SWE 
>>>>>
>>>> -- 
>>>> 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.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/google-visualization-api/8ad55cdb-3485-45d1-8dc7-f03437d5896d%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/google-visualization-api/8ad55cdb-3485-45d1-8dc7-f03437d5896d%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>> -- 
>>>
>>> *[image: unnamed.gif] *
>>> *Sergey Grabkovsky* | SWE  | [email protected]
>>>
>>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/3a14839c-9201-420d-b80d-ce4a24914c42%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to