Skip to content

Not so smooth gredient #498

Open
Open
@donmb1

Description

Hi folks,
I have an issue with vue apexcharts. When plotting a gradient on my website, it looks like in the screenshot.
This is my configuration

const chartOptions = computed(() => { 
  return {
    chart: {
      type: 'area',
      toolbar: {
        show: false
      },
      zoom: {
        enabled: true
      }
    },
    colors: ['#516ED7'],
    dataLabels: {
      enabled: false
    },
    stroke: {
      curve: 'smooth',
      width: 5
    },
    fill: {
      type: "gradient",
      gradient: {
        shadeIntensity: 1,
        opacityFrom: 0.9,
        opacityTo: 0.6
      }
    },
    xaxis: {
      categories: xAxisData.value
    },
    yaxis: {
      tickAmount: 3,
      forceNiceScale: true,
      min: 0
    }
  }
})
Screenshot 2023-08-31 at 10 14 44

How could this possibly happen?

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions