Open aligos opened 8 years ago
I updated the code https://gist.github.com/jhuenges/814b60d80c96db014e045f2207fc1814 Can you tell me what the console.log in line 89 says?
You need to change Template.template.onRendered
sorry I do not have pay attention to this detail
I ll take a look at it in a couple of hours.
This should (hopefully) work now: https://gist.github.com/jhuenges/814b60d80c96db014e045f2207fc1814 (rename the template names ;) )
I do not know what to say, this does not seem works :$
ok, changed div id my bad return to me "no data to display"
Is there data in the collection?
Add console.log(buyhistoryMin, buyhistoryMax, sellhistoryMin, sellhistoryMax)
here and tell me what is in the array
array return is good, and collection is not empty
Okay, found the problem. For some reason you store the values of min
, max
, avg
and so on as an array of strings and here. That is why the code doesnt work. I would suggest to change the server code because storing simple numbers should be much easier and makes a lot more sense. You would need something like
var typebuymax = parseFloat(typebuy[0].max[0]);
...
I changed as you have advised me (I emptied the previous entry), I have no data to display again
Hm, that NaN
shouldnt be there. Is this in every array?
thanks so much it works ! :) I will study your code to understand the proceedings, really nice thanks again :)
You know the difference between " meteor add maazalik:highcharts" and "meteor add highcharts:highcharts-meteor" ?
please help, i want to create charts with package meteor add maazalik:highcharts, using columnDemo https://github.com/jhuenges/highcharts-demo/blob/master/client/demos/columnDemo.js but i did'nt know how to get data from databes to this charts, i am using meteor example todos. https://github.com/aligos/pomodoro/blob/master/client/templates/chart.js