MapChart
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
import React from 'react'
import { Viz } from 'a10-gui-dgp-viz'
const { MapChart } = Viz
export const MyDashboard = () => {
return (
<MapChart
name="MY MAP"
data={{ series: [...] }}
color="green"
/>
)
}interface IMapProps extends IBasicVizChartProps {
color?: string
subChartDataKey?: string
}{
"vizName": "MapChart", // The name of the visualization
"dataSourceID": "ROT.ADC.MAP_DATA", // The data source ID to provide data to the visualization
"name": "MY MAP", // The title name of the chart
"color": "green"
}// the country code use "World, Eckert III projection, high resolution"
// http://code.highcharts.com/mapdata
{
series: [{
name: 'Geo-Locations',
data: [
{code: 'us', name: 'USA', value: 100},
{code: 'in', name: 'India', value: 200},
{code: 'cn', name: 'China', value: 300},
]
}],
}