|
@ -293,7 +293,7 @@ export function render_temperature(canvas, width, height, offset, data) { |
|
|
bottom: 5, |
|
|
bottom: 5, |
|
|
right: 0 |
|
|
right: 0 |
|
|
} |
|
|
} |
|
|
const yrange = [-15, 45] |
|
|
|
|
|
|
|
|
const yrange = [-5, 40] |
|
|
const chart = new Chart(canvas, width, height, offset, margin, data, yrange) |
|
|
const chart = new Chart(canvas, width, height, offset, margin, data, yrange) |
|
|
|
|
|
|
|
|
const line = d3.line() |
|
|
const line = d3.line() |
|
@ -302,8 +302,8 @@ export function render_temperature(canvas, width, height, offset, data) { |
|
|
.curve(d3.curveBasis) |
|
|
.curve(d3.curveBasis) |
|
|
|
|
|
|
|
|
chart.draw_yAxisTitle('Temperature') |
|
|
chart.draw_yAxisTitle('Temperature') |
|
|
chart.set_yAxisTic(-10, '-10 °C') |
|
|
|
|
|
chart.draw_xGrid( -10, 'guide') |
|
|
|
|
|
|
|
|
//chart.set_yAxisTic(-10, '-10 °C')
|
|
|
|
|
|
//chart.draw_xGrid( -10, 'guide')
|
|
|
chart.set_yAxisTic( 0, '0 °C') |
|
|
chart.set_yAxisTic( 0, '0 °C') |
|
|
chart.draw_xGrid( 0, 'zero') |
|
|
chart.draw_xGrid( 0, 'zero') |
|
|
chart.set_yAxisTic( 12, '12 °C') |
|
|
chart.set_yAxisTic( 12, '12 °C') |
|
|