Skip to content

Plot Container

Puredbest edited this page Jul 1, 2020 · 1 revision

Plot Container

iv-plot-container provides a standard layout where a list of buttons and sliders can be parsed in, along with the names of the functions in the plot that the buttons and sliders should call. These buttons and sliders are displayed around a plot.

Usage

Use this component whenever you want to put a plot in a visualisation and link buttons and sliders to the plot.

API

Props

  • plotType type is string; this is used to select which plot component to show, default is "plotly" which shows the plotly demonstration component.
  • showPlayButton type is boolean; decides if play button is displayed or not.
  • buttons type is a list of objects with the form {message: "Button Text", plotFunction: "functionToBeCalled"} where the message is the text that you want to display on the button and the plotFunction is the name of the function in the plot component that you want the button to call.
  • sliders type is a list of objects with the form {message: "Slider Text", plotFunction: "functionToBeCalled", step: number, min: number, max: number, value: number}

Slots

  • This component has no slots.

Events

  • This component has no custom events.

Data

  • Animate is a boolean, initially set to false, which is changed when the play button is pressed.
Clone this wiki locally