[ "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" ]
randRange( 0, DAYS.length - 1 )
shuffle( [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], DAYS.length )
(function() {
var ordinals = jQuery.map( DAYS, function( day, i ) {
return day.substring( 0, 2 );
});
return { min: 0,
max: 10,
tickCount: 10,
values: VALUES,
ordinals: ordinals };
})()
person( 1 ) wrote down how many color( 1 ) plural( clothing( 1 ) ) he( 1 ) saw every day this week.
How many color( 1 ) plural( clothing( 1 ) ) did he( 1 ) see on DAYS[ INDEX ]?
var width = 10;
var height = 10;
init({
range: [ [ -1, width + 1 ], [ -1, height + 0.5 ] ]
});
var pos = { lx: 0, ly: 0, width: width, height: height};
graph.lc = new LineChart( DATA, pos );
graph.lc.draw();
VALUES[ INDEX ] color( 1 ) plural( clothing( 1 ) )
Find the dot for DAYS[ INDEX ] by looking at the text at the bottom of the scatter plot.
graph.lc.highlightDataPoint( INDEX );
Compare how high up the dot is with the numbers to the left.
graph.lc.labelDataPoint( INDEX );
He( 1 ) saw VALUES[ INDEX ] color( 1 ) plural( clothing( 1 ) ) on DAYS[ INDEX ].