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

ag-charts-vue3

Package Overview
Dependencies
Maintainers
0
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ag-charts-vue3

AG Charts Vue 3 Component

  • 10.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.6K
increased by2.61%
Maintainers
0
Weekly downloads
 
Created
Source

Vue3 Charting Library

AG Charts Logo

GitHub Release NPM Downloads GitHub Repo stars GitHub forks

Quality Gate Status npms.io Maintenance Score GitHub commit activity Dependents (via libraries.io?style=for-the-badge)

AG Charts is a fully-featured and highly customizable canvas-based Vue3 Charting library. It delivers outstanding performance and has no third-party dependencies.


Preview of AG Charts  Vue3 Charting Examples

📖 Overview

Table of Contents

AG Charts is available in two versions: Community & Enterprise.

  • ag-charts-community is free, available under the MIT license, and comes with core series types, such as Pie, Area, Bar, Scatter and Bubble in addition to all of the key features expected from a Vue3 charting library, including Accessibility, Tooltips, Themes, Markers, Legends, Axis Types and Secondary Axes.
  • ag-charts-enterprise is available under a commercial license and comes with additional series types, such as Maps, Sankey, Radar, and Waterfall Charts as well as advanced interactivity features, like Animations, Context Menus, Zooming, Navigators, Synchronization and much more, including Financial Charts.

Features & Chart Types

Chart Types

AG Charts offers 20+ Vue3 Chart types, each of which are fully customisable:

Chart TypeAG Charts CommunityAG Charts Enterprise
Bar
Line
Area
Scatter
Bubble
Pie
Donut
Combination
Box Plot
Bullet
Candlestick
OHLC
Heatmap
Histogram
Nightingale
Radar Line
Radar Area
Radial Column
Radial Bar
Range Area
Range Bar
Sunburst
Treemap
Waterfall
Sankey
Chord
Features

AG Charts Vue3 Charting Library comes with every feature you'd expect:

FeatureAG Charts CommunityAG Charts Enterprise
Accessibility
Localisation
Series Highlighting
Tooltips
Animations
Context Menu
Crosshairs
Navigator
Synchronization
Zoom

[!IMPORTANT] Visit the Pricing page for a full comparison.

Financial Charts

Build interactive financial charts featuring advanced annotations with minimal configuration, all you need to do is provide your data:

template: `<ag-financial-charts :options="options"/>`,
components: {
    'ag-financial-charts': AgFinancialCharts,
},
data() {
    return {
        options: {
            data: getData(),
        },
    };
}

Once created, users will have a Financial Chart that they can interact with and add annotations to.

Financial Charts Annotations

The default chart type is Candlestick, with additional types like OHLC and Line for versatile data visualisation.


Static Badge

Maps

The Maps Series let you visualise geographic data in different ways.

Preview of Map Charts from AG Charts

Maps can display data using Shapes, Lines and Marker series:

const options = {
    topology: topology,
    series: [
        {
            type: 'map-shape',
            data: pacific,
            idKey: 'name',
            title: 'Pacific',
        },
        // ...
    ],
    legend: {
        enabled: true,
    },
    // ...
};
Static Badge

⚡️ Quick Start

AG Charts are easy to set up - all you need to do is provide your data and series type along with any other chart options.

Installation

$ npm install ag-charts-vue3

Setup

  1. Import the Vue Chart
<template>
    <!-- The AG Charts component with chartsOptions as an attribute -->
    <ag-charts :options="options"> </ag-charts>
</template>

<script>
    import { ref } from 'vue';

    // Vue Chart Component
    import { AgCharts } from 'ag-charts-vue3';

    export default {
        name: 'App',
        components: {
            'ag-charts': AgCharts,
        },
        setup() {},
    };
</script>
  1. Instantiate the Vue3 Chart
// Chart Options
const options = {};

// Create Chart
const chart = agCharts.AgCharts.create(options);
  1. Define Chart Data and Series
<template>
    <!-- The AG Charts component with chartsOptions as an attribute -->
    <ag-charts :options="options"> </ag-charts>
</template>

<script>
    setup() {
      // Chart Options
        const options = ref({
         // Data: Data to be displayed in the chart
         data: [
          { month: 'Jan', avgTemp: 2.3, iceCreamSales: 162000 },
          { month: 'Mar', avgTemp: 6.3, iceCreamSales: 302000 },
          { month: 'May', avgTemp: 16.2, iceCreamSales: 800000 },
          { month: 'Jul', avgTemp: 22.8, iceCreamSales: 1254000 },
          { month: 'Sep', avgTemp: 14.5, iceCreamSales: 950000 },
          { month: 'Nov', avgTemp: 8.9, iceCreamSales: 200000 },
        ],
        // Series: Defines which chart type and data to use
        series: [{ type: 'bar', xKey: 'month', yKey: 'iceCreamSales' }],
        });
      return {
        options,
      };
    },
</script>
  1. Vue Chart Component
<template>
    <!-- The AG Charts component with chartsOptions as an attribute -->
    <ag-charts :options="options"> </ag-charts>
</template>

[!IMPORTANT] For more information on building Vue3 Charts with AG Charts, refer to our Documentation.

🤝 Support

Enterprise Support

AG Charts Enterprise customers have access to dedicated support via ZenDesk, which is monitored by our support & engineering teams.

Bug Reports

If you have found a bug, please report it in this repository's issues section.

GitHub Issues

Questions

Look for similar problems on StackOverflow using the ag-charts tag. If nothing seems related, post a new message there. Please do not use GitHub issues to ask questions.

Stack Exchange questions

Contributing

AG Charts is developed by a team of co-located developers in London. If you want to join the team send your application to info@ag-grid.com.

⚠️ License

ag-charts-community is licensed under the MIT license.

ag-charts-enterprise has a Commercial license.

See the LICENSE file for more info.

AG ChartsLogoAG Grid

AG Grid is our flagship product, a fully-featured and highly customizable Vue3 Data Grid. It delivers outstanding performance, has no third-party dependencies and comes with support for React Logo React, Angular Logo Angular and Vue Logo Vue.

AG Charts is used within AG Grid to power the Integrated Charting feature.

Learn more at ag-grid.com


Follow us to keep up to date with all the latest news from AG Grid:

Twitter Badge LinkedIn Badge YouTube Badge Blog Badge

Keywords

FAQs

Package last updated on 08 Aug 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