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 ?

CommentFileSizeAuthor
#12 Screen Shot 2017-09-25 at 11.40.55.png28.23 KBchrisss
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nzpling created an issue. See original summary.

thomas_rz’s picture

Assigned: Unassigned » swentel
swentel’s picture

Status: Active » Fixed

You need to install embed & entity_embed to get the chart buttons.

jyve’s picture

Status: Fixed » Closed (fixed)
norwegian.blue’s picture

I'm still missing something.
I've installed 8.x-3.3 plus latest embed & entity_embed.:

# drush  pm-list --type=Module --no-core --status=enabled
 Package         Name                                             Version     
 Administration  Admin Toolbar (admin_toolbar)                    8.x-1.14    
 Administration  Admin Toolbar Extra Tools (admin_toolbar_tools)  8.x-1.14    
 Filters         Entity Embed (entity_embed)                      8.x-1.x-dev 
 Other           Easychart (easychart)                            8.x-3.3     
 Other           Embed (embed)                                    8.x-1.x-dev 

I've run :

# drush ec-dependencies -y
Easychart library has been installed in /libraries.                                        [success]
An existing Highcharts plugin was deleted from libraries.                                  [success]
Highcharts library has been installed in /libraries.                                       [success]

resulting in:

# ll /var/www/vhosts/drupal/libraries
total 12
drwxr-xr-x. 5 root root 4096 Feb 18 05:04 easychart
drwxr-xr-x. 7 root root 4096 Mar 31 16:51 highcharts

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?

norwegian.blue’s picture

Version: 8.x-3.0-alpha3 » 8.x-3.3
Status: Closed (fixed) » Active
jyve’s picture

Are you getting any javascript errors while creating a Chart node?

norwegian.blue’s picture

Fixed.

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

norwegian.blue’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

JanSchalkx’s picture

Hello.

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

chrisss’s picture

I 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:

Uncaught TypeError: Cannot read property '2' of undefined
    at eval (eval at <anonymous> (ec.min.js?v=3.1.3:9), <anonymous>:1:50)
    at eval (eval at <anonymous> (ec.min.js?v=3.1.3:9), <anonymous>:1:54)
    at Object.<anonymous> (ec.min.js?v=3.1.3:9)
    at JSON.parse (<anonymous>)
    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.<anonymous> (easychart.widget.js?v=8.3.7:54)
    at Function.each (jquery.min.js:2)
    at n.fn.init.each (jquery.min.js:2)

Any info/help would be much appreciated!

solide-echt’s picture

I'm experiencing the same behaviour as in #12. This is probably related to core being upgraded and using a newer version of jquery.

Eric

BORANBURCIN’s picture

I'm experiencing same too. Any help ?

taitai’s picture

I 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)

egfguedes’s picture

Im using Drupal 8.14 and have the same problem described here.

And im not found ec.full.js ...

Any solution for this?

Tks