Undocumented styles for HTML labels

The documentation (Node Shapes | Graphviz) for HTML styles says ROUNDED and RADIAL for tables, and RADIAL for cells, but a later example shows style="invis" !?
Hmmm!
lib/common/htmllex.c lists: ROUNDED, RADIAL, SOLID, INVISIBLE, INVIS, DOTTED, and DASHED.
And they all work for tables and for cells!
Go and make your tables even prettier!

/**************************************************
The documentation for HTML style says that only ROUNDED and RADIAL are legal values.  This is incomplete.  stylefn in lib/common/htmllex.c lists the following:

"ROUNDED", "RADIAL", "SOLID", "INVISIBLE", "INVIS", "DOTTED", "DASHED"

All work at the table-level and the cell-level.
********************************************************************/
digraph ETL {
  rankdir=LR

    TA [shape=none label=<
        <table bgcolor="red:green">
        <tr><td style="invis">top dog invis</td></tr>
        <tr><td style="dotted">top dog dotted</td></tr>
        <tr><td style="dashed">top dog dashed</td></tr>
        <tr><td style="rounded">top dog rounded</td></tr>
        <tr><td style="solid">top dog solid</td></tr>
        <tr><td style="radial">top dog radial</td></tr>
        <tr><td style="invisible">top dog invisible</td></tr>
        </table>>]

{rank=sink
   TB [shape=none label=<
        <table style="invis" bgcolor="red:green">
        <tr><td style="dotted">invis table</td></tr>
        <tr><td style="dashed">top dog</td></tr>  
        </table>>]
    TC [shape=none label=<
        <table style="rounded" bgcolor="red:green">
        <tr><td style="dotted">rounded table</td></tr>
        <tr><td style="dashed">top dog </td></tr>
        </table>>]
  TD [shape=none label=<
        <table style="dashed" bgcolor="red:green">
        <tr><td>dashed table </td></tr>
        <tr><td >top dog </td></tr>
        </table>>]
  TE [shape=none label=<
        <table style="dotted">
        <tr><td >dotted table </td></tr>
        <tr><td style="dashed">top dog </td></tr>
        </table>>]
  TF [shape=none label=<
        <table style="solid">
        <tr><td style="dotted">solid table</td></tr>
        <tr><td style="radial" bgcolor="blue:yellow">top dog</td></tr>
        </table>>]
  TG [shape=none label=<
        <table style="radial" bgcolor="red:green">
        <tr><td style="dotted">radial table</td></tr>
        <tr><td style="invisible">top dog </td></tr>
        </table>>]
  TH [shape=none label=<
        <table style="invisible" bgcolor="red:green">
        <tr><td style="dotted">invisible table</td></tr>
        <tr><td style="dashed">top dog</td></tr>  
        </table>>]
  }
  TA->{TB TC TD TE TF TG TH}
}
3 Likes