diff --git a/example/constants.ts.example b/example/constants.ts.example index c3d5b060..d3da8cf5 100644 --- a/example/constants.ts.example +++ b/example/constants.ts.example @@ -5,5 +5,9 @@ export const defaultCity = {"id":7, "properties":{"name":"Philadelphia","admin":"PA"}}; +export const defaultScenario = 'RCP85'; +export const defaultVariable = 'pr'; +export const defaultYears = '2070'; + export const apiHost = "https://staging.api.futurefeelslike.com/api/"; export const apiToken = "YOUR_API_TOKEN_HERE"; diff --git a/src/app/charts/line-graph.component.ts b/src/app/charts/line-graph.component.ts index 33e3d605..8cdb604b 100644 --- a/src/app/charts/line-graph.component.ts +++ b/src/app/charts/line-graph.component.ts @@ -17,7 +17,7 @@ import * as $ from 'jquery'; export class LineGraphComponent { public data: ChartData[]; public extractedData: Array; - public indicator: String; + public indicator: string; public trendline: Boolean; public min: Boolean; public max: Boolean; @@ -33,7 +33,7 @@ export class LineGraphComponent { private yScale; // D3 scale in Y private htmlElement; // Host HTMLElement private valueline; // Base for a chart line - private xRange: Array; // Min, max date range + private xRange: Array; // Min, max date range private xData: Array; // Stores x axis data as integers rather than dates, necessary for trendline math private yData: Array; // Stores just y axis data, multi-use private trendData: Array; // Formatted data for the trendline diff --git a/src/app/lab/lab.component.html b/src/app/lab/lab.component.html index b64c72bf..dfc7b575 100755 --- a/src/app/lab/lab.component.html +++ b/src/app/lab/lab.component.html @@ -11,6 +11,7 @@ - -