Я пытаюсь показать последние XX дней в моем графике, но как я могу это сделать? Я сделал jsFiddle, чтобы вы, ребята, могли видеть, что у меня сейчас.
См. Скрипку
Вот мой код JS:
$("table.chart-dates").each(function() {
var colors = [];
$("table.chart-dates thead th:not(:first)").each(function() {
colors.push($(this).css("color"));
});
$(this).graphTable({
series: 'columns',
position: 'replace',
width: '100%',
height: '200px',
colors: colors
}, {
xaxis: {
mode: "time",
timeformat: "%d/%m"
},
yaxis: {
max: null,
autoscaleMargin: 0.02
}
});
});
Я надеюсь, что кто-то может помочь мне с этим.