OpenWaterFoundation / owf-app-dev-ng

Open Water Foundation Angular application to develop common libraries
0 stars 1 forks source link

time series chart - need to be able to embed in websites #29

Open smalers opened 2 years ago

smalers commented 2 years ago

Previous work indicated how to embed a single InfoMapper map in a website. A similar capability needs to be enabled for time series chart, which will allow the InfoMapper code to be leveraged for time series displays. The following are design considerations:

  1. Use an approach similar to full InfoMapper implementation to prepare data.
  2. Use TSTool-exported time series project JSON file to describe the chart.
  3. Use supported data formats such as DateValue and StateMod for time series formats - may add additional formats.
  4. Data will be hosted in the cloud in public locations, including GitHub repository, S3/CloudFront, Google Cloud, etc.
  5. Graph will be interactive within the web page, with features similar to InfoMapper graphs.
  6. Also need a way to select from a list to update the graph. For example, a user might pick from a list of counties and then the graph for the county will be shown. Is this part of the library or InfoMapper, or just extra code around the embedded graph?
  7. Is it possible to build an InfoMapper page that contains such graphs, not as popup, but as primary content of of a page? This would allow a content page to focus on a bunch of charts, rather than only accessing from the a map.
  8. Ideally want the code to be as minimal as possible. Is it possible to use webpack to exclude code that is not used?