-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Can categories be displayed via dataLabels? #150
Comments
@diomed I failed to understand what you mean. Can you please elaborate? |
yes |
I will put the above example in website demo pages soon. For now, you can try the following code to achieve the same result {
plotOptions: {
bar: {
horizontal: true,
dataLabels: {
position: 'bottom'
},
}
},
dataLabels: {
enabled: true,
textAnchor: 'start',
style: {
colors: ['#fff']
},
formatter: function(val, opt) {
return opt.globals.labels[opt.dataPointIndex] + ": " + val
},
offsetX: 0,
},
yaxis: {
labels: {
show: false
}
}
} |
Added example on website https://apexcharts.com/javascript-chart-demos/bar-charts/custom-datalabels/ |
thank you for your help 👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I see that series can, but how would I display categories in bar as well?
The text was updated successfully, but these errors were encountered: