By Mostafa Norouzi on Tuesday, 13 June 2017
Posted in Technical Issues
Replies 8
Likes 0
Views 709
Votes 0
Hello again

How can i change the font of charts legend?
CSS codes not affected on it!

with best...
We actually render the chart.js populate the chart on the page, perhaps you can study chartjs documentation and see how it goes.

If you would like to find the js file which populate on "mypost" view, the file is located at JoomlaFolder/components/com_easydiscuss/themes/wireframe/mypost/default.js

Hope this will help.
·
Wednesday, 14 June 2017 10:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes but the document says that using this syntax :

Chart.defaults.global.defaultFontFamily = "tahoma";

and it's not working.

I manually searched the files and found the font-family in Easy-discuss media files! :
media\com_easydiscuss\scripts\site\easydiscuss-basic-4.0.15.js

So it's fixed now but isn't better that font can be selected in back-end!?
·
Wednesday, 14 June 2017 15:02
·
0 Likes
·
0 Votes
·
0 Comments
·
hm, may i know which line of code you modified in this compressed js file?

JoomlaFolder/media/com_easydiscuss/scripts/site/easydiscuss-basic-4.0.15.js

We actually not encourage user to modified anything from this compressed js file is because when you update to next release version, it will override your changes.
·
Wednesday, 14 June 2017 19:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes but for now I haven't another choice!
In fact this file is minified and I just replace (CTRL+H) all "Helvetica Neue" to "tahoma"
·
Wednesday, 14 June 2017 21:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Try download my attached file and remember extract the zip file and replace into :
JoomlaFolder/templates/YourCurrentTemplate/html/com_easydiscuss/mypost/..

And see how it goes.

Regarding this method you do not need to worry if update to next version you have to re-do again for those changes into your site, because all is override into your current template unless you change your template, so you have to move all of your template override file over another template.
·
Thursday, 15 June 2017 12:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, it's working now!
Thank you:D
·
Thursday, 15 June 2017 14:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Thursday, 15 June 2017 15:01
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post