angular-google-charts icon indicating copy to clipboard operation
angular-google-charts copied to clipboard

Timeline Chart: Can't get a click event from selecting a column

Open analodicruz opened this issue 4 years ago • 1 comments

When i do click on a bar, i have a click event, but not if i click over a column.

This is part of my code:

    [ 'ANGRA DOS REIS', 'Marta', 'color: blue; opacity: 0.5;', new Date(2021, 8, 3), new Date(2021, 8, 8) ],
    [ 'ANGRA DOS REIS', 'Eagle Phoenix', '#cc00cc', new Date(2021, 8, 5),  new Date(2021, 8, 9) ],
    [ 'ANGRA DOS REIS', 'Gipsy Danger', '#cccc00', new Date(2021, 8, 8),  new Date(2021, 8, 12) ],
    [ 'CADEBELO', 'Marta', '#cc0000', new Date(2021, 8, 10),  new Date(2021, 8, 15) ],
    [ 'CADEBELO', 'Saber Athena', '#0000cc', new Date(2021, 8, 4),  new Date(2021, 8, 7) ],
    [ 'SANTOS', 'Eagle Phoenix', '#cc0000', new Date(2021, 8, 2),  new Date(2021, 8, 4) ],
    [ 'SANTOS', 'Gipsy Danger', '#00cc00', new Date(2021, 8, 5),  new Date(2021, 8, 13) ],
    [ 'SANTOS', 'Saber Athena', '#cccccc', new Date(2021, 8, 13),  new Date(2021, 8, 15) ],
  ];

  columns = [
    { type: 'string', id: 'Terminal' },
    { type: 'string', id: 'Ship' },
    { type: 'string', id: 'style', role: 'style' },
    { type: 'date', id: 'Start' },
    { type: 'date', id: 'End' }
  ];

I'd like to get a click event when selecting a column, like "ANGRA DOS REIS".

Thanks

analodicruz avatar Sep 24 '21 12:09 analodicruz

is in this way, the style works ?

xkx9431 avatar Jun 21 '22 10:06 xkx9431