Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue3-apexcharts

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue3-apexcharts

  • 1.5.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
138K
decreased by-6.68%
Maintainers
1
Weekly downloads
 
Created

What is vue3-apexcharts?

vue3-apexcharts is a Vue.js component for ApexCharts, a modern charting library that helps developers create interactive and responsive charts. This package allows seamless integration of ApexCharts into Vue 3 applications, providing a wide range of chart types and customization options.

What are vue3-apexcharts's main functionalities?

Line Chart

This feature allows you to create a line chart to visualize data trends over time. The code sample demonstrates how to set up a basic line chart with sales data.

{"template":"<apexchart type=\"line\" :options=\"chartOptions\" :series=\"series\" />","script":"import { defineComponent } from 'vue';\nimport VueApexCharts from 'vue3-apexcharts';\n\nexport default defineComponent({\n  components: { VueApexCharts },\n  data() {\n    return {\n      series: [{\n        name: 'Sales',\n        data: [10, 41, 35, 51, 49, 62, 69, 91, 148]\n      }],\n      chartOptions: {\n        chart: {\n          height: 350,\n          type: 'line'\n        },\n        title: {\n          text: 'Product Sales'\n        },\n        xaxis: {\n          categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep']\n        }\n      }\n    };\n  }\n});"}

Bar Chart

This feature allows you to create a bar chart to compare different categories of data. The code sample demonstrates how to set up a basic bar chart with revenue data.

{"template":"<apexchart type=\"bar\" :options=\"chartOptions\" :series=\"series\" />","script":"import { defineComponent } from 'vue';\nimport VueApexCharts from 'vue3-apexcharts';\n\nexport default defineComponent({\n  components: { VueApexCharts },\n  data() {\n    return {\n      series: [{\n        name: 'Revenue',\n        data: [30, 40, 45, 50, 49, 60, 70, 91, 125]\n      }],\n      chartOptions: {\n        chart: {\n          height: 350,\n          type: 'bar'\n        },\n        title: {\n          text: 'Monthly Revenue'\n        },\n        xaxis: {\n          categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep']\n        }\n      }\n    };\n  }\n});"}

Pie Chart

This feature allows you to create a pie chart to show proportions of a whole. The code sample demonstrates how to set up a basic pie chart with team performance data.

{"template":"<apexchart type=\"pie\" :options=\"chartOptions\" :series=\"series\" />","script":"import { defineComponent } from 'vue';\nimport VueApexCharts from 'vue3-apexcharts';\n\nexport default defineComponent({\n  components: { VueApexCharts },\n  data() {\n    return {\n      series: [44, 55, 13, 43, 22],\n      chartOptions: {\n        chart: {\n          height: 350,\n          type: 'pie'\n        },\n        labels: ['Team A', 'Team B', 'Team C', 'Team D', 'Team E'],\n        title: {\n          text: 'Team Performance'\n        }\n      }\n    };\n  }\n});"}

Other packages similar to vue3-apexcharts

Keywords

FAQs

Package last updated on 12 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc