# Tenth chart loses trace names and trace box

**URL:** <https://community.plotly.com/t/tenth-chart-loses-trace-names-and-trace-box/81784>\
**Category:** plotly.js\
**Created:** [January 23, 2024, 9:22am UTC](https://community.plotly.com/t/tenth-chart-loses-trace-names-and-trace-box/81784 "2024-01-23T09:22:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![losbellos](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/losbellos/32/26734_2.png) [@losbellos](https://community.plotly.com/u/losbellos)\
**Post date:** [January 23, 2024, 9:22am UTC](https://community.plotly.com/t/tenth-chart-loses-trace-names-and-trace-box/81784/1 "2024-01-23T09:22:28Z")

</div>

Hello!

I am making some charts of a motor. Pls this is weird it doesn’t show at the right side the trace names and the box itself.  
I thinks its some sort of bug. I copy paste a good one from above and put there with the data. It doesnt work.  
the nameing follows, trace1, trace2… trace10  
could be there some error? I also tried with tracea,traceb in the end instead of 10,11

 ![error](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/f/3/f3a29fc0294dde136aa0472e891ce8ef31a56801.webp)

```javascript
trace10 = {
        name: "ORIGINAL Turn TQ",
        x: ANGARR,
        y: TQORIG,   
        type: 'scatter'
      };
var layouta = {

hoverlabel: {
  font: {
    size: 30
  }
},

title: "RELATIONSHIP BETWEEN ANGLE AND TORQUE W/WO RPM CORRECTED <br> CENTRAFORCE BASED LOCAL TORQUE<br>(starts at right side to the left and then to the right...) !",

xaxis: { 
  title: "ANGLE (DEGREE)",
  range: [Math.min.apply(null, ANGARR),Math.max.apply(null, ANGARR)]
},

yaxis: {
  title: "TORQUE (Newton Meter)",
  range: [Math.min.apply(null, TQRPMCOR),Math.max.apply(null, TQRPMCOR)]
},

font: {
    size: 12,
  color: '#000'
}
};

```

BTW in the output code the legend id is not there. So this is some sort of serious bug I think.

Can you please help?

---

<div class="post-metadata">

**Author:** ![losbellos](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/losbellos/32/26734_2.png) [@losbellos](https://community.plotly.com/u/losbellos)\
**Post date:** [January 23, 2024, 10:07am UTC](https://community.plotly.com/t/tenth-chart-loses-trace-names-and-trace-box/81784/2 "2024-01-23T10:07:54Z")

</div>

Its solves by using

showlegend: true, in the traces…  
Thx
