Kyvis-Labs / ignition-apexcharts-module

The module provides Perspective ApexCharts components
Apache License 2.0
59 stars 12 forks source link

module arg of Apexchart doesn't work #46

Closed naderus closed 1 year ago

naderus commented 1 year ago

It seems the module option of Apexchart doesn't work or the module doesn't pass "module" to the the library. For example, I want to add the multi-select option so I add a selection module to the chart like the following code:

selection: { enabled: true, // Enable selection },

// Create the chart instance const chart = new ApexCharts(document.querySelector('#chart'), { series: chartData, options: chartOptions, modules: [Selection], });

chart.render();

traviscox commented 1 year ago

That would go inside of the options property on the component:

options: {
    chart: {
        selection: {
            enabled: true
        }
    }
}
naderus commented 1 year ago

This options you mention here is related to axis select no the data item on chart itself.

naderus commented 1 year ago

I find the solution for this by using the state object in options: { "active": { "allowMultipleDataPointsSelection": true, "filter": { "type": "darken", "value": 0.2 } } } Please close this issue

traviscox commented 1 year ago

Awesome!