% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/class-workbook-wrappers.R
\name{wb_add_encharter}
\alias{wb_add_encharter}
\title{Add a Chart object to a workbook sheet}
\usage{
wb_add_encharter(wb, sheet = current_sheet(), dims = NULL, graph)
}
\arguments{
\item{wb}{An \code{openxlsx2} workbook object.}

\item{sheet}{Sheet name or index where the chart will be placed.}

\item{dims}{Character string defining the cell range (e.g., "E2:M20").}

\item{graph}{An initialized \code{encharter} R6 object.}
}
\value{
The workbook object, invisibly.
}
\description{
Renders a \code{encharter} R6 object and injects the resulting XML into an
\code{openxlsx2} workbook at the specified location.
}
