Skip to content

Commit ca30eec

Browse files
feature: draw input as dotted line across the chart
1 parent f8a223a commit ca30eec

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

js/chart.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@ function update_chart(input_data, possibilities) {
2121
let ctx = $("#chart"),
2222
datasets = [{
2323
label: i18next.t("output.chart.input"),
24-
data: input_data.slice(1),
24+
data: Array(input_data.length).fill(input_data[0]),
2525
fill: false,
26+
borderColor: '#F7BABA',
27+
borderDash: [20,20],
28+
pointRadius: 0,
2629
}, {
2730
label: i18next.t("output.chart.minimum"),
2831
data: possibilities[0].prices.slice(1).map(day => day.min),

0 commit comments

Comments
 (0)