Marcelle
Guide
API Reference
Examples
Credits
GitHub
Guide
API Reference
Examples
Credits
GitHub
  • Core

    • Component API
    • Streams
    • Data Storage
    • Models
    • Utilities
  • Components

    • Charts
    • Data sources
    • Data displays
    • Model interfaces
    • Models
    • Prediction displays
    • Widgets
  • Layouts

    • Dashboards
    • Wizards
  • Python API

Charts

genericChart

genericChart({
  preset?: 'line' | 'line-fast' | 'bar' | 'bar-fast';
  options?: ChartOptions;
}): Chart;

A Charting component using the Chart.js library, to visualize data streams.

Parameters

OptionTypeDescriptionRequiredDefault
presetstringThe chart preset. Available presets are 'line', 'line-fast', 'bar', 'bar-fast'.'line'
optionsChartOptionsCustom Chart Options{}

Custom chart options can be passed as an object that is compatible with Chart.js's options (see online documentation), with 2 additional shorthand options xlabel and ylabel.

Example

TODO;

scatterPlot

scatterPlot(
  dataset: Stream<number[][]>,
  labels: Stream<string[] | number[]>
  ): ScatterPlot;

A scatter plot component using the scatterGL library.

Parameters

OptionTypeDescriptionRequired
datasetStream<number[][]>Stream of number arrays containing 2-dimensional data to be plotted✓
labelsStream<string[] | number[]>Stream of labels (either as strings or numbers) used to apply colors on data points✓
Edit this page
Last Updated:: 6/15/21, 10:12 PM
Contributors: Jules Françoise
Next
Data sources