adjust chart size
close issue#4, limit legend labels to categories actually present in data