Skip to content

@putianyi888/vue3-plots


flipX(domain): PlotDomain

Defined in: utils.ts:43

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

This is useful when the same data domain should render with x increasing from right to left.

Parameters

ParameterTypeDescription
domainPlotDomainDomain to flip.

Returns

PlotDomain

A new domain with xMin and xMax swapped.