#9 -- fix messages
This commit is contained in:
parent
9a7bc36502
commit
4e668fd062
@ -4,4 +4,11 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
messages.app-name=Time Series Smoothing
|
messages.app-name=Time Series Smoothing
|
||||||
messages.menu.home=Main
|
messages.menu.home=Main
|
||||||
|
messages.time_series_forecast=Time series forecast
|
||||||
|
messages.date=Date
|
||||||
|
messages.value=Value
|
||||||
|
messages.time_series_test_forecast=Test forecast
|
||||||
|
messages.time_series_model=Model
|
||||||
|
messages.time_series=Time series
|
||||||
|
messages.time_series_forecast_short=Forecast
|
@ -4,4 +4,11 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
messages.app-name=Time Series Smoothing
|
messages.app-name=Time Series Smoothing
|
||||||
messages.menu.home=Main
|
messages.menu.home=Main
|
||||||
|
messages.time_series_forecast=Time series forecast
|
||||||
|
messages.date=Date
|
||||||
|
messages.value=Value
|
||||||
|
messages.time_series_test_forecast=Test forecast
|
||||||
|
messages.time_series_model=Model
|
||||||
|
messages.time_series=Time series
|
||||||
|
messages.time_series_forecast_short=Forecast
|
@ -4,4 +4,11 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
messages.app-name=Time Series Smoothing
|
messages.app-name=Time Series Smoothing
|
||||||
messages.menu.home=На главную
|
messages.menu.home=На главную
|
||||||
|
messages.time_series_forecast=Прогноз временного ряда
|
||||||
|
messages.date=Дата
|
||||||
|
messages.value=Уровень
|
||||||
|
messages.time_series_test_forecast=Тестовый прогноз
|
||||||
|
messages.time_series_model=Модель
|
||||||
|
messages.time_series=Временной ряд
|
||||||
|
messages.time_series_forecast_short=Прогноз
|
@ -16,14 +16,21 @@
|
|||||||
<script src="/webjars/highcharts/7.0.0/highcharts.js"></script>
|
<script src="/webjars/highcharts/7.0.0/highcharts.js"></script>
|
||||||
<script th:inline="javascript" th:if="${timeSeries != null}">
|
<script th:inline="javascript" th:if="${timeSeries != null}">
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
var chart = {
|
||||||
|
renderTo: 'container',
|
||||||
|
style: {
|
||||||
|
fontFamily: 'arial'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
var title = {
|
var title = {
|
||||||
text: 'Прогноз временного ряда'
|
text: [[#{messages.time_series_forecast}]]
|
||||||
};
|
};
|
||||||
var xAxis = {
|
var xAxis = {
|
||||||
categories: [[${dates}]],
|
categories: [[${dates}]],
|
||||||
title: {
|
title: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
text: 'Дата'
|
text: [[#{messages.date}]]
|
||||||
},
|
},
|
||||||
startOnTick: true,
|
startOnTick: true,
|
||||||
endOnTick: true,
|
endOnTick: true,
|
||||||
@ -31,7 +38,7 @@
|
|||||||
};
|
};
|
||||||
var yAxis = {
|
var yAxis = {
|
||||||
title: {
|
title: {
|
||||||
text: 'Уровень'
|
text: [[#{messages.value}]]
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
var plotOptions = {
|
var plotOptions = {
|
||||||
@ -60,28 +67,29 @@
|
|||||||
};
|
};
|
||||||
var series = [
|
var series = [
|
||||||
{
|
{
|
||||||
name: 'Временной ряд',
|
name: [[#{messages.time_series}]],
|
||||||
color: 'rgba(119,152,191,0.5)',
|
color: 'rgba(119,152,191,0.5)',
|
||||||
data: [[${timeSeries}]]
|
data: [[${timeSeries}]]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Модель',
|
name: [[#{messages.time_series_model}]],
|
||||||
color: 'rgba(255,200,0,0.5)',
|
color: 'rgba(255,200,0,0.5)',
|
||||||
data: [[${model}]]
|
data: [[${model}]]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Тестовый прогноз',
|
name: [[#{messages.time_series_test_forecast}]],
|
||||||
color: 'rgba(255,0,0,0.5)',
|
color: 'rgba(255,0,0,0.5)',
|
||||||
data: [[${testForecast}]]
|
data: [[${testForecast}]]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Прогноз',
|
name: [[#{messages.time_series_forecast_short}]],
|
||||||
color: 'rgba(255,0,0,0.5)',
|
color: 'rgba(255,0,0,0.5)',
|
||||||
data: [[${forecast}]]
|
data: [[${forecast}]]
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
var json = {};
|
var json = {};
|
||||||
|
json.chart = chart;
|
||||||
json.title = title;
|
json.title = title;
|
||||||
json.xAxis = xAxis;
|
json.xAxis = xAxis;
|
||||||
json.yAxis = yAxis;
|
json.yAxis = yAxis;
|
||||||
|
Loading…
Reference in New Issue
Block a user