In my Meteor app, I have a collection
fullList = new Mongo.Collection('fullList');
. This collection consists of an array of objects with attributes like Color, Factor, and Tot.
My goal is to create a new collection or array that specifically contains all the Tot values from the existing collection. The pseudo-code for this would be something like newList = fullList.Color
.
While I can display one attribute in HTML using {{Color}}
, I am struggling to manipulate it in JavaScript.
The reason behind creating this new array is to utilize D3.js for visualizing the data.