Closed gitriley closed 6 years ago
Sarah's testing instructions for herself:
Try adding, modifying and deleting records for all 4 types: categorical, continuous, individual, and uniform and make sure things bin appropriately.
Try adding modifying and deleting via the spreadsheet and then see what works and what breaks.
Creating this pull request now, for any discussion and review. It still needs tests written.
What this pull request contains
factory methods on the Symbol model and Symbol collection for creating new Symbols and Symbol sets.
a new file in the /lib folder called lgPalettes.js. This file creates a simple API for common interactions with palette.js.
re-binning: If a field on a record is updated, and if that field is being used to categorically sort the records, the record will automatically re-binned. If the new attribute value does not fit into any existing symbol, a new symbol will be created for it. After this is done, if there are any symbols with no matching records, they will be deleted.