This PR updates the way that the individual resort data is presented on the individual resort pages. It encapsulates the data in a class that contains JSON arrays with each data point in an object with X and Y keys to be used in the Lit-Graph component. Changes in this PR include:
A new model for the different DataPoint types with Scala "Enums" representing each data point type
Minimizing imports in DatabaseModel
Using DataPointTypes enum in resortModel read
Created DataPlot case class with JSON write method
Created GraphData class for converting and housing JSON arrays of DataPointTypes
Updates resort.scala.html to display JSON arrays of DataPontTypes from GraphData
This PR updates the way that the individual resort data is presented on the individual resort pages. It encapsulates the data in a class that contains JSON arrays with each data point in an object with X and Y keys to be used in the Lit-Graph component. Changes in this PR include:
Fixes #105