reactjs - How to Create a Conical Gradient Fill in ApexCharts? - Stack Overflow

I'm working on a chart using ApexCharts in a Next.js project and have encountered an issue while t

I'm working on a chart using ApexCharts in a Next.js project and have encountered an issue while trying to apply a gradient fill. Initially, I attempted to use the gradient options available in ApexCharts (vertical, horizontal, diagonal, diagonal2), but they didn't achieve the desired conical effect.

As a workaround, I decided to use an image background for the fill, where the image is a dynamically generated SVG that contains the gradient I need. The SVG is served from an endpoint, and it works well in terms of generating the gradient, but the issue is that it doesn't align properly with the chart.

For reference, you can check out the chart with a score of 95 (I have provided the sandbox link below), where this misalignment is noticeable.

Thanks a lot for any help or insights you can offer!

code-sandbox:

Github-Discussion: .js/discussions/4930

Image

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745290135a4620806.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信