Skip to content

How do I customize Horizontal BoxPlot Chart Popover/Tooltip? #4651

Closed Answered by IceBreakerG
IceBreakerG asked this question in Q&A
Discussion options

You must be logged in to vote

I messed up the template portion As well as the custom tooltip. This fixes the issue:

Template

<apx-chart
  style="width: 100%"
  [chart]="chartOptions.chart"
  [plotOptions]="chartOptions.plotOptions!"
  [series]="chartOptions.series"
  [stroke]="chartOptions.stroke"
  [title]="chartOptions.title"
  [tooltip]="chartOptions.tooltip!" <!-- This was missing -->
  [xaxis]="chartOptions.xaxis!"
/>

Typescript Definition

chartOptions = {
  ...
  tooltip: {
        enabled: true,
        custom: function ({ series, seriesIndex, dataPointIndex, w }) {
          let data = w.globals.initialSeries[seriesIndex].data[dataPointIndex]

          console.log('Custom Tooltip Data', data)

          return (

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by IceBreakerG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant