Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not so smooth gredient #498

Open
donmb1 opened this issue Aug 31, 2023 · 0 comments
Open

Not so smooth gredient #498

donmb1 opened this issue Aug 31, 2023 · 0 comments

Comments

@donmb1
Copy link

donmb1 commented Aug 31, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant