I have tried to use google charts & highcharts for my requirements. I am subscribing to the data before I start drawing the charts as shown below.
Meteor.subscribe('chartdata', {
onReady: function (){
//Once I subscribe the date from the server I'm drawing the charts
}
});
I’m only loading 15,000 data (documents) from the mongodb as shown below. But for loading 15,000 points itself the application takes 5-10 seconds.
Meteor.publish('chartdata', function() {
return Data.find({},{sort: {_id:-1}, limit: 15000});
});
The data subscribed is just one week of data. So then how to load millions of data in year’s time without consuming more time to draw the charts?
Apart from that I have below dobuts as well
- Using sql database high-charts are plotting 2 million data in no time in here - http://www.highcharts.com/stock/demo/lazy-loading
Then why does meteor & mongodb taking more time to load 15,000 data itself? Am I doing anything wrong here (or) it’s the nature of meteor & mongo? - Is it possible to load small small chunks of data while drawing the charts? If possible, can you point me to an example.
Thanks in advance