update comportamento x drawinf chat temperature
This commit is contained in:
@@ -6,11 +6,15 @@
|
||||
var prm = Sys.WebForms.PageRequestManager.getInstance();
|
||||
prm.add_pageLoaded(function () {
|
||||
redrawAll();
|
||||
//console.log('add_pageLoaded!');
|
||||
console.log('add_pageLoaded!');
|
||||
});
|
||||
//prm.add_endRequest(function () {
|
||||
prm.add_endRequest(function () {
|
||||
redrawAll();
|
||||
console.log('add_endRequest!');
|
||||
});
|
||||
//prm.add_beginRequest(function () {
|
||||
// redrawAll();
|
||||
// console.log('add_endRequest!');
|
||||
// console.log('add_beginRequest!');
|
||||
//});
|
||||
|
||||
//Sys.Application.add_load(redrawAll);
|
||||
@@ -41,23 +45,27 @@
|
||||
},
|
||||
};
|
||||
|
||||
// recupero obj chart
|
||||
var ctx = document.getElementById('myChartTS').getContext('2d');
|
||||
var chart = new Chart(ctx, {
|
||||
type: 'line',
|
||||
data: {
|
||||
datasets: [{
|
||||
borderColor: 'rgb(7, 173, 236)',
|
||||
lineTension: 0,
|
||||
steppedLine: true,
|
||||
label: 'Temperatura Rilevata',
|
||||
data: dataTS
|
||||
}]
|
||||
},
|
||||
options: myOptions
|
||||
});
|
||||
try {
|
||||
// recupero obj chart
|
||||
var ctx = document.getElementById('myChartTS').getContext('2d');
|
||||
var chart = new Chart(ctx, {
|
||||
type: 'line',
|
||||
data: {
|
||||
datasets: [{
|
||||
borderColor: 'rgb(7, 173, 236)',
|
||||
lineTension: 0,
|
||||
steppedLine: true,
|
||||
label: 'Temperatura Rilevata',
|
||||
data: dataTS
|
||||
}]
|
||||
},
|
||||
options: myOptions
|
||||
});
|
||||
|
||||
//console.log('TS draw!');
|
||||
console.log('TS draw!');
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
// errore in reload!
|
||||
function OnErrorCall_(repo) {
|
||||
@@ -96,20 +104,25 @@
|
||||
//console.log('bars: ', barVal);
|
||||
|
||||
// recupero obj chart
|
||||
var ctx = document.getElementById('myChartHist').getContext('2d');
|
||||
var chart = new Chart(ctx, {
|
||||
type: 'bar',
|
||||
data: {
|
||||
labels: barLabels,
|
||||
datasets: [{
|
||||
label: 'Freq. Osservate',
|
||||
backgroundColor: 'rgb(7, 173, 236)',
|
||||
data: barVal
|
||||
}]
|
||||
},
|
||||
options: myOptions
|
||||
});
|
||||
try {
|
||||
var ctx = document.getElementById('myChartHist').getContext('2d');
|
||||
var chart = new Chart(ctx, {
|
||||
type: 'bar',
|
||||
data: {
|
||||
labels: barLabels,
|
||||
datasets: [{
|
||||
label: 'Freq. Osservate',
|
||||
backgroundColor: 'rgb(7, 173, 236)',
|
||||
data: barVal
|
||||
}]
|
||||
},
|
||||
options: myOptions
|
||||
});
|
||||
|
||||
console.log('Hist draw!');
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
// errore in reload!
|
||||
function HistOnErrorCall_(repo) {
|
||||
@@ -141,15 +154,15 @@
|
||||
}
|
||||
|
||||
function redrawAll() {
|
||||
console.log('numRec: <%=ddlMaxNum.SelectedValue%>');
|
||||
//console.log('numRec: <%=ddlMaxNum.SelectedValue%>');
|
||||
plotTS();
|
||||
plotHist();
|
||||
}
|
||||
|
||||
// funzione di drawing ad OGNI pageload!
|
||||
function pageLoad() {
|
||||
//redrawAll();
|
||||
}
|
||||
//// funzione di drawing ad OGNI pageload!
|
||||
//function pageLoad() {
|
||||
// //redrawAll();
|
||||
//}
|
||||
</script>
|
||||
|
||||
<asp:HiddenField runat="server" ID="hfIdxDip" />
|
||||
|
||||
Reference in New Issue
Block a user