Closed scs2007022 closed 1 month ago
@scs2007022 Thank you for your question
Please, take a look at the documentation related to JSOM maps geojson
An example that suits you: dynamic-maps-loading
options:
code to copy:
const json = context.panel.data.series[0].fields[0].values[0];
/**
* Map Name
*/
const mapName = "World";
/**
* Register map
*/
context.echarts.registerMap(mapName, { geoJSON: json });
/**
* Return settiings
*/
return {
title: {
text: mapName,
left: "right",
},
geo: {
map: mapName,
roam: true,
},
};
data source I use that is business-input
Data source configuration:
json
from https://geojson-maps.kyd.au/
I run it on 10.3.1 and Business 6.3.0 The result is :
I simply copy the code in https://echarts.volkovlabs.io/d/X1mkMIFVz/geo-map?orgId=1&editPanel=11 in my grafana, but it does not work and having the following error:
Besides, I tried to use
where myGeoJSON is the raw string from https://geojson-maps.kyd.au/ I can see the preview of the map, but, it failed to save the panel and having the following message in log: grafana[97109]: client.go:264: RoundTripper returned a response & error; ignoring response