This repository was archived by the owner on Oct 23, 2025. It is now read-only.
forked from gevgeny/angular2-highcharts
-
Notifications
You must be signed in to change notification settings - Fork 2
This repository was archived by the owner on Oct 23, 2025. It is now read-only.
Series name with tooltip content. #7
Copy link
Copy link
Open
Description
Hi, I have used this package for my angular4 application. I am trying to display a normal tooltip on series name.
To display tooltip icon with series name, I have written HTML by doing tooltip icon is display with the series name but the issue is it also displaying with graph tooltip. The Tooltip should be displaying with series name only, which is displaying below the graph?
Components.ts
`
this.options = {
title: { text: 'Revenue' },
chart: { zoomType: 'x', type: 'areaspline'},
subtitle: { text: '' },
exporting: { enabled: false },
credits: { enabled: false },
series: [
{
name : 'Revenue <div class="app-tooltip"><a href="javascript:void(0)" class="material-icons">help_outline</a><span class="tooltip-wrapper tooltip-top">@kiwigrid/ngx-highcharts provides possibility to interact with native HighchartsChartObject chart object.</span></div>',
data: [29.9, 71.5, 106.4, 129.2, 45,13,120]
},
{
name : 'Revenue',
data: [-29.9, 4, -106.4, 0, 10,-100, 120]
}
],
yAxis: {
title: { text: 'Revenue (In $)' },
plotLines: [{
value: 0,
width: 1,
color: '#808080'
}]
},
xAxis: {
tickmarkPlacement: 'on',
title: { enabled: false },
categories: ['02-07-2017','02-08-2017','03-08-2017','04-24-2017','05-27-2017','06-18-2017','07-06-2017','07-19-2017','07-20-2017','09-05-2017']
},
tooltip: {
shared: true,
valuePrefix: '$',
useHTML: true
},
legend: {
useHTML: true
},
};`
I have attached screen short please check it and tell me how it is possible.
Metadata
Metadata
Assignees
Labels
No labels
