Combination of the randomized Document API example and the randomized
LineChart example.