Good morning,
I really like the NetZoom Timechart, but I'm having two issues that I could use some help with. The first is that I seem to have an issue with deconflicting the time->value key pairs that I'm generating with the time zone. The second is the automated selection window. Here is my data:
[["2016-08-03 08:00:00", "41"], ["2016-08-03 09:00:00", "8"], ["2016-08-03 10:00:00", "20"], ["2016-08-03 11:00:00", "43"], ["2016-08-03 12:00:00", "45"], ["2016-08-03 13:00:00", "41"], ["2016-08-03 14:00:00", "45"], ["2016-08-03 15:00:00", "39"], ["2016-08-03 16:00:00", "34"], ["2016-08-03 17:00:00", "35"], ["2016-08-03 18:00:00", "31"], ["2016-08-03 19:00:00", "31"], ["2016-08-03 20:00:00", "34"], ["2016-08-03 21:00:00", "38"], ["2016-08-03 22:00:00", "35"], ["2016-08-03 23:00:00", "32"], ["2016-08-04 00:00:00", "32"], ["2016-08-04 01:00:00", "37"], ["2016-08-04 02:00:00", "41"], ["2016-08-04 03:00:00", "43"], ["2016-08-04 04:00:00", "44"], ["2016-08-04 05:00:00", "44"], ["2016-08-04 06:00:00", "44"], ["2016-08-04 07:00:00", "51"], ["2016-08-04 08:00:00", "49"]]
and here is my code:
function loadCallHistoryChart() {
var callHistory = {
unit: "h",
values: jsonCallHistoryNodes1,
dataLimitFrom: startTime
};
var t = new TimeChart({
container: document.getElementById("call_history"),
series: [
{
name: "Active Calls",
id: "activeCalls",
type: "line",
data: {index: 1, aggregation: "max"},
style: {
fillGradient: [[0, "rgb(37,133,196)"], [40, "rgb(40,178,148)"]],
smoothing: false,
lineColor: "rgb(209,218,222)",
lineWidth: 1,
}
}],
data: {
units: "h",
timestampInSeconds: false,
preloaded: callHistory,
timeZone: "America/New_York"
},
timeAxis: {
timeZone: "America/New_York"
},
style: {
minWidth: 500
}
});
}
The chart shows the data coming in at 4:00 AM yesterday to 4:00 AM today even though the time is 8:00 AM to 8:00 AM. Also the time selector window defaults to 6 hours. I would like it to default to 1 hour.
Thanks for the help. Your support is really great!