This example will lead you step-by-step to build an interactive time-series chart. For each step, you should view source: each new piece of code will be annotated with a comment. For some steps, you may also want to probe the defined variables using the interactive console.