Chart Node

Charts are a powerful and flexible way to visualize your data, letting Dynaboard do the heavy lifting.

Create a chart node and specify its data source. Your data can come from any other node, most commonly the output of a function node (e.g. {{function1.data}}). From there, the chart node has a handful of options to customize its look and feel.

Charts in Dynaboard are built on top of the incredible Plotly charting library, used many top data teams.

Supported Charts

  • Line charts (LINE)
  • Bar charts (BAR)
  • Scatter plots (SCATTER)

Properties

Visible

PropchartNode.isVisible
Typeboolean
Default{{true}}

Whether or not this node is visible.

Enabled

PropchartNode.isEnabled
Typeboolean
Default{{true}}

Whether or not this node is enabled.

Tooltip

PropchartNode.tooltip
Typestring
Defaultundefined

The tooltip text to display when hovered or focused over this node.

Top

PropchartNode.top
Typestring
Default1

The position of the node from the top side of the grid (grid-row-start).

Left

PropchartNode.left
Typestring
Default1

The position of the node from the left side of the grid (grid-column-start).

Width

PropchartNode.width
Typestring
Default650px

The width of the node. When this node is in a grid layout, this should be done using unitless grid column units (specifying 4 will become grid-column-end: span 4). When this node is in a stack layout, the width must be specified using CSS units (e.g. 100px or 100%).

Min Width

PropchartNode.minWidth
Typestring
Defaultnone

The minimum width of the node. When this node is in a grid layout, this property is ignored.

Max Width

PropchartNode.maxWidth
Typestring
Defaultnone

The maximum width of the node. When this node is in a grid layout, this property is ignored.

Height

PropchartNode.height
Typestring
Default450px

The height of the node. When this node is in a grid layout, this should be done using unitless grid row units (specifying 4 will become grid-row-end: span 4). When this node is in a stack layout, the height must be specified using CSS units (e.g. 100px or 100%).

Min Height

PropchartNode.minHeight
Typestring
Defaultnone

The minimum height of the node. When this node is in a grid layout, this property is ignored.

Max Height

PropchartNode.maxHeight
Typestring
Defaultnone

The minimum height of the node. When this node is in a grid layout, this property is ignored.

Overflow

PropchartNode.overflow
TypeOverflow ('auto' | 'visible' | 'hidden' | 'scroll')
Defaultauto

The strategy used to handle overflow in the horizontal and vertical axes for content that is larger than its container.

Overflow X

PropchartNode.overflowX
TypeOverflow ('auto' | 'visible' | 'hidden' | 'scroll')
Defaultauto

The strategy used to handle overflow in the horizontal axis for content that is larger than its container.

Overflow Y

PropchartNode.overflowY
TypeOverflow ('auto' | 'visible' | 'hidden' | 'scroll')
Defaultauto

The strategy used to handle overflow in the vertical axis for content that is larger than its container.

Custom Styles

PropchartNode.styles
Typestring
Defaultelement.styles { }

Custom CSS styles to be applied to the node. Use element.styles to refer to the current node.

Chart Title

PropchartNode.title
Typestring
Defaultundefined

The title of the chart to be displayed on top of the chart.

Legend

PropchartNode.allowLegend
Typeboolean
Default{{false}}

Whether or not to allow legend in the chart.

Legend Orientation

PropchartNode.legendOrientation
TypeLegendOrientations ('v' | 'h')
Defaultv

The orientation of the legend in the chart.

Legend Position

PropchartNode.legendPosition
TypeLegendPositions ('top' | 'bottom' | 'left' | 'right')
Defaulttop

The position of the legend in the chart.

Interactive

PropchartNode.isInteractive
Typeboolean
Default{{true}}

Whether or not to be interactive with the chart.

Data Source

PropchartNode.dataSource
TypeArray<UnknownRecord>
Defaultundefined

The data source to use for the chart. Data sources should be an array of objects with a consistent set of keys. For example can represent a cartesian X/Y coordinate by having an array of objects with keys x and y.

Parent Chart Type

PropchartNode.parentChartType
TypeParentChartTypes ('cartesian' | 'pie' | 'custom')
Defaultcartesian

The type of chart to be configured.

Dimensions

PropchartNode.dimensions
TypeArray<{ key: string, id: string, name: string, side: string, yKey: string, type: string, mode: string, markerColor: string }>
Default[]

The dimension configuration for the chart.

X Key

PropchartNode.xKey
Typestring
Defaultundefined

The key to use from the data source to provide the X values of the chart.

Horizontal axis title

PropchartNode.horizontalAxisTitle
Typestring
Defaultundefined

The title to add for the X axis of the chart.

Left vertical axis title

PropchartNode.leftVerticalAxisTitle
Typestring
Defaultundefined

The title to add for the left Y axis of the chart.

Right vertical axis title

PropchartNode.rightVerticalAxisTitle
Typestring
Defaultundefined

The title to add for the right Y axis of the chart.

Horizontal axis type

PropchartNode.horizontalAxisType
TypeChartAxisTypes ('-' | 'linear' | 'log' | 'date' | 'category' | 'multicategory')
Default-

The scale type to use for the X axis.

Left vertical axis type

PropchartNode.leftVerticalAxisType
TypeChartAxisTypes ('-' | 'linear' | 'log' | 'date' | 'category' | 'multicategory')
Default-

The scale type to use for the left Y axis.

Right vertical axis type

PropchartNode.rightVerticalAxisType
TypeChartAxisTypes ('-' | 'linear' | 'log' | 'date' | 'category' | 'multicategory')
Default-

The scale type to use for the right Y axis.