mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-07-23 04:51:39 +02:00
change bubble render parameters
- Note: data points are hover highlighted by tooltip
This commit is contained in:
@@ -93,7 +93,7 @@
|
|||||||
return Math.floor(x * 255.0);
|
return Math.floor(x * 255.0);
|
||||||
}
|
}
|
||||||
function getRGB(c, makeTransparent = false) {
|
function getRGB(c, makeTransparent = false) {
|
||||||
if (makeTransparent) return `rgba(${cbmode ? '0' : getGradientR(c)}, ${getGradientG(c)}, ${getGradientB(c)}, 0.33)`;
|
if (makeTransparent) return `rgba(${cbmode ? '0' : getGradientR(c)}, ${getGradientG(c)}, ${getGradientB(c)}, 0.5)`;
|
||||||
else return `rgb(${cbmode ? '0' : getGradientR(c)}, ${getGradientG(c)}, ${getGradientB(c)})`;
|
else return `rgb(${cbmode ? '0' : getGradientR(c)}, ${getGradientG(c)}, ${getGradientB(c)})`;
|
||||||
}
|
}
|
||||||
function nearestThousand(num) {
|
function nearestThousand(num) {
|
||||||
@@ -246,7 +246,7 @@
|
|||||||
return (u, seriesIdx, idx0, idx1) => {
|
return (u, seriesIdx, idx0, idx1) => {
|
||||||
uPlot.orient(u, seriesIdx, (series, dataX, dataY, scaleX, scaleY, valToPosX, valToPosY, xOff, yOff, xDim, yDim, moveTo, lineTo, rect, arc) => {
|
uPlot.orient(u, seriesIdx, (series, dataX, dataY, scaleX, scaleY, valToPosX, valToPosY, xOff, yOff, xDim, yDim, moveTo, lineTo, rect, arc) => {
|
||||||
let d = u.data[seriesIdx];
|
let d = u.data[seriesIdx];
|
||||||
let strokeWidth = 2;
|
let strokeWidth = 1;
|
||||||
let deg360 = 2 * Math.PI;
|
let deg360 = 2 * Math.PI;
|
||||||
/* Alt.: Sizes based on other Data Rows */
|
/* Alt.: Sizes based on other Data Rows */
|
||||||
// let sizes = disp.size.values(u, seriesIdx, idx0, idx1);
|
// let sizes = disp.size.values(u, seriesIdx, idx0, idx1);
|
||||||
|
Reference in New Issue
Block a user