类型 ChartLayout

API 文档由 Go 源码生成,内容为英文。

type ChartLayout struct {
	Bounds       ui.Rect
	PlotBounds   ui.Rect
	LegendBounds ui.Rect
}

ChartLayout reports the resolved container and the space left for caller- owned chart geometry. LegendBounds includes the official 12px separation.

构造函数

PaintChartContainer#

func PaintChartContainer(canvas *ui.Canvas, theme ui.Theme, bounds ui.Rect, series []ChartSeries, options ChartContainerOptions) ChartLayout

PaintChartContainer paints optional legend chrome and returns the plot rectangle for caller-owned data geometry. Like shadcn's ChartContainer, it is not a chart engine: it performs no scaling, ticks, paths, or animation.