Closed rvracaric closed 7 years ago
The thor task was crashing as it looks for double quoted string (which it then replaces by a new double quoted string). Just thought it's faster to change the current version's quotes (so the task can run), than to modify its regular expression.
Hm, let me check this. I'll try removing all old files first.
Okay, will remove /examples/
.
re: 3. I removed examples
folders
re: 2. Before upgrading to 3.21.1
I removed all the files and folders in vendor/assets/images
, vendor/assets/javascripts
, and vendor/assets/images/stylesheets
. So there should be no files no longer in use.
After cleaning up the old files and upgrading to 3.21.1
, noticed that Export feature was not working anymore. Export was redesigned in Amcharts 3.14
.
So I had to tweak app/views/amcharts/_export.erb
and app/helpers/amcharts/amcharts_helper.rb
a bit to get the Export plugin working again.
More tweaks are needed in the future if, for example, loading PDF library manually if PDF menu is enabled is required. Right now, the Export plugin loads libraries needed for its operation automatically (recommended by Amcharts).
Upgrading Amcharts to the latest version using the provided thor task.
First had to update the thor task as Amcharts' download links/website changed a bit.
After upgrading Amcharts, noticed legends were not positioned correctly anymore.
Specifying a legend position via JSON is fine:
But adding a legend as the gem is doing via
addLegend()
, messes up the positioning:The problem is passing
null
as the legend div. It seems this started being an issue in Amcharts3.20.18
.