I'm trying to get the drilldown feature to work with my custom map. From what I gathered so far is that all I have to do is to add a drilldown property to my series.data, i.e. { id: 'a', value: 1, drilldown: 'A' }, and then add the series to drilldown to in my chartOptions.
Code: Select all
this.chartOptions = {
series: [{
data: [
{id: 'ar', value: 1, drilldown: null},
{id: 'kr', value: 3, drilldown: 'kortan'}
],
joinBy: 'id',
mapData: [
{id: 'ar', name: 'Hathr Kønthom Årgere', path: 'M410.3426751082695,-1212.6972229007235C410.3318769…'},
{id: 'dv', name: 'Dvargurörd', path: 'M220.16753534435384,-1244.8903732194574L222.591591…'},
{id: 'kr', name: 'Königreich Kortan', path: 'M277.65794398811335,-758.7553218844333C277.7974898…'}
],
type: 'map' }],
drilldown: {
series: [{
id: 'kortan',
data: [
{id:'tn', value: 2},
{id:'so', value: 4}
],
joinBy: 'id',
mapData: [
{id: 'tn', name: 'Taronn', path: 'M233.47345195058014,-1127.4966044701537C229.401562…'},
{id: 'so', name: 'Sost', path: 'M902.2166161201222,-670.3668269394242C902.20677489…'}
],
type: 'map' }] }}