Plotly plugin issue in Grafana

Is there a way where we specify the name of the trace when we query to the database and auto generate color whenever the trace is added?