Select to view content in your preferred language

API Key for ArcGIS Charts

86
0
12-09-2024 01:48 PM
eccdev
by
Emerging Contributor

Hi all,

I'm trying to use this example for charts, but use data with an API key:

https://developers.arcgis.com/javascript/latest/tutorials/display-and-create-charts-components/

I'm using esriconfig:

import esriConfig from "@arcgis/core/config.js";

esriConfig.apiKey= "YOUR_ACCESS_TOKEN";

 

The chart is in a map. That map uses the same API key and is on the same website and it works, but not the chart.

0 Kudos
0 Replies