HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //proc/self/root/home/arjun/projects/buyercall/buyercall/assets/vue/widgets/EmailSent/emailsent.vue
<template>
  <div>
    <Loader :loading="loading">
      <div class="card">
        <div class="card-body">
          <div class="d-sm-flex flex-wrap">
            <h4 class="card-title mb-4">Email Sent</h4>
            <div class="ms-auto">
              <ul class="nav nav-pills">
                <li class="nav-item">
                  <a class="nav-link" href="javascript: void(0);">Week</a>
                </li>
                <li class="nav-item">
                  <a class="nav-link" href="javascript: void(0);">Month</a>
                </li>
                <li class="nav-item">
                  <a class="nav-link active" href="javascript: void(0);">Year</a>
                </li>
              </ul>
            </div>
          </div>
  
          <!-- <vue-apex-charts
            class="apex-charts"
            type="bar"
            dir="ltr"
            height="360"
            :series="series"
            :options="chartOptions"
          ></vue-apex-charts> -->
          <apexchart
    class="apex-charts"
    type="bar"
    dir="ltr"
    height="360"
    :series="series"
    :options="chartOptions"
  ></apexchart>
        </div>
      </div>
    </Loader>
  </div>
 
</template>

<script>
// import VueApexCharts from 'vue-apexcharts';
import VueApexCharts from 'vue3-apexcharts';
import Loader from '../../components/Loader/loader.vue';

/**
 * Email-sent component
 */
export default {
  components: {
    VueApexCharts,
    Loader,
    apexchart: VueApexCharts,
  },
  data() {
    return {
      loading: true,
      series: [
        {
          name: 'Series A',
          data: [44, 55, 41, 67, 22, 43, 36, 52, 24, 18, 36, 48],
        },
        {
          name: 'Series B',
          data: [13, 23, 20, 8, 13, 27, 18, 22, 10, 16, 24, 22],
        },
        {
          name: 'Series C',
          data: [11, 17, 15, 15, 21, 14, 11, 18, 17, 12, 20, 18],
        },
      ],
      chartOptions: {
        chart: {
          stacked: true,
          toolbar: {
            show: false,
          },
          zoom: {
            enabled: true,
          },
        },
        plotOptions: {
          bar: {
            horizontal: false,
            columnWidth: '15%',
            endingShape: 'rounded',
          },
        },
        dataLabels: {
          enabled: false,
        },
        xaxis: {
          categories: [
            'Jan',
            'Feb',
            'Mar',
            'Apr',
            'May',
            'Jun',
            'Jul',
            'Aug',
            'Sep',
            'Oct',
            'Nov',
            'Dec',
          ],
        },
        colors: ['#556ee6', '#f1b44c', '#34c38f'],
        legend: {
          position: 'bottom',
        },
        fill: {
          opacity: 1,
        },
      },
    };
  },
  mounted() {
    setTimeout(() => {
      this.loading = false;
    }, 2000);
  },
};
</script>