Comments (2)
yep, requestData() is not called in the place you have to call it,
check the .js_code method to call js functions inside your highChart declaration.
then you have to create the events and load keys, if they not exist, so you will be able to assing the js method in the right place.
regards
from lazy_high_charts.
using version 1.1.6 works, I have removed the block from my view. and in controller I have minified the JS inside f.options[:chart][:events] = {:load => %|function requestData(){$.ajax({url:'live',success:function(a){var b=chart.series[0],c=b.data.length>20;chart.series[0].addPoint(a,true,c);setTimeout(requestData,1e3)},cache:false});}|.js_code}
from lazy_high_charts.
Related Issues (20)
- Exporting::width not working
- Changing name on some columns HOT 1
- Indicate in the README file that the use of HightCharts is not free. HOT 2
- Area chart not working HOT 2
- Javascript code in formatter for ruby HOT 2
- How to use lazy_high_charts in Iruby notebook HOT 5
- [Question] How to specify script tag position on layout
- How to use drilldown for lazyhighcharts?
- How to call a controller method when a bar is clicked on a chart? HOT 1
- Drilldown function HOT 1
- undefined method `map' for nil:NilClass
- X-range support?
- How to specify data on highstocks
- Problem with defer loading in Rails HOT 2
- Turbolinks >= 5 accumulates event listeners HOT 1
- Does not work with Turbo gem HOT 2
- Create Gantt chart
- Support Time for pointStart
- Linked website outdated
- [feature] wordcloud support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lazy_high_charts.