apexcharts / vue-apexcharts

📊 Vue 2 component for ApexCharts
https://apexcharts.com
MIT License
1.33k stars 135 forks source link

vue2 Semi Donut Chart: strange padding left #492

Open MizuBishi opened 1 year ago

MizuBishi commented 1 year ago

Hi, I have strange padding left on my vue2 chart - used the Semi Donut Chart Example:

Screenshot 2023-06-13 at 17 11 28

I checked this issue Make Chart Margins and Padding Optional/Adjustable but still got the problem (padding-left: 0).

      series: [0, 0, 0, 0],
      chartOptions: {
        grid: {
          show: false,
          padding: {
            left: 0,
            right: 0,
          },
        },
        tooltip: {
          enabled: false,
        },
        states: {
          normal: {
            filter: {
              type: 'none',
            },
          },
          hover: {
            filter: {
              type: 'none',
            },
          },
          active: {
            filter: {
              type: 'none',
            },
          },
        },
        colors: ['#CCD7E2', '#00376E', '#8CCDE1', '#E5E3D3'],
        legend: {
          show: false,
        },
        dataLabels: {
          enabled: false,
        },
        chart: {
          type: 'donut',
          toolbar: {
            show: false,
          },
          sparkline: {
            enabled: true,
          },
        },
        plotOptions: {
          pie: {
            expandOnClick: false,
            startAngle: -180,
            endAngle: 0.00000000001,
          },
        },
      },

Thank you so much for your work and I hope somebody has a solution for this problem!

github-actions[bot] commented 3 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.