kopia lustrzana https://github.com/miguelvaca/vk3cpu
Cap limit set to 1000 pF. Limit tooltip precision for Cap and Q.
rodzic
a4396f3eb5
commit
8d2c4eed0d
|
@ -1599,7 +1599,7 @@
|
||||||
fontStyle: 'bold'
|
fontStyle: 'bold'
|
||||||
},
|
},
|
||||||
ticks: {
|
ticks: {
|
||||||
max: 2000.0,
|
max: 1000.0,
|
||||||
},
|
},
|
||||||
position: 'left',
|
position: 'left',
|
||||||
id: 'pfID'
|
id: 'pfID'
|
||||||
|
@ -1682,7 +1682,12 @@
|
||||||
if (label) {
|
if (label) {
|
||||||
label += ': ';
|
label += ': ';
|
||||||
}
|
}
|
||||||
label += Math.round(tooltipItem.yLabel * 1000) / 1000;
|
if(data.datasets[tooltipItem.datasetIndex].label == "Tuning Cap (pF)" || data.datasets[tooltipItem.datasetIndex].label == "Q") {
|
||||||
|
label += Math.round(tooltipItem.yLabel);
|
||||||
|
} else {
|
||||||
|
label += tooltipItem.yLabel.toFixed(3).toString();
|
||||||
|
//label += Math.round(tooltipItem.yLabel * 1000) / 1000;
|
||||||
|
}
|
||||||
return label;
|
return label;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue