Replacing thousand separator "k" with comma


#1

In the below image, is it possible to remove the “k” following the numbers in the hover text and/or the y-axis and replace it with the number and a comma? For example, 81.014k -> 81,014.

Here’s an example of my trace code:

var trace3 = {
  type: "scatter",
  mode: "lines",
  name: 'Massachusetts',
  x: unpack(rows, 'year'),
  y: unpack(rows, 'MA_adm'),
  line: {
    dash: 'solid',
    color: colors[2]
  }
}

#2

Posted too soon–just figured out how to put in commas in the hover text. Any help with doing the same in the y-axes would be appreciated!