Page Contents

Home > @loopback/context-explorer > renderGraph

renderGraph() function

Render a graphviz dot string

Signature:

export declare function renderGraph(graph: string, options?: {
    engine?: string;
    format?: string;
}): Promise<string>;

Parameters

Parameter Type Description
graph string A graph in dot format
options { engine?: string; format?: string; } (Optional) Options for the rendering

Returns:

Promise<string>