apexcharts / apexcharts.js

📊 Interactive JavaScript Charts built on SVG
https://apexcharts.com
MIT License
14.06k stars 1.28k forks source link

Grid lines overlapping legends #4293

Open drashtipatoliyaARIS opened 4 months ago

drashtipatoliyaARIS commented 4 months ago

Description

I am facing issue in floating legends. legends are overlapped by gridlines

Steps to Reproduce

Attaching code of legend config: legend: { show: true, showForSingleSeries: true, position: 'left', horizontalAlign: 'left', floating: true, fontSize: '12px', offsetX: 20, offsetY: -4, markers: { width: 15, height: 2, radius: 0, offsetY: -3 }, tooltipHoverFormatter: function (seriesName, opts) { return seriesName + ' - ' + opts.w.globals.series[opts.seriesIndex][opts.dataPointIndex]?.toFixed(2) + ' %' + '' } }

I have more than 10 legends which I want to place on left portion of line chart. But lines overlap some of the legend text. as length is more so legends can appear at any place. is there a way to set zindex of the legends more? I tried with CSS. it is not working.

Expected Behavior

Actual Behavior

Screenshots

image

Reproduction Link

https://codesandbox.io/p/sandbox/react-basic-example-forked-4fzc2q

drashtipatoliyaARIS commented 3 weeks ago

Is there any updates on this?