How can I hide the Weekend times on X-axis? This timeline should skip the time between the Friday 23:59 and Monday 00:00 - i.e. all the Weekend.
I already skipped all timestamps between Friday evening and Monday morning, but it still shows the data like it there is some activity during a Weekend.
var data = [
{ data: EUR, label: "EUR" },
{ data: USD, label: "USD" },
{ data: CAD, label: "CAD" },
{ data: GBP, label: "GBP" },
{ data: CHF, label: "CHF" },
{ data: AUD, label: "AUD" },
{ data: NZD, label: "NZD" },
{ data: JPY, label: "JPY" }
];
$.plot("#chart", data, {
series: {
lines: { show: true },
points: { show: true }
},
xaxis: {
mode: "time",
timeformat: "%d/%m %H"
},
yaxis: {
ticks: 10,
min: -45,
max: 45,
tickDecimals: 1
},
grid: {
clickable: 1,
hoverable: 1,
backgroundColor: { colors: [ "#fff", "#eee" ] },
borderWidth: {
top: 1,
right: 1,
bottom: 2,
left: 2
}
}
});