I have a dataset with pairs {x: someValue, y: count}
where someValue
is a day of the week in a form of (1..7
) where 1
is "Sunday".
On the Ricskshaw chart I would like to display (Mon, Tue..etc) respectively on the X-axis. How do I do that?
At the moment I have done:
var ticksTreatment = 'glow';
var xAxisQPerDay = new Rickshaw.Graph.Axis.Time( {
graph: graphQPerDay,
ticksTreatment: ticksTreatment
} );
xAxisQPerDay.render();
but this gives me, of course, the default values 1s, 2s, 3s etc...