title: ApexCharts.js Line Chart - Display percent from total in tooltip
body: <p>I want to display percent instead of an integer.
  Now it simply shows the value as integer when hovering on the data point of the chart (the tooltip).</p>
  <p>I think I need to set in the formatter formula like this:</p>
  <pre><code>let test = value / SUM(all_values)
  return test.toFixed(0) + '%'
  </code></pre>
  <p>But, I could not find it in their documentation, the best I found is this one which always gives me 100%, per every data point:</p>
  <pre><code>    tooltip: {
        y: {
          formatter: function(value, opts) {
                  let percent = opts.w.globals.seriesPercent[opts.seriesIndex][opts.dataPointIndex];
                  return percent.toFixed(0) + '%'
  
          }
        }
      }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/SDI5Z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SDI5Z.png" alt="Gives me wrong value of 100% per each data point" /></a></p>