I am using the amChart4 version. I would like to expose only the top 10 Series ToolTips in LineChart among amCharts. Read the various documentation https://www.amcharts.com/docs/v4/concepts/series/ https://www.amcharts.com/docs/v4/concepts/tooltips/ I've read all of them but couldn't find a way. My Series code is as follows.
enter code here
function createSeries(field) {
let series = mChart.series.push(new am4charts.LineSeries());
series.dataFields.categoryX = 'date';
series.name = field;
series.dataFields.valueY = field;
series.tooltipText = '[#000]{valueY.value}[/]';
series.fillOpacity = 0.3;
series.tensionX = '0.77';
series.tooltipText = '{name} : {valueY}';
series.simplifiedProcessing = true;
series.tooltip.label.adapter.add('text', function (text, target) {
if (target.dataItem && target.dataItem.valueY < 10) {
return '';
} else {
return text;
}
});
}