У меня есть круговая диаграмма с всплывающей подсказкой, показывающей некоторые дополнительные данные.Как я могу получить эти данные для экспорта с помощью datatable?
Мне нужно добавить {point.custom} в виде столбца при нажатии на экспорт> просмотр DataTable
JSFiddle Link: https://jsfiddle.net/mewohraz/1/
Highcharts.chart('container', {
chart: {
plotBackgroundColor: null,
plotBorderWidth: null,
plotShadow: false,
type: 'pie'
},
title: {
text: 'Browser market shares in January, 2018'
},
tooltip: {
pointFormat: '{point.custom}'
},
plotOptions: {
pie: {
allowPointSelect: true,
cursor: 'pointer',
dataLabels: {
enabled: true,
format: '<b>{point.name}</b>: {point.percentage:.1f} %',
style: {
color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
}
}
}
},
series: [{
name: 'Brands',
colorByPoint: true,
data: [{
name: 'Chrome',
y: 61.41,
custom: 200,
sliced: true,
selected: true
}, {
name: 'Internet Explorer',
y: 11.84,
custom: 100
}, {
name: 'Firefox',
y: 10.85,
custom: 300
}]
}]
});