fixed so the options of types and subtypes for the line diagram is dependent of the dataset