myChart.showLoading();
$.get('https://raw.githubusercontent.com/mahesh199827/indiajson/main/INDIA_STATES.geojson', function (indiaJson) {
myChart.hideLoading();
echarts.registerMap('India', indiaJson, );
option = {
title: {
// text: 'USA Population Estimates (2012)',
// subtext: 'Data from www.census.gov',
// sublink: 'http://www.census.gov/popest/data/datasets.html',
// left: 'right'
},
tooltip: {
trigger: 'item',
showDelay: 0,
transitionDuration: 0.2
},
visualMap: {
left: 'right',
min: 500000,
max: 38000000,
inRange: {
color: [
'#313695',
'#4575b4',
'#74add1',
'#abd9e9',
'#e0f3f8',
'#ffffbf',
'#fee090',
'#fdae61',
'#f46d43',
'#d73027',
'#a50026'
]
},
text: ['High', 'Low'],
calculable: true
},
toolbox: {
show: true,
//orient: 'vertical',
left: 'left',
top: 'top',
feature: {
dataView: { readOnly: false },
restore: {},
saveAsImage: {}
}
},
series: [
{
name: 'India PopEstimates',
type: 'map',
roam: true,
map: 'India',
emphasis: {
label: {
show: true
}
},
data: [
{ name: 'KARNATAKA', value: 4822023 },
]
}
]
};
myChart.setOption(option);
});
how to plot this in appsmith can anyone guide me on this?