When the user adds the data to the charts, he needs to set the metric and dimension attribute according to the attribute names present in data.
It is possible that the user wants to give different names to these labels and dimensions. For which we need to create another optional input attributes called labelNames and dimensionNames. When the user sends these attributes, we need to use these attributes to display in the UI