Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have installed Easychart (8.x-3.0-alpha3) and it's dependancies (the libraries) using Drush.
In my D8 site, I know have a conent type of Chart with a field, fieldtype easychart.
I also have a config page for easychart.
When I attempt to create a chart node, there is no button to configure the chart. (I've tried this in D7 and it works OK)
I also do not get a chart button on the available CKEditor buttons to add to the text formatters.
Are there any tricks for D8 ?
Comment | File | Size | Author |
---|---|---|---|
#12 | Screen Shot 2017-09-25 at 11.40.55.png | 28.23 KB | chrisss |
Comments
Comment #2
thomas_rz CreditAttribution: thomas_rz as a volunteer and at Government of Flanders commentedComment #3
swentel CreditAttribution: swentel commentedYou need to install embed & entity_embed to get the chart buttons.
Comment #4
jyve CreditAttribution: jyve commentedComment #5
norwegian.blue CreditAttribution: norwegian.blue commentedI'm still missing something.
I've installed 8.x-3.3 plus latest embed & entity_embed.:
I've run :
resulting in:
I now have the chart CKEditor embed button.
However, creating a content of type Chart still doesn't give me anyway of adding the chart (all I can do is give it a title) and trying to use the embed-chart button from CKEditor in any other node does nothing - the button does nothing.
I've refreshed the cache and run drush updb.
What am I missing?
Comment #6
norwegian.blue CreditAttribution: norwegian.blue commentedComment #7
jyve CreditAttribution: jyve commentedAre you getting any javascript errors while creating a Chart node?
Comment #8
norwegian.blue CreditAttribution: norwegian.blue commentedFixed.
I was a bit of a muppet and didn't have Libraries API module installed.
The other issue was that it appears to look for ec.min.js
The Easychart library that drush installed for me didn't have ec.min.js , but copying ec.full.min.js to ec.min.js makes it all work
Thanks for everyone's time and thanks for a great module
Comment #9
norwegian.blue CreditAttribution: norwegian.blue commentedComment #11
JanSchalkx CreditAttribution: JanSchalkx commentedHello.
I am not much of a digital professor, but interested in trying to make things work.
I am working on installing Easycharts in Drupal 8.
I suppose I did everything according all the answers I found.
Accept for this
copying ec.full.min.js to ec.min.js makes it all work
Where and how can I do this?
Thanx for any enlightning answer.
Jan
Comment #12
chrisss CreditAttribution: chrisss commentedI am also struggling a bit with this. I've installed the module and dependencies, but I am not seeing ec.full.min.js in the dist directory. I only have ec.full.js.map (this is Easychart version 3.0.0).
Basically when I attempt to add a new chart node, the easychart window only displays "Toggle Fullscreen" but the easychart editor is not visible.
The console is throwing the following error, which makes me think that part of the easychart library is missing:
Any info/help would be much appreciated!
Comment #13
solide-echt CreditAttribution: solide-echt commentedI'm experiencing the same behaviour as in #12. This is probably related to core being upgraded and using a newer version of jquery.
Eric
Comment #14
BORANBURCIN CreditAttribution: BORANBURCIN commentedI'm experiencing same too. Any help ?
Comment #15
taitai CreditAttribution: taitai commentedI have the same problem.
This is the error from my consol when trying to create a chart.
Uncaught TypeError: Cannot read property '2' of undefined
at eval (eval at (ec.min.js?v=3.1.3:9), :1:50)
at eval (eval at (ec.min.js?v=3.1.3:9), :1:54)
at Object. (ec.min.js?v=3.1.3:9)
at JSON.parse ()
at Object.exports.parse (ec.min.js?v=3.1.3:9)
at r (ec.min.js?v=3.1.3:28)
at new i (ec.min.js?v=3.1.3:14)
at HTMLDivElement. (easychart.widget.js?v=8.3.4:54)
at Function.each (jquery.min.js?v=2.2.4:2)
at n.fn.init.each (jquery.min.js?v=2.2.4:2)
Comment #16
egfguedes CreditAttribution: egfguedes commentedIm using Drupal 8.14 and have the same problem described here.
And im not found ec.full.js ...
Any solution for this?
Tks