formalised chart to use Data class