Google chart timeline redenring problems.

21 views
Skip to first unread message

Ciro Abad Cruz Vega

unread,
Jul 20, 2018, 2:09:25 PM7/20/18
to Google Visualization API

Hi everyone. I'm trying to show a timeline chart using Polymer 2 and the google-chart web element, but every time I try to show it appears like this.
















this is my code
 <google-chart id="charGoo" selection="{{evento}}" on-google-chart-select="selected" type="timeline" options="[[opciones]]"
                   cols="[[cols]]" rows="{{data}}">
               </google-chart>

 opciones: {
                       type: Object, notify: true, value:
                       {
                           width: 900,
                           chartArea: { left: 400, top: 0, width: 900, height: 200 },
                           tooltip: { trigger: 'focus', isHtml: false },
                           timeline: {
                               colorByRowLabel: true,
                               groupByRowLabel: true,
                               backgroundColor: '#ffd'
                           },
                           hAxis: {
                               minValue: new Date(2000, 0, 0),
                               maxValue: new Date(2000, 0, 0)
                           },
                           vAxis: {
                               scaleType: 'log'
                           }
                       }

                    },//las opciones de la grafica la agregamos aqui

Thanks for any help.
Reply all
Reply to author
Forward
0 new messages