Skip to content

@putianyi888/vue3-plots


flipY(domain): PlotDomain

Defined in: utils.ts:60

Returns a new domain with the y-axis bounds reversed.

This is useful when the same data domain should render with y increasing from top to bottom.

Parameters

ParameterTypeDescription
domainPlotDomainDomain to flip.

Returns

PlotDomain

A new domain with yMin and yMax swapped.