Replies: 1 comment
-
Here's an example html file for a column chart (based on the brush-chart sample in the apexcharts code distro). May rely on current version 3.46.0 of apexcharts. ` <title>Column brush chart</title>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Does apexchart have an option to show a xaxis zoom/pan slider as shown in https://echarts.apache.org/examples/en/editor.html?c=mix-zoom-on-value at the bottom of the chart?
Maybe a feature where default shows a certain amount of group label columns and automatically show a horizontal scrollbar to scroll to other group label columns?
I'm using apexchart in angular with ng-apexchart and specifically need the https://apexcharts.com/javascript-chart-demos/column-charts/column-with-group-label/ combined with grouping per between tick like https://apexcharts.com/javascript-chart-demos/column-charts/basic/ but I also require that zoom/pan slider since I'll be dealing with multiple sets of large data sets.
Apexchart seems to be rendering every charts with all the column which seems to be the cause of the freezing of my app. So i hoped apexchart has some zoom functionality to render only a part of the data and 'virtualize' the other data if the end user scrolled/panned/zoomed.
The closest i think is https://apexcharts.com/javascript-chart-demos/line-charts/brush-chart/ but there is only an example using line chart and not a column chart with group columns group labels.
There is also https://www.npmjs.com/package/apexcharts#a-little-more-than-the-basic but no source code to see how it is done but is this possible with group labels?
There seemed to be various issus related such as #1195 and has, what appears to be, a desirable gif behavior of zoom resize columns to not be a thin sliver column for large data set but tickplacement to 'on' removes group labels completely and was mentioned only timeline xaxis works not category or group label.
https://www.npmjs.com/package/apexcharts#interactivity was also an option i thought was an ok alternative to apply to xaxis group label but I found that #333 , apexchart removed it.
There are also quite of few discussions that are related or similar but most are unanswered/partially answered.
Another 'last hope' approach was maybe calling update series in zoom event like https://stackoverflow.com/questions/69828906/apexchart-column-resize-on-zoom and hopefully there is some data in the callback related to the xaxis and group to 'clip' the series but there isn't any exec function in ng-apexchart so i couldn't fully test is this approach would work.
I guess thats my third question. in ng-apexchart how to call the chart methods like https://apexcharts.com/docs/methods/#exec or updateseries etc. since there is nothing like
var chart = new ApexCharts(el, options); chart.updateSeries(...);
in any of the angular examples?Beta Was this translation helpful? Give feedback.
All reactions