[visualization-api] Re: Google Charts New Release Candidate: V52, Feb 20, 2023

2023-02-21 Thread 'Daniel LaLiberte' via Google Visualization API
If you are using both Google Charts and Google Maps in the same document,
you might have a problem using the 'upcoming' version.

I am seeing a single instance of "var google = {};" in the default package
of v52, which is loaded before any other package, or even if no other
package is loaded.  Consequently, any previously loaded google.maps code
will be deleted. Until I figure this out, this probably means that anyone
using both Google Charts and Google Maps in the same document cannot load
the 'upcoming' version. Alternatively, if 'upcoming' is required, it might
work to load the Google Charts code before loading the Google Maps code.

On Mon, Feb 20, 2023 at 2:15 PM Daniel LaLiberte 
wrote:

> Google Charts version '52' is now available.  You can use this upcoming
> version by loading 'upcoming'.  Please test the new features and let us
> know if you experience any issues.
>
> 
>
>   google.charts.load('upcoming',
>
>{packages: ['corechart']});
>
> 
>
> This release primarily consists of a large number of refactoring and
> cleanup changes.  All code has been migrated to ES6, and a substantial
> fraction has been migrated to TypeScript. We are still moving forward
> toward open-sourcing the Google Charts code, but many more internal changes
> are required before that can be accomplished.
>
>
> Anticipated production release date: March 20, 2023
>
> At this time, the 'current' version is still '51'.
>
> On the release date, loading either 'current' or 'upcoming' will load
> '52'.
>
> Note that this is a much longer release cycle compared to previous
> releases, due to the large number of internal changes.
>
>
>
>-
>
>GeoChart
>-
>
>   Updated geochartVersion to 11, and regioncoderVersion to 1.
>   -
>
>Dygraph charts
>-
>
>   Gantt, Timeline, and the Material charts: Bar, Line, Scatter
>   -
>
>   No longer loads the Dygraph library dynamically since it is
>   compiled in.
>   -
>
>Table
>-
>
>   Fix highlighting of current page number for more than 11 pages.
>   -
>
>OrgChart
>-
>
>   Add ‘compactRows’ option. Default is false.
>   -
>
>   Uses the  Reingold-Tilford 
>   algorithm for layered trees. Its main advantage is a more effective use 
> of
>   horizontal space by placing subtrees close together as long as nodes in 
> the
>   same layer do not overlap.
>
>
> --
>
> • Daniel LaLiberte
>
>  • SWE
>
>  • Cambridge MA
>
>  • dlalibe...@google.com 
>


-- 

• Daniel LaLiberte

 • SWE

 • Cambridge MA

 • dlalibe...@google.com 

-- 
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 google-visualization-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJNmh25yx1OLLLk4_q4xrm4Szw2A%3DYcK9b%2BfLcQS-5jgRQ%40mail.gmail.com.


Re: [visualization-api] Google charts and typescript

2023-02-21 Thread 'Daniel LaLiberte' via Google Visualization API
OK, I would like to find a workaround for you, while also figuring out what
exactly is going wrong.  I'll need you to do some experimenting, or if you
can give me a link to an example that shows the problem you are
experiencing, especially a simplified example using jsfiddle or something
similar, that would be great.

Is it possible to check whether the code does get executed, but only after
your onload handler is called?

Could you try using addEventListener rather than the onload mechanism?

Can you try adding a static loading of the loader, just to make sure that
use case still works?


On Tue, Feb 21, 2023 at 12:12 PM Nikos Katsikanis 
wrote:

> Thanks for your quick response, we manage this loading, so it only happens
> once; as we have dynamic routes, we want to load it on only some pages.
>
> On Tuesday, February 21, 2023 at 4:23:39 PM UTC Daniel LaLiberte wrote:
>
>> The loader has been updated for the 'upcoming' release of v52, but it
>> should only have added access to the new version.   There have been other
>> refactoring changes that conceivably could have affected the code, but I
>> see how it could have lost the definition of the global 'google'.
>> Moreover, I am not sure I can easily revert this change of the loader,
>> since I would have to return to the compilation environment from a couple
>> years ago.
>>
>> The way you are loading the loader, using a constructed async script
>> element appended to the body, is significantly different from the typical,
>> more static loading via a script tag in the document head.  I'm wondering
>> if you are using this pattern multiple times in the document, perhaps
>> unintentionally.
>>
>>
>> On Tue, Feb 21, 2023 at 6:55 AM Nikos Katsikanis 
>> wrote:
>>
>>> I have this code, with type `/// >> />`
>>> but google is not recognised:
>>>
>>> [image: Screenshot 2023-02-21 at 11.55.21.png]
>>>
>>> --
>>> 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 google-visualizati...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/google-visualization-api/ee101963-b123-4cbc-90ca-a59039c3f5f3n%40googlegroups.com
>>> 
>>> .
>>>
>>
>>
>> --
>>
>> • Daniel LaLiberte
>>
>>  • SWE
>>
>>  • Cambridge MA
>>
>>  • dlalibe...@google.com
>>
> --
> 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 google-visualization-api+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-visualization-api/63a0095c-7a2d-4087-aee3-e40e99f1874dn%40googlegroups.com
> 
> .
>


-- 

• Daniel LaLiberte

 • SWE

 • Cambridge MA

 • dlalibe...@google.com 

-- 
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 google-visualization-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJNgLypVXUMAW1CwLm3Crf9UpMpvopa7Cojh5M-XEcN7TA%40mail.gmail.com.


Re: [visualization-api] Google charts and typescript

2023-02-21 Thread Nikos Katsikanis
Thanks for your quick response, we manage this loading, so it only happens 
once; as we have dynamic routes, we want to load it on only some pages.

On Tuesday, February 21, 2023 at 4:23:39 PM UTC Daniel LaLiberte wrote:

> The loader has been updated for the 'upcoming' release of v52, but it 
> should only have added access to the new version.   There have been other 
> refactoring changes that conceivably could have affected the code, but I 
> see how it could have lost the definition of the global 'google'.  
> Moreover, I am not sure I can easily revert this change of the loader, 
> since I would have to return to the compilation environment from a couple 
> years ago. 
>
> The way you are loading the loader, using a constructed async script 
> element appended to the body, is significantly different from the typical, 
> more static loading via a script tag in the document head.  I'm wondering 
> if you are using this pattern multiple times in the document, perhaps 
> unintentionally.
>
>
> On Tue, Feb 21, 2023 at 6:55 AM Nikos Katsikanis  
> wrote:
>
>> I have this code, with type `/// > />`
>> but google is not recognised:
>>
>> [image: Screenshot 2023-02-21 at 11.55.21.png]
>>
>> -- 
>> 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 google-visualizati...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-visualization-api/ee101963-b123-4cbc-90ca-a59039c3f5f3n%40googlegroups.com
>>  
>> 
>> .
>>
>
>
> -- 
>
> • Daniel LaLiberte
>
>  • SWE
>
>  • Cambridge MA
>
>  • dlalibe...@google.com
>

-- 
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 google-visualization-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/63a0095c-7a2d-4087-aee3-e40e99f1874dn%40googlegroups.com.