Function: normalizeChartOption()
normalizeChartOption<
T>(option,chrome?):T
Return a render-ready copy of a planner EChartsOption: compact
value ticks, conventionally-placed axis names, legible category
labels, and title/grid spacing. Pure and shallow-cloning - the input
(which may be a shared/cached object) is never mutated. Non-object
input is returned untouched.
Pass chrome to also color the chart for a theme (see
ChartChrome): the live one for an on-screen chart, or
LIGHT_CHART_CHROME for output that is always read on white, such as
the PDF export. Omit it and only layout is normalized, leaving
Echarts’ own near-black defaults - legible on a light surface,
invisible on a dark one.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”option
Section titled “option”T
chrome?
Section titled “chrome?”Returns
Section titled “Returns”T