diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/components/chart.js b/Thermo.Active/wwwroot/src/app_modules_thermo/components/chart.js index d47161cc..9367d820 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/components/chart.js +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/components/chart.js @@ -6,11 +6,11 @@ export default { mounted () { var labels=[]; var data=[]; - for (var i = 1; i <= this.num_labels; i++) { - labels.push(i); + for (var x = 0; x <= this.num_labels; x++) { + labels.push(x); } - for (var i = 1; i <= this.data_range; i++) { - data.push(i); + for (var x = 0; x <= this.data_range; x++) { + data.push(x); } this.renderChart({ labels: labels, diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/controstampo_setup/components/base-components/aria-controstampo.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/controstampo_setup/components/base-components/aria-controstampo.ts index 5d19d412..3e987fc2 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/controstampo_setup/components/base-components/aria-controstampo.ts +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/controstampo_setup/components/base-components/aria-controstampo.ts @@ -6,8 +6,13 @@ import Scheda from "@/app_modules_thermo/components/scheda.vue"; import Chart from "@/app_modules_thermo/components/chart.js"; @Component({ name: "ariacontrostampo", components: { chart :Chart,scheda: Scheda, slider: Slider } }) export default class AriaControstampo extends Vue { - @Prop() recipe: Recipe.IRecipe; + max_range=Math.max( + this.recipe.upperplate_air_1_chart_setpointx.range.max, + this.recipe.upperplate_air_2_chart_setpointx.range.max, + this.recipe.upperplate_air_3_chart_setpointx.range.max + ) + } \ No newline at end of file diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/controstampo_setup/components/base-components/aria-controstampo.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/controstampo_setup/components/base-components/aria-controstampo.vue index e7d52f5f..5fb24cef 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/controstampo_setup/components/base-components/aria-controstampo.vue +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/controstampo_setup/components/base-components/aria-controstampo.vue @@ -40,8 +40,11 @@ >
- -
+ +