How do you make all the text values above/in the bars the same size. I have tried both the following, however the numbers are still not uniform and it does not look professional.
data={[
{
name: "",
type: "bar",
x: this.x,
y: this.y,
marker: {
color: this.bar_colors
},
textfont: { //This should work?
size: 14
},
outsidetextfont: { //Or even this?
size: 14
},
text: this.y_rounded,
textangle: "-90",
textposition: "outside",
hovertemplate: `R<sub>cs,h%{x}</sub>: %{y}`
//hoverinfo: "y"
}
]}
The text size does change when I change the numbers, but they still aren’t all uniform and I feel there is room to be larger, or even if there wasn’t do it anyways.
Here are a few examples
Pretty obvious that the single numbers are way larger. Had the size set to twenty on this one
This one is close but the single numbers are still larger. Had the size set to 14, I understand that is trying not to have the longer numbers too big, but there is obviously enough space in this instance to go to 14 and have them all match