Displaying 3 results from an estimated 3 matches for "valueformat".
2023 Jul 22
2
plotly
...nce` of 4800. But the large value is given as 2870, and the smaller value is given as -1930 i.e. both values are rounded. Can I control the precision of these two numbers?
------ Response: -------------------------------
In Plotly, you can control the precision of the numbers by specifying the `valueformat` and `delta.valueformat` parameters. These parameters accept a string in the format that is used by the C `printf` function. For example, `%.2f` specifies a number with two digits after the decimal point. Here is an example:
```R
plotly::plot_ly(
domain = list(x = c(0, 1), y = c(0, 1)),
value...
2023 Jul 26
1
plotly
...l",
? size = 12,
? color = "black",
? face="bold")
plot_ly(
? domain = list(x = c(0, .5), y = c(0,0.5)),
? value = 319,
? title = list(text = "Example\n4,800 Target",font=t),
? type = "indicator",
? mode = "gauge+number+delta",
? number = list(valueformat = "%.2f",font=t5),
? delta = list(reference = 4800, valueformat = "%.2f",font=t3),
? gauge = list(
??? axis = list(range = list(NULL, 9600),
??????????????? tickfont = list(size = 12, face="bold",family = "Arial")),
??? bar = list(color = "black")...
2023 Jul 22
1
plotly
What do you mean "Rounded"?
What do you expect, what do you get instead?
?
> On Jul 22, 2023, at 10:40, Thomas Subia via R-help <r-help at r-project.org> wrote:
>
> Colleagues,
> Thanks for the update.
> My colleagues at work have run this script but the resulting graph output for value is rounded. How can one turn this annoying feature off?
> I've