Added a setting to specify the graph type (line or bar).