Black Lives Matter. Please consider donating to Black Girls Code today.

Name not appearing for one trace

I have my code like this :

  if ( {
    $scope.metricsData =;
    traceArray = [];
    for (var k = 0; k <; k++) {
      traceJson = {
        x: ["Services"],
        y: [[k] * 100],
        type: 'bar',
        textposition: 'auto',
        hoverinfo: 'y',
        marker: {
          // color: randomcolor,
          opacity: 0.6,
          line: {
            // color: randomcolor,
            width: 1.5

Also, if I am using hoverinfo:x+y+name, it works but the name doesn’t show all the characters as it is long.
I am already using text so how to manage if I want to display the full name.

Hi @yash1 welcome to the forum! You can set the layout['hoverlabel']['namelength] to a large value so that the whole name appears.