-
Notifications
You must be signed in to change notification settings - Fork 462
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
Font Awesome icons not rendering #25
Comments
Looks like this should work, can you build a jsfiddle that demonstrate the issue? |
It works for me: https://jsfiddle.net/simonbrunel/y1ry2cvb/, I'm not sure you can actually build unicode dynamically so it might come from your formatter. |
Ok, there must be other issues going on in my code then because as you showed it obviously should work just fine. My apologies, and thank you for a wonderful plugin! |
@simonbrunel you were exactly right about trying to generate unicode in my formatter. For anyone else who may be interested, this is what I had to do to get that working:
Now I have icons in my bars :) |
Thanks @ericsvendsen for the follow-up and the snippet, I may try to add a sample about using Font Awesome with that plugin. Though, wouldn't be easier to directly define |
Yes, however for this app the datasets are being dynamically generated, and for various reasons the associated icon codes are only stored in the db as |
Yes, Even for me the font object is not working for me in my code . Though i can see the font is applicable for other objects but not working for data labels plugin font object . I can see it is working in fiddle and i see few people facing issues regarding the font object . Any help please? |
@anihow can you share your code, ideally in a runnable fiddle? |
@simonbrunel Below is the file where my code exists and i am new to fiddle and i dont know how to use ity hence sending my file and also i am placing the JSON file in the same directory and my JSON looks something like this { ] Please look into this and let me know if you can help me. |
|
@simonbrunel Thanks!!! it worked for me. I know it is silly mistake but thanks for the prompt response . Simon, i am trying to achieve two things in the above code and facing challenges 1.Is there any way to have bars in barchart look like progress bar types . Please find below image for reference. Please let me know if there is any attribute needed or anything to be done to change.
Please let me know if any package or some import statement needs to be added. |
|
@simonbrunel Thanks Simon!!! for your support. |
@simonbrunel As Shown in the below image, As of now both my labels and data labels are mixed.. I want my data labels($95,$90) to be moved right side to the labels(sun,mon) dynamically according to the users wish on top of the bar(what i mean is to move data labels like few pixels away from labels according to user wish). Is there any attribute to do that? Please let me know. |
@simonbrunel For the above image i am able to place it end or starting or middle but i want datalabel somewhere between start and center on top of the bar. Please suggest. |
I went to check out the jsfiddle but it doesn't seem to work anymore? No fontawesome icon on the chart! Too bad, the project was very cool, a solution to make it work again? Thank you :) |
I'm trying to show font awesome (4.7) icons as data labels, which seems like it should work because other unicode characters in other font families seem to work ok. Is there something else I should be doing besides the following?
The text was updated successfully, but these errors were encountered: