Skip to content

API Reference parrot.outputs.formats.chart

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.outputs.formats.chart

View source

Class BaseChart

Base class for chart renderers - extends BaseRenderer with chart-specific methods

Method BaseChart.to_html

Convert chart object to HTML.

to_html(chart_obj: Any, mode: str = 'partial', include_code: bool = False, code: Optional[str] = None, theme: str = 'monokai', title: str = 'AI-Parrot Chart', **kwargs) -> str

Parameter Type Default Description
chart_obj Any Chart object to render
mode str 'partial' 'partial' for embeddable HTML or 'complete' for full document
include_code bool False Whether to include code section
code Optional[str] None Python code to display
theme str 'monokai' Code highlighting theme
title str 'AI-Parrot Chart' Document title (for complete mode)
**kwargs {} Additional parameters passed to _render_chart_content

Returns: str — HTML string based on mode

Alias BaseRenderer

Re-exported from parrot.outputs.formats.base.BaseRenderer.

Attribute IPYWIDGETS_AVAILABLE

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally