Add rules to generate charts from samples.