Google Chart CategoryFilter suddenly not works

77 views
Skip to first unread message

P.Udayasooriyan

unread,
Apr 4, 2023, 1:43:22 PM4/4/23
to Google Visualization API
i been using Google Chart almost a year. it was working without issue.

but suddenly today CategoryFilter in TableChart not working.
when i checked and debug i found that
some html codes were scrambled like... below

<div class="aAAaGVIZSENTINELaAAa-inline-block aAAaGVIZSENTINELaAAa-menu-button-inner-box"><div class="aAAaGVIZSENTINELaAAa-inline-block aAAaGVIZSENTINELaAAa-menu-button-caption" id=":17" role="option" aria-selected="true" aria-setsize="35" aria-posinset="0">Choose a value...</div><div class="aAAaGVIZSENTINELaAAa-inline-block aAAaGVIZSENTINELaAAa-menu-button-dropdown">&nbsp;</div></div>

before it was like
<div class="goog-inline-block goog-menu-button-outer-box"><div class="goog-inline-block goog-menu-button-inner-box"><div class="goog-inline-block goog-menu-button-caption" id=":v" role="option" aria-selected="true" aria-setsize="26" aria-posinset="0">Choose a value...</div><div class="goog-inline-block goog-menu-button-dropdown">&nbsp;</div></div></div>

what has happend? does google blocked  ? or issue happend in their file??


This e-mail and any attachments are confidential and may contain legally privileged information and/or copyright material of the SICGIL GROUP of Companies or third parties. If you are not an authorised recipient, you must not read, re-transmit, distribute, commercialise, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Thank you. 

Daniel LaLiberte

unread,
Apr 4, 2023, 1:57:05 PM4/4/23
to google-visua...@googlegroups.com
This is a regression bug in v52.  I rolled back the rollout, so 'current' is (or soon will be) '51' again.

--
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/29649eef-be20-4e1a-a0fe-443ddc2e8cf7n%40googlegroups.com.


--

Daniel LaLiberte

 • SWE

 Cambridge MA

 • dlaliberte@Google.com

P.Udayasooriyan

unread,
Apr 4, 2023, 10:36:19 PM4/4/23
to Google Visualization API
Thanks, now it works fine with 'current'. also tried with '51' that also works.

Wouter

unread,
Oct 11, 2023, 10:08:31 AM10/11/23
to Google Visualization API
Is this indeed fixed? Because all CategoryFilters that I use break when I update version 51 to 52.

For example the filter in this chart works well in 51 and does not work in 52:

The filter class becomes
aAAaGVIZSENTINELaAAa-inline-block aAAaGVIZSENTINELaAAa-menu-button-caption

in stead of

filter_vaccinatiestatus_oud  



<div id="dashboard_vaccinatiestatus_oud">
            <div id="filter_vaccinatiestatus_oud"></div>
            <p id="grafiek_vaccinatiestatus_oud"><br><br><br><br><br><br><br><br><mark>Heel even geduld alsjeblieft...<br><br> de vaccinatiegegevens worden geladen <br><br>Allecijfers.nl</mark><br><br><br><br></p>
</div>
google.charts.setOnLoadCallback(DashboardVaccinatieStatus_oud);
function DashboardVaccinatieStatus_oud() {
      var data = google.visualization.arrayToDataTable([['None', 'Met booster', 'Volledig gevaccineerd', 'Deels gevaccineerd', 'Niet gevaccineerd', 'Onbekend', 'Personen'], ['Okt 2021', 0, 54136, 3648, 42567, 17742, 'Positief-getest'], ['Nov 2021', 15, 183227, 8005, 109191, 135454, 'Positief-getest'], ['Dec 2021', 5721, 187938, 10417, 91414, 101322, 'Positief-getest'], ['Jan 2022', 778, 1169, 154, 1354, 694, 'Positief-getest'], ['Feb 2022', 4706, 2894, 480, 2139, 2388, 'Positief-getest'], ['Mrt 2022', 5455, 4445, 257, 1037, 1742, 'Positief-getest'], ['Apr 2022', 10905, 4448, 585, 3251, 4410, 'Positief-getest'], ['Mei 2022', 9559, 4241, 651, 3240, 4047, 'Positief-getest'], ['Jun 2022', 8854, 3387, 585, 2611, 3650, 'Positief-getest'], ['Jul 2022', 9158, 761, 514, 3406, 8799, 'Positief-getest'], ['Aug 2022', 7547, 267, 364, 2788, 8582, 'Positief-getest'], ['Okt 2021', 0, 1234, 40, 1279, 92, 'Ziekenhuisopname'], ['Nov 2021', 0, 4010, 148, 3435, 155, 'Ziekenhuisopname'], ['Dec 2021', 73, 3255, 118, 3278, 156, 'Ziekenhuisopname'], ['Jan 2022', 460, 1426, 110, 2150, 110, 'Ziekenhuisopname'], ['Feb 2022', 1035, 1183, 93, 1593, 59, 'Ziekenhuisopname'], ['Mrt 2022', 2473, 1361, 76, 1339, 68, 'Ziekenhuisopname'], ['Apr 2022', 1036, 589, 18, 433, 23, 'Ziekenhuisopname'], ['Mei 2022', 321, 216, 12, 150, 22, 'Ziekenhuisopname'], ['Jun 2022', 541, 323, 10, 248, 29, 'Ziekenhuisopname'], ['Jul 2022', 670, 374, 26, 364, 38, 'Ziekenhuisopname'], ['Aug 2022', 305, 184, 12, 174, 21, 'Ziekenhuisopname'], ['Okt 2021', 0, 132, 7, 277, 21, 'IC-opname'], ['Nov 2021', 0, 380, 24, 768, 50, 'IC-opname'], ['Dec 2021', 2, 367, 9, 734, 43, 'IC-opname'], ['Jan 2022', 19, 119, 9, 270, 24, 'IC-opname'], ['Feb 2022', 59, 104, 4, 165, 2, 'IC-opname'], ['Mrt 2022', 132, 98, 8, 103, 11, 'IC-opname'], ['Apr 2022', 59, 66, 0, 27, 3, 'IC-opname'], ['Mei 2022', 15, 16, 1, 7, 3, 'IC-opname'], ['Jun 2022', 30, 22, 0, 19, 4, 'IC-opname'], ['Jul 2022', 23, 29, 0, 23, 6, 'IC-opname'], ['Aug 2022', 15, 12, 1, 11, 5, 'IC-opname']]);
      var filter = new google.visualization.ControlWrapper({
        controlType: 'CategoryFilter',
        containerId: 'filter_vaccinatiestatus_oud',
        options: {
          filterColumnIndex: 6,
          ui: { caption: 'Kies een type', label: false, allowTyping: false, allowMultiple: false, allowNone: false } },
          state: {'selectedValues': ['Positief-getest']}
      });
      var chart = new google.visualization.ChartWrapper({
        chartType: 'ColumnChart',
        containerId: 'grafiek_vaccinatiestatus_oud',
        view: {columns: [0,1,2,3,4,5]},
        options: {
        chartArea: {width:'100%', height:'80%'},
        hAxis: {textPosition: 'in'},
        vAxis: {textPosition: 'in'},
        isStacked: 'percent',
        colors: ['#91cf60', '#ffffbf', '#fc8d59', '#91bfdb', '#999999'],
        legend: {position: 'top',  maxLines: 3},
         } });
      var dashboard = new google.visualization.Dashboard(document.getElementById('dashboard_vaccinatiestatus_oud'));
      dashboard.bind(filter, chart);
      dashboard.draw(data);
    }

Op woensdag 5 april 2023 om 04:36:19 UTC+2 schreef P.Udayasooriyan:

Daniel LaLiberte

unread,
Oct 11, 2023, 11:00:45 AM10/11/23
to google-visua...@googlegroups.com
We have not yet re-released an updated version 52.  The problem may have been fixed in our development code, since we cannot reproduce it there, but there is at least one more breakage not involving controls that we still need to fix before we can proceed with the v52 release.

Wouter

unread,
Oct 12, 2023, 3:15:21 PM10/12/23
to Google Visualization API
Good to know, thank you for the information!

Op woensdag 11 oktober 2023 om 17:00:45 UTC+2 schreef Daniel LaLiberte:
Reply all
Reply to author
Forward
0 new messages