When making a Sankey graph in plotly if your values are below 1.0, Sankey will add an m to the end of the number and represent it as a whole number. I am wondering if there is any way to strip the m off the end of the number and as well show my number as a decimal. You can see an example in the screenshot below and my code that goes along with it.
data = dict(
type=‘sankey’,
node = dict(
pad = 15,
thickness = 20,
line = dict(
color = “black”,
width = 0.5
),
label = [“a”, “b”, “c”, “d”, “e”, “f”, “A”, “B”, “C”, “D”, “E”, “F”, “AA”, “BB”, “CC”, “DD”, “EE”, “FF”],
color = [“green”, “blue”, “red”, “orange”, “purple”, “pink”, “blue”, “blue”, “blue”,“blue”, “blue”, “blue”, “blue”, “blue”, “blue”, “blue”, “blue”,
“blue”],
),
link = dict(
source = Source,
target = Target,
value = Value,
))
layout = dict(
title = “Sankey Diagram”,
font = dict(
size = 10
)
)
fig = dict(data=[data], layout=layout)
py.iplot(fig, validate=False)