New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

gridy-chart-apexcharts

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gridy-chart-apexcharts

GridyGrid chart component ApexCharts driver

2.1.2
latest
68

Supply Chain Security

100

Vulnerability

75

Quality

76

Maintenance

100

License

Version published
Weekly downloads
22
Maintainers
1
Weekly downloads
 
Created

GridyGrid chart component ApexCharts driver

Installation

npm i gridy-grid apexcharts gridy-chart-apexcharts gridy-grid-default sk-theme-default

and plug it to your page

<script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>

then add element to your container or setup it programmatically

    <gridy-grid id="gridyGrid" base-path="/node_modules/gridy-grid/src" sort-field="$.title">
        <gridy-data-source fields='[{ "title": "Price1", "path": "$.price1" },{ "title": "Price2", "path": "$.price2" }]'
                       datasource-type="DataSourceLocal" datapath="$.data"></gridy-data-source>
    
        <gridy-chart dri="apex-charts" type="bar" field-price1="Price1" field-price2="Price2" width="400" height="300"></gridy-chart>
    
    </gridy-grid>
    <script type="module">
        import { GridyGrid } from '/node_modules/gridy-grid/src/gridy-grid.js';
        let data = [];
        for (let i = 0; i < 10; i++) {
            data.push({ price1: 200 * i, price2: 100 * i })
        }
        let grid = document.querySelector('#gridyGrid');
        grid.addEventListener('bootstrap', () => {
            grid.charts[0].addEventListener('skrender', (event) => {
                grid.dataSource.loadData(data);
            });
        });
        customElements.define('gridy-grid', GridyGrid);
    </script>
    

FAQs

Package last updated on 27 Oct 2022

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