Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions emhttp/plugins/dynamix/DashStats.page
Original file line number Diff line number Diff line change
Expand Up @@ -1447,7 +1447,7 @@ function getMillisPerPixel(timeInSeconds, containerId) {
// SmoothieCharts initialization
var cpuchart = new SmoothieChart({
millisPerPixel: (cpuline * 1000) / 600, // Safe initial value
minValue: -0.5,
minValue: 0,
maxValue: 100,
responsive: true,
grid: {
Expand All @@ -1463,9 +1463,8 @@ var cpuchart = new SmoothieChart({
precision: 0
},
timestampFormatter: function(date) { return ''; },
yRangeFunction: function(range) {
return { min: -0.5, max: 100 };
},
minValueScale: 1.02,
maxValueScale: 1.02,
yMinFormatter: function(value) {
return Math.max(0, Math.floor(value));
},
Expand All @@ -1491,7 +1490,8 @@ var netchart = new SmoothieChart({
placement: 'left'
},
timestampFormatter: function(date) { return ''; },
maxValueScale: 1.0,
minValueScale: 1.02,
maxValueScale: 1.02,
yMaxFormatter: function(value) {
if (value >= 1000) {
return Math.floor(value / 1000) + ' Mbps';
Expand Down
Loading