API reference
@salmonui/charts/chart
49 exported symbols: 4 components, 31 interfaces and 14 types. Each name links its page with the signature, docs and members.
import { … } from '@salmonui/charts/chart';Components
ChartChartAxisAn axis as a child of Chart; id="x" / id="y" configure the primary axes.ChartSeriesOne chart series as a child of Chart (same fields as a series entry).ChartSyncGroup
Interfaces
ChartAnnotationChartApiChartAxisBandChartAxisLabelContextChartAxisLabelGroupChartAxisLineChartAxisOptionsChartAxisPropsChartChangeEventChartColorRangeA y value range with its data colors: one color, or several spread across the range.ChartCrosshairOptionsChartDataLabelsChartErrorBarsChartExportOptionsChartFeatureA feature value from @salmonui/charts/chart/features.ChartIndicatorA technical indicator over a series, drawn by the analysis layer.ChartLegendItemChartLegendOptionsChartMarkersChartPlotPointA plot position in drawing px with its data values on the x axis and the first y axis.ChartPointContextChartPointRefChartPropsChartSegmentChartSeriesOptionsChartSyncGroupPropsChartTextChartTooltipContextChartTooltipOptionsChartTrendlineChartZoomOptions
Types
ChartCurveChartDatumA datum: a plain record read by field names (nested paths allowed, 'price.close').ChartExportWritersWriter loaders of api.export: dynamic imports of @salmonui/export subpaths.ChartFormatA number preset ('n2', 'c0', 'p1'), a {value} template ('{value} °C'), or Intl options.ChartLabelOverlapChartLegendShapeChartLineStyleChartMarkerShapeChartPaneSizeA pane row height or column width: px, 'n%' of the plot, or { size }; unsized panes share the rest.ChartScaleChartSeriesPropsChartSeriesTypeChartZoomRangeChartZoomTool