Time series chart - ghost data

You've posted your code as a quotation instead of preformatted text, so we've lost your indentation and syntax highlighting. Can you edit to fix (rather than post it again)?

Please see Wiki - how to post code on this forum.