I use vis.js to display a graph. I know we can update the node with:
nodes.update([{
id: 1,
font: {
color: "#0d8"
}
}]);
However, I can't update the font weight, for example, with font.bold: true.
I've also tried to use font.multi, but no luck.
Can you show how to set existing label as bold? (potentially as normal back too)
font.bold
totrue
is not how it is supposed to be used: this option is to change the font of<b>
elements inside the label, not to enable bold (font.multi: "html"
does that) – Seena