swimlane / ngx-charts

:bar_chart: Declarative Charting Framework for Angular
https://swimlane.github.io/ngx-charts/
MIT License
4.3k stars 1.15k forks source link

add image/icon beside xAxis label #654

Open dtsanan opened 6 years ago

dtsanan commented 6 years ago

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[x] feature request
[ ] support request => Please do not submit support request here

Current behavior There is an option to format labels inside text element, but not rendering images/icons.

Expected behavior maybe there is an option to add property that will append an image tag beside the text tag

What is the motivation / use case for changing the behavior?

There is a demand to display images/icons beside the xAxis labels.

Please tell us about your environment:

IDE: Webstorm package manager: npm Operating system: windows

RenukaPrasad0318 commented 6 years ago

Can you pls let me know what property to use to add the image in the bar graph

dtsanan commented 6 years ago

it is not available by the library...

that is why i made that feature request

Gollm commented 2 years ago

Example:

We have a range 0 to 100. From bad to good and we don't want to show the values. We want so have Smileys for the values instead as axis-labels. (from bad smiley to good smiley)