Skip to content

UpDownArrowPlot

Overview

Shows a plot with arrows for numerical data (where the x-value of the bar is a number).

@author Jesse Greenberg (PhET Interactive Simulations)

Class UpDownArrowPlot

import { UpDownArrowPlot } from 'scenerystack/bamboo';

Constructor

new UpDownArrowPlot( chartTransform : ChartTransform, dataSet : Vector2[], providedOptions? : UpDownArrowPlotOptions )

Instance Methods

setDataSet( dataSet : Vector2[] )

Sets the dataSet and redraws the plot.

update()

Redraw the plot. Called automatically if you update the dataSet with setDataSet(). But you can call this yourself if you want to set the dataSet directly and then update later (presumably for performance).

dispose()

Instance Properties

dataSet : Vector2[]

if you change this directly, you are responsible for calling update

Type UpDownArrowPlotOptions

import type { UpDownArrowPlotOptions } from 'scenerystack/bamboo';

Source Code

See the source for UpDownArrowPlot.ts in the bamboo repository.