fixed invalid month and clear old data before render new graph