score:1
You really seem to be having a simple asset versioning problem, no reason to highcharts to behave differently in production.
Try clearing your assets and forcing precompiling using:
$ bundle exec rake assets:clobber
$ RAILS_ENV=production bundle exec rake assets:precompile
Then, add and commit your public/assets
folder to push into Heroku. I have ran into a lot of trouble trusting that deployment precompile would work as expected. Some times compiling assets gets bugged and you need to change the file before precompiling to perceive a change.
If that doesn't work
You may have a problem with the gem in production, maybe it is inside a development block in gemfile, or maybe even =// require_tree .
or any other require that would possibly insert that code before highcharts lib initializing, messing around with the order of the scripts would help (even though your pasted code doesn't reflect that)
score:0
Try looking for a .sprockets-manifest
file in the public
directory and delete it if found (it's a hidden file). If you compiled the assets locally and accidentally committed that file it can prevent asset compilation on Heroku.
You can also try to force a Heroku asset recompile by bumping the asset version in config/production.rb
. I.E changing config.assets.version = 1.0
to 1.1
and then push.
Source: stackoverflow.com
Related Query
- Highcharts not working on Heroku environment, works on local environment
- Highchart is not showing in heroku, but works in local environment
- Highcharts data from a variable is not working but from works fine from an array
- HighCharts not working on Safari but works fine on Firefox and Chrome
- Decimals on yAxis are not being displayed, even if that same code works on highcharts jsfiddle
- Dynamically changing Highcharts Theme through Jquery code not working
- Highcharts code with same set of code/data works in PHP but does not work in JSfiddle
- Highcharts yAxis max not working
- Resize highcharts using react-grid-layout not working
- Angular HighCharts ParlimentChart is not working
- highcharts redraw and reflow not working
- DataLabels formatter not working in Highcharts Sankey Diagram
- Highcharts shared tooltip for line series and scatter plot not working
- Highcharts async drilldown (3 level) - drillup not working
- Color contrast setting on dataLabels style parameter using Highcharts 5 is not working on some colors
- Code works on fiddle but not when I do /show
- JavaScript code inside TypeScript file .ts not working
- Highcharts - update column graph with setData() not working
- Multi-Line Title is not working when we export to PNG using CanVG - Highcharts
- yAxis tickinterval in highcharts is not working as per the value
- Rails - Highcharts on Heroku - Getting 'ReferenceError: Highcharts is not defined'
- Highcharts v6.0.0 Annotations Not Working
- angularjs and highcharts / highchartsNG - renderTo not working
- Highcharts Bar Chart Zoom not working
- c# WPF Webbrowser with Highchart, Javascript from external source not working "An error has occurred in the script on this page"
- Highcharts map example not working
- Highcharts disabling marker not working
- HighCharts pointPlacement option not working in a single column chart
- Highcharts buttons with different menuitems not working
- HighCharts X-Axis Date Not Working (00:00)
More Query from same tag
- Display threshold line even if threshold value is higher than max y-axis value in HighStock
- How to show Legends for all the series data in stacked column chart Highcharts?
- angular2-Highcharts not working in angular-cli project
- Highcharts JS - share legend color between pie charts
- Format X axis Label of Highcharts
- How do I completely hide the chart title in a HighCharts chart?
- Highcharts tooltip in scrollable container scrolls with the content
- Highcharts-vue: Stacked Columns with Drilldown
- Highcharts TypeScript, y-axis label
- Highcharts live data update does not work
- How to disable range selection buttons?
- Converting Datatable columns to array of array
- Wrong x-dots in Highcharts
- Strip/escape special characters from Google Spreadsheet field before passing data to Highcharts Graph
- Custom labeling highcharts json.net to geckoboard
- Setting options.rangeSelector.selected to 0 does not set zoom to correct level in highstock
- Highchart plotband is not rectangular?
- Xaxis data given to highcharts in descending order but still xaxis appears in ascending order
- Highcharts-limit display of categories
- How to add box on "plotLines text" of Highcharts
- Chart js line with asp.net
- How to draw SVG lines inside HighCharts barcharts?
- how to add horizontal line over columns at different values
- rCharts::rPlot on click event
- Highcharts: how to separate stacked columns on datetime axis
- Highchart show/hide y axis with multiple associated series
- Array loop to determine a range average
- Make chart.renderer.path as plotline Highcharts
- HighStock y-axis labels changing by itself when horizontal scroll moves
- Use series data but display custom text on top of columns Highchart