I'm having an odd issue, where if I set a valueRange for the Y axis on one of my charts, and I double click, it reverts to the "automagic" range. Is there an easy way around this?
--
You received this message because you are subscribed to the Google Groups "dygraphs-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dygraphs-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
gs1 = new Dygraph(document.getElementById("div1"),
<?php
$sql = "SELECT date, time, motorinvibration FROM testdata";
$result = $conn->query($sql);
echo "[";
while($r = mysqli_fetch_array($result)){
$test = $r['date'] . " " . $r['time'];
$a = date('Y-m-d H:i:s',strtotime($test));
$a= '"'.$a.'"';
$b = ((float) $r['motorinvibration']);
echo '['."(new Date($a))".','.$b.'],';
}
echo "]";
?>,
{
labels:["Timestamp", "Motor Inboard Vibration"],
legend: 'always',
logscale: true,
digitsAfterDecimal: '3',
valueRange:[0.010, 10.0],
underlayCallback: function(canvas, area, g){
var bottom = g.toDomYCoord(vib_warn_high_low);
var top = g.toDomYCoord(vib_warn_high_up);
canvas.fillStyle = amber;
canvas.fillRect(area.x, top, area.w, bottom - top);
var bottom = g.toDomYCoord(vib_crit_high_low);
var top = g.toDomYCoord(vib_crit_high_up);
canvas.fillStyle = red;
canvas.fillRect(area.x, top, area.w, bottom - top);
var bottom = g.toDomYCoord(vib_warn_low_low);
var top = g.toDomYCoord(vib_warn_low_up);
canvas.fillStyle = amber;
canvas.fillRect(area.x, top, area.w, bottom - top);
}
}
)
var sync = Dygraph.synchronize([gs1, gs2, gs3, gs4, gs5, gs6, gs7, gs8, gs9, gs10, gs11], {
selection: true,
zoom: true,
range: false
}
);
--
You received this message because you are subscribed to the Google Groups "dygraphs-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dygraphs-user...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to dygraphs-users+unsubscribe@googlegroups.com.