Hey guys, not sure if it is a bug or not, but thought I'd ask.
If I have a time histogram set up to display a value axis, but do not define any other settings besides axisLine=true, it is supposed to calculate how many values to show, and how far apart they should be etc.
I would expect, and hope, this always shows at least one value. What I'm seeing is if the height of the chart is too small, it may show no values at all even though it seems like it could fit a few values there. This might have been a regression in one of the newer versions, as before updating to 1.11.4, I noticed the values there more often.
Is this a bug, or are there settings I can change to always get some values at least showing up on the value axis?
You can see what I mean with the following example:
var t = new TimeChart(
{
container: document.getElementById("demo"),
area: { height: 100 },
data:
{
units: ["h"],
url: "/dvsl/data/time-chart/temperature-kuldiga-h.json"
},
valueAxis: {
"va1": {
side: "left",
position: "outside",
hgrid: true,
axisLine: true,
zeroLine: "visible"
}
},
timeAxis: {
vgrid: true,
style: { vgrid: { lineDash: [5, 5] } }
},
currentTime: {
style: { lineDash: [5, 5] }
},
series: [
{
id: "s1",
type: "columns",
valueAxis: "va1",
data: {
index: 1,
aggregation: "avg"
},
style: {
fillColor: "lightgreen"
}
}
]
}
);