viz-js icon indicating copy to clipboard operation
viz-js copied to clipboard

multi-byte characters in labels take up twice as much space as in 'native' graphviz

Open sverweij opened this issue 7 years ago • 0 comments

Steps taken

Render this digraph with viz.js (either version 1.8.x or 2.0.0)

digraph {
  node [shape=box]
  "Hello world" [label="Привет мир"]
}

... or this one that uses html style label formatting...:

digraph {
  rankdir=LR
  node [shape=plaintext]
  "Hello world" [label= < 
    <table border="1" cellborder="0">
      <tr><td>Привет мир</td></tr>
    </table>
  >]
}

Expected

This is the output from the 'native' graphviz dot (version 2.40.1) respectively: regular-graphviz-output graphviz-output

Found

This is the viz.js output for both digraphs: regular-viz-js-output viz-js-output

sverweij avatar Jul 05 '18 14:07 sverweij