Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multiple annotations #36

Closed
felixalguzman opened this issue Aug 15, 2018 · 6 comments
Closed

Add multiple annotations #36

felixalguzman opened this issue Aug 15, 2018 · 6 comments

Comments

@felixalguzman
Copy link

Is there a way to add multiple annotations based on array of data ?

something like this
imagen

@junedchhipa
Copy link
Contributor

junedchhipa commented Aug 15, 2018

Are you looking for something like this?
screen shot 2018-08-16 at 12 17 15 am

These are called dataLabels and they can also be formatted. Read more here
https://apexcharts.com/docs/options/datalabels/

The demo of the image can be found here
https://apexcharts.com/javascript-chart-demos/line-charts/data-labels/

@felixalguzman
Copy link
Author

Yes but the values are not the same in the Y axis, I want to put an array of calculated data, I am not sure if this is possible.

@junedchhipa
Copy link
Contributor

The pointAnnotation option accepts array itself, so you can create a function which generates an array of points containing the x,y and text properties.
I will put an example later to show what I mean.

@felixalguzman
Copy link
Author

Ok thanks 👍

@junedchhipa
Copy link
Contributor

Here is a codepen example

@KarimLeeKarim
Copy link

@junedchhipa unfotunatelly this is not working for horizontal Bar Chart ....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants