Solvedapexcharts.js Series hide and show methods


I would love to have a hide and show method for series, so I can always be sure in what state my series is.
I have multiple legends who all toggle some series. Sometimes more than one. An I had to build a workaround to know which of the series is hidden and which is not.
It would also be great to hide a series on render. Like an additional option in the series configuration.
I have large charts in which the user can filter what he would like to see in the chart.
Per default only one option (series) is visible and the user can show more options if he wishes to.


16 Answers

✔️Accepted Answer

Added new methods
showSeries and hideSeries.
Also, toggleSeries will return a boolean value whether the series is hidden or not.
The change will be reflected in the next patch/minor release.

Other Answers:

+1 for this.

We need showSeries() and hideSeries()

In addition can we get highlightSeries() as a method?


I need to hide all series except the first one by default.

Related Issues:

apexcharts.js x-axis is displayed as local datetime instead of UTC
for incoming people facing this: as @drpuur showed in his codepen just add: this will fix it for bot...
apexcharts.js Make Chart Margins and Padding Optional/Adjustable
@benhaynes The way to remove all paddings/margins would be hide the y-axis by = false Rem...
apexcharts.js Compilation error TS1122 in apexcharts.d.ts
@sugihartolim ApexCharts is also exported as commonjs in the dist directory Can you please try ...
apexcharts.js Series hide and show methods
Added new methods showSeries and hideSeries Also toggleSeries will return a boolean value whether th...
helm User "system:serviceaccount:kube-system:default" cannot get namespaces in the namespace "default"
That's because you don't have the permission to deploy tiller add an account for it: Console output:...
helm Error: no available release name found
Per #2224 (comment) the following commands resolved the error for me: Hi folks i just don't have any...
helm unable to retrieve the complete list of server APIs
For anyone who hits this it's caused by api-services that no longer have backends running.. In my ca...
helm helm upgrade --install no longer works
I thought I was experiencing the same problem but it turned out I just had an old delete (but not pu...
helm system:default not sufficient for helm, but works for kubectl
Per jayunit100 's advice add role cluster-admin to serviceaccount kube-system:default works for me b...
helm Values not exist with loop over a range
@worldsayshi For what it's worth I just ran into this same issue and it turns out there's a relevant...
helm Support for using {{ values }} within values.yaml
YAML also provides a handy feature called anchors which let you easily duplicate content across your...
helm Accessing values of the subchart with dash in the name
Use the index template function to access a value with a '-' in the name: {{ index .Values gitlab-ru...
helm Helm init fails on Kubernetes 1.16.0
The following sed works-for-me: The issue with @mattymo solution (using kubectl patch --local) is th...
helm Scoping releases names to namespaces
Explicitly It would be really nice if I could do the same things as I can do with services and other...
helm Error converting YAML to JSON could not find expected ':'
For what it's worth I have just run into very curious bug with (.Files.Glob configOverrides/*).AsCon...
helm Error: UPGRADE FAILED: cannot re-use a name that is still in use
For those stuck when initial deployment fails After you fix your chart but still cannot deploy with ...
react chartjs 2 Mix chart, labels.slice is not a function error
After fiddling with this for a little while I found a way to fix the example It is very easy and I d...
charts Helm Install for prometheus fails v3.0.1
In Helm 3 the stable repository is not set You have to manually add it Then you can use stable chart...
helm Error: UPGRADE FAILED: no resource with the name "anything_goes" found
Completely removing release from Helm via helm delete release works but it is not a viable solution ...
helm Warning after upgrading to 3.3.3
To close out this ticket.. Your ~/.kube/config should only be readable by the current user not the g...
helm Connection refused error when issuing helm install command
@cookkkie The service account needs to have a clusterRole: Admin default does not have a cluster adm...
react chartjs 2 Defaults creating error
got the same issue solve it by change the chart.js: ^2.9.4 in your package.json then delete node mod...
helm Add 'helm install --app-version' command/versioning a chart against an app version
Any update on this It seems PR from @Eraac does what is requested As @TD-4242 mentioned we also run ...
helm Error when updating Statefulsets
I had a similar error when adding a 2nd container (k8s 1.7.8) The first time I'm updating a stateful...
helm Using in range function
Just for reference here in case you are landing to this issue the documented way is working ...
helm Unable to perform helm upgrade due to resource conflict
This doesn't really help because I still need to manually remove old resources Output of helm versio...
helm Naming convention of Release and Chart
We ran into the exact same issue Usually the chart name is your app name I'm having difficulties und...
primeng Primeng breaks new Angular 9 project
Hello @mehmet-erim I have tested on this version Angular version: 9.0.0-rc.6 Primeng version: 9.0.0-...
helm Helm3: No 'init', doesn't use existing ~/.helm
Found this in another issue: ./helm version version.BuildInfo{Version:v3.0.0-beta.1 GitCommit:f76b5f...
charts stable/kubernetes-dashboard: User "system:serviceaccount:default:default" cannot create secrets in the namespace "kube-system"
The issue exists quite a while Would be good for new helm users to address this in the Readme ...
helm app-name has no deployed releases
Cannot agree more Our production is experiencing the same error So deleting the chart is not an opti...
helm Error forwarding ports: error upgrading connection
Hi I have Helm install locally and Tiller on my cluster everything looks healthy but running helm in...
helm Release failure or error logs
helm status only shows that the release is failed not quite useful for debugging helm install will p...
primeng Chart is not defined error
Adding: To my index.html page resolved this issue for me. when we try to use doughnutChart component...
helm Proposal: Allow templating in values.yaml
@alexbrand You could use the tpl function to render values that contain variables: values.yaml templ...
helm "required" template function breaks linter
Having a default value for a required values in the charts values.yaml file defeats the whole purpos...
charts [stable/rabbitmq] endpoints does not exist
Hi @rnkhouse PVC is Persistent Volume Claim To delete them first obtain the name with: Copy the name...
helm UPGRADE FAILED: No resource with the name "" found
This is a process I use to recover from this problem (so far it has worked every time without any in...
helm Error: could not find a ready tiller pod
Run this command may solve your issue kubectl logs --namespace kube-system tiller-deploy-2654728925-...
nivo Support calendars less than a year long
Having granularity of months would be awesome and should solve most use cases smaller than a year th...
victory native victory-native is not compatible with react-native^0.56
This work is published as victory-native@30.0.0 Thank you to everyone in this thread for their help ...
helm helm v3.0 mapping values are not allowed in this context
I get the same error message with our SonarQube chart for OpenShift The same install works with Helm...
helm charts prometheus-kube-stack unknown fields probenamespaceselector and probeSelector
Can you try to delete the crds before retrying to install the chart? See
charts [stable/nginx-ingress] toYaml can't render configmap with booleans
same here :( I was able to make it work (fix) by using --set-string For example: ...
helm Secret Management in Helm
The method proposed above does not seem like it would work with helm rollback or simple helm upgrade...
helm Helm 2.2.3 not working properly with kubeadm 1.6.1 default RBAC rules
After running helm init When installing a cluster for the first time using kubeadm v1.6.1 the initia...
helm helm cant upgrade already created resources
For the benefit of the group I am using helm 2.9.1 and I want to create a namespace with an annotati...