Hi
Firstly, thank you for providing such amazing products!
I am trying to use the ej-PivotClient (JS Essentials 1) in a Meteor v1.6 application.
I can get data if I publish all collections to the client, and it works ok.
But this is not feasible for large collections.
Would you have any examples of using the DataManager to connect to Meteor (Mongo) collections using the DDP Protocol, or Meteor.Methods??
Do I have to create a Custom JSON adapter?
Thank you very much.
Existing Code using fully client side collection:
Template.dashboard.onCreated(function () {
this.subscribe('reports.items.list');
});
Template.dashboard.onRendered(function () {
// Use timeout to wait for data to load before pivotGrid
Meteor.setTimeout(function () {
$('#PivotClient').ejPivotClient({
dataSource: {
data: Items.find().fetch()
},
isResponsive: true,
enableResponsiveRow: true,
enableAdvancedFilter: true,
chartType: ej.PivotChart.ChartTypes.Pie
});
}, 2000);
});