I'm trying to use a Google Chart in a Custom Visualization, and it doesn't seem to be importing correctly.
Here is my import statement in Main.ts:
import * as google from "https://www.gstatic.com/charts/loader.js";
It finishes building successfully, but it does have a warning about that library not being resolved:
[Info] [08:24:05] Started building the sources...
'https://www.gstatic.com/charts/loader.js' is imported by renderer\Main.ts, but could not be resolved – treating it as an external dependency
[Info] [08:24:07] Finished building the sources in 2000 ms
Then when I try to validate it in a Dashboard, I get an error message: "
Cannot read property 'forEach' of null". I'm guessing that's because it could not be resolved when trying to import.
Is there anything else that has to be installed or imported to be able to use Google Charts or any other libraries except for D3?
------------------------------
Thanks,
Rory Cornelius
------------------------------
#CognosAnalyticswithWatson