Skip to content

Latest commit

 

History

History
66 lines (57 loc) · 5.08 KB

WaterFallPlot.md

File metadata and controls

66 lines (57 loc) · 5.08 KB

WaterfallPlot Component

WaterfallPlot

mark Object in Graph Props

'mark': {
  'position': {
    'x': {
      'domain': ['-10', '0', '10']
    },
    'z': {
      'scaleType': 'ordinal',
      'field': 'Alpha'
    }
  },
  'style': {
    'stroke': {
      'color': 'black',
      'width': 2,
    },
    'fill': {
      'color': 'red',
      'opacity': 0.5,
    }
  }
}

Properties for mark for Parametric Waterfall Plot

Property Type Description
position object Defines the how the position of vertices for contour will be mapped. Required
position.x object Required.
position.x.domain float Defines the domain for x position. Not Required. If not present the domain is calculated from the provided data depending on the position.x.scaleType.
position.x.startFromZero boolean Defines if the domain starts from 0 or not. Not Required. Default value: false Only applicable if position.x.domain is not given and position.x.scaleType is linear.
position.y object Not Required.
position.y.domain float Defines the domain for y position. Not Required. If not present the domain is calculated from the provided data depending on the position.y.scaleType.
position.y.startFromZero boolean Defines if the domain starts from 0 or not. Not Required. Default value: false Only applicable if position.y.domain is not given and position.y.scaleType is linear.
position.z object Required.
position.z.scaleType string Defines the scale type for x position of the points on the mesh. Required. Available values: linear or ordinal.
position.z.field string Defines the field in the data that will be mapped as x position of the points on the mesh. Required.
position.z.domain float Defines the domain for x position. Not Required. If not present the domain is calculated from the provided data depending on the position.z.scaleType.
style object Defines the style of the contour. Required
style.fill object Defines the fill of the surface. Not equired.
style.fill.opacity float Defines the opacity of the surface. Not equired. Default value: 1. Value must be between 0 and 1.
style.fill.color string Defines the color for fill. Not Required. Default value: "#ff0000".
style.stroke object Defines the stroke for the mesh. Not Required. If not present the mesh are not stroked. This can be used to design a mesh to make the mesh more readable.
style.stroke.width float Defines the stroke of the mesh. Not Required. Default value: 1.
style.stroke.color string Defines the stroke color for mesh. Not Required. Default value: "#000000".
style.stroke.opacity float Defines the stroke opacity for mesh. Not Required. Default value: 1. Value must be between 0 and 1.

Data

Datafile: csv

Alpha,-10,0,10
10,-0.154623,-0.154975,-0.154623
20,-0.159781,-0.159673,-0.159781
30,-0.16475,-0.177522,-0.16475