google / google-visualization-issues

288 stars 35 forks source link

Timelines : Graphics is not supported with custom user-agents #2952

Open MickaelVanhoutte opened 2 years ago

MickaelVanhoutte commented 2 years ago

We use some custom user-agents for our mobile apps using webviews and in those cases charts are not displayed (only a "Graphics is not supported" red box). This can be reproduced on the timeline example page (https://developers.google.com/chart/interactive/docs/gallery/timeline) by setting a "test" user-agent (using a user-agent extension like User-Agent Switcher for Chrome)

First why and how the user-agent is used by the library ? And is there any workaround for my use-case ? Thanks in advance !

MickaelVanhoutte commented 2 years ago

Up ?

dlaliberte commented 2 years ago

The Timeline chart needs SVG, but it checks that using the user-agent, which is should not do. Should be fixable. Thanks.