Skip to content

Commit

Permalink
closes #27 [remove "opening triangle" #27]
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewcornell committed Dec 11, 2023
1 parent dc5e78b commit da2274b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html><html lang="en"><head><meta charset="UTF-8"><title>Predtimechart - Welcome</title><script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.js"></script><script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"><script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script><script src="https://cdn.jsdelivr.net/momentjs/latest/moment.min.js"></script><script src="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.min.js"></script><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.css"/><script src="https://cdn.plot.ly/plotly-2.12.1.min.js"></script></head><body><div id="forecastViz_row" class="row">{# the div passed to predtimechart initialize(), which populates all DOM elements #}</div><script type="module">import App from './predtimechart.bundle.js'; // hard-coded from webpack.config.cjs `output.filename`
<!doctype html><html lang="en"><head><meta charset="UTF-8"><title>Predtimechart - Welcome</title><script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.js"></script><script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"><script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script><script src="https://cdn.jsdelivr.net/momentjs/latest/moment.min.js"></script><script src="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.min.js"></script><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.css"/><script src="https://cdn.plot.ly/plotly-2.12.1.min.js"></script></head><body><div id="forecastViz_row" class="row"></div><script type="module">import App from './predtimechart.bundle.js'; // hard-coded from webpack.config.cjs `output.filename`

const covid19ForecastsVizTestOptions = {
"available_as_ofs": {
Expand Down
2 changes: 1 addition & 1 deletion dist/predtimechart.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</head>
<body>
<div id="forecastViz_row" class="row">
{# the div passed to predtimechart initialize(), which populates all DOM elements #}
<!-- the div passed to predtimechart initialize(), which populates all DOM elements -->
</div>
<script type="module">
import App from './predtimechart.bundle.js'; // hard-coded from webpack.config.cjs `output.filename`
Expand Down
6 changes: 3 additions & 3 deletions src/predtimechart.js
Original file line number Diff line number Diff line change
Expand Up @@ -1153,13 +1153,13 @@ const App = {
}

const x = Object.keys(state.as_of_truth).length !== 0 ?
state.as_of_truth.date.slice(-1).concat(model_forecasts.target_end_date) :
model_forecasts.target_end_date :
model_forecasts.target_end_date;
const y1 = Object.keys(state.as_of_truth).length !== 0 ?
state.as_of_truth.y.slice(-1).concat(model_forecasts[lower_quantile]) : // lower edge
model_forecasts[lower_quantile] : // lower edge
model_forecasts[lower_quantile];
const y2 = Object.keys(state.as_of_truth).length !== 0 ?
state.as_of_truth.y.slice(-1).concat(model_forecasts[upper_quantile]) :
model_forecasts[upper_quantile] :
model_forecasts[upper_quantile]; // upper edge
return [
plot_line,
Expand Down

0 comments on commit da2274b

Please sign in to comment.