Problem with animation

13 views
Skip to first unread message

SEBASTIAN ULITA

unread,
Aug 20, 2020, 6:56:39 AM8/20/20
to Google Chart API
Below is part of my code. Whole database has 7 columns. I have a problem with animation on wykres1, wykres2 is normally animated, but on wykres1 I have got that communicate: 'Invalid column index 3. Should be an integer in the range [0-1]'. Column 3 has data below zero. Can it be a problem?
var wykres1 = new google.visualization.ChartWrapper({
          chartType: 'LineChart',
          containerId: 'wykresLiniowy1_div',
          options: {
            width: 600,
            height: 400,
            legend: 'top',
            vAxis: {format: 'percent'},
            animation: {
              duration: 4000,
              startup: 'true'
            }
          },
          view: { columns: [0, 3]},
        });
        
        var wykres2 = new google.visualization.ChartWrapper({
          chartType: 'LineChart',
          containerId: 'wykresLiniowy2_div',
          options: {
            width: 600,
            height: 400,
            legend: 'top',
            vAxis: {format: '# ###'},
            animation: {
              duration: 4000,
              startup: 'true'
            }
          },
          view: { columns: [0, 2, 1]},
          
        });
        
        var tabela7 = new google.visualization.ChartWrapper({
          chartType: 'Table',
          containerId: 'tabela7_div',
          options: {
            width: "100%", 
            height: 100
          },
          view: { 
              columns: [1],
              rows: [0]
          }
        });
        
        var tabela8 = new google.visualization.ChartWrapper({
          chartType: 'Table',
          containerId: 'tabela8_div',
          options: {
            width: "100%", 
            height: 100
          },
          view: { 
              columns: [2],
              rows: [0]
          }
        });

        dashboard.bind(filtr, [tabela1, tabela2, tabela3, tabela4,  tabela5, tabela6, wykres1, wykres2, tabela7, tabela8]);

        // Draw the dashboard.
        dashboard.draw(daneDoZasileniaWykresu);



https://www.veolia.pl/zasady-bezpieczenstwa-w-biurze-w-czasie-pandemii-koronawirusa


  

Twoje dane osobowe przetwarzamy w celu umożliwienia komunikowania się i obsługi korespondencji. Współadministratorami Twoich danych osobowych są spółki z Grupy Veolia. Więcej informacji o przysługujących Ci prawach oraz o przetwarzaniu Twoich danych osobowych znajdziesz w polityce prywatności.


Reply all
Reply to author
Forward
0 new messages