Styling Points and having a fixed x-axis labels

48 views
Skip to first unread message

axc...@gmail.com

unread,
Nov 21, 2015, 10:23:48 AM11/21/15
to Flot graphs
Using the Flot - Point graphs , for example, having the code

$(function() {
var d3 = [[0, 0],[0.5, 0.5], [1, 1], [1.5, 1.5],[2, 2], [2.5, 2.5],[3, 3]];
var plot = $.plot(placeholderHydro, [d1, d2, d3]);
$.plot("#placeholderHydro", [{
data: d3,
points: { show: true }
}]);
});


How do I style the points? it is currently showing up as yellow, enlarged dots but what if I want a simple, small red dots?

Also, for the x-axis, how do I have a fixed-interval of 0 - 24 hours, incrementing by 1 hour so that it is 0, 1, 2, 3, 4, 5, 6 ...... 24 


Reply all
Reply to author
Forward
0 new messages