@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
39 lines (26 loc) • 1.01 kB
Markdown
lang: en
title: 'API docs: context-explorer.rendergraph'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/extensions/context-explorer
permalink: /doc/en/lb4/apidocs.context-explorer.rendergraph.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/context-explorer](./context-explorer.md) > [renderGraph](./context-explorer.rendergraph.md)
## renderGraph() function
Render a graphviz dot string
<b>Signature:</b>
```typescript
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; } | Options for the rendering |
<b>Returns:</b>
Promise<string>