@barchart/chart-lib 2.366.1 → 2.367.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- chart-lib/barchart.chart.d.ts +45 -10
- chart-lib/barchart.chart.js +8 -8
- chart-lib/index.html +1 -1
- chart-lib/package.json +1 -1
- chart-lib/schemas/chart.schema.json +87 -10
- chart-lib/style.css +3 -1
chart-lib/barchart.chart.d.ts
CHANGED
|
@@ -670,7 +670,7 @@ declare module "@barchart/chart-lib" {
|
|
|
670
670
|
dividendsAdjust: boolean,
|
|
671
671
|
backAdjust: boolean,
|
|
672
672
|
daysToExpiration: number,
|
|
673
|
-
contractRoll: ContractRoll
|
|
673
|
+
contractRoll: ContractRoll,
|
|
674
674
|
);
|
|
675
675
|
unit: AggregationUnit;
|
|
676
676
|
spec: AggregationSpec;
|
|
@@ -1205,7 +1205,7 @@ declare module "@barchart/chart-lib" {
|
|
|
1205
1205
|
export function getStudyOptions(
|
|
1206
1206
|
model: StudyPlotModel & { target: string },
|
|
1207
1207
|
agg: Aggregation,
|
|
1208
|
-
curves?: Curve[]
|
|
1208
|
+
curves?: Curve[],
|
|
1209
1209
|
): StudyOptions;
|
|
1210
1210
|
|
|
1211
1211
|
export enum ExpressionMissingBar {
|
|
@@ -1241,7 +1241,7 @@ declare module "@barchart/chart-lib" {
|
|
|
1241
1241
|
export function makeExpression(
|
|
1242
1242
|
model: ExprNode,
|
|
1243
1243
|
innerSeries: TimeSeries[],
|
|
1244
|
-
policy: ExprPolicy
|
|
1244
|
+
policy: ExprPolicy,
|
|
1245
1245
|
): CalculableTimeSeries;
|
|
1246
1246
|
|
|
1247
1247
|
/** The configuration is extensively documented at our documentation site. */
|
|
@@ -1608,6 +1608,7 @@ declare module "@barchart/chart-lib" {
|
|
|
1608
1608
|
id: "Add" | "Get" | "Delete" | "Update";
|
|
1609
1609
|
type?: PlotType;
|
|
1610
1610
|
main?: boolean;
|
|
1611
|
+
uid?: string;
|
|
1611
1612
|
index?: number;
|
|
1612
1613
|
studyId?: string;
|
|
1613
1614
|
fundamentalId?: string;
|
|
@@ -1619,8 +1620,10 @@ declare module "@barchart/chart-lib" {
|
|
|
1619
1620
|
curves?: Curve[];
|
|
1620
1621
|
levels?: StudyLevel[];
|
|
1621
1622
|
bands?: StudyBand[];
|
|
1623
|
+
basis?: StudyBasis;
|
|
1622
1624
|
placement?: StudyPlacement;
|
|
1623
1625
|
cloneIndex?: number;
|
|
1626
|
+
cloneUid?: string;
|
|
1624
1627
|
offsets?: number[];
|
|
1625
1628
|
precision?: number;
|
|
1626
1629
|
visible?: boolean;
|
|
@@ -1641,6 +1644,7 @@ declare module "@barchart/chart-lib" {
|
|
|
1641
1644
|
symbol?: string;
|
|
1642
1645
|
type: PlotType;
|
|
1643
1646
|
expression?: string;
|
|
1647
|
+
seasonal?: string;
|
|
1644
1648
|
leftScale?: boolean; // NOTE: deprecated, use oppositeScale instead
|
|
1645
1649
|
oppositeScale?: boolean;
|
|
1646
1650
|
curves?: Curve[];
|
|
@@ -1675,7 +1679,8 @@ declare module "@barchart/chart-lib" {
|
|
|
1675
1679
|
id: "MovePlot";
|
|
1676
1680
|
context: {
|
|
1677
1681
|
id?: "Get";
|
|
1678
|
-
|
|
1682
|
+
uid?: string;
|
|
1683
|
+
index?: number;
|
|
1679
1684
|
type: PlotType;
|
|
1680
1685
|
targetPane?: MoveTargetPane;
|
|
1681
1686
|
};
|
|
@@ -1687,7 +1692,8 @@ declare module "@barchart/chart-lib" {
|
|
|
1687
1692
|
id: "PinPlot";
|
|
1688
1693
|
context: {
|
|
1689
1694
|
id?: "Get";
|
|
1690
|
-
|
|
1695
|
+
uid?: string;
|
|
1696
|
+
index?: number;
|
|
1691
1697
|
type: PlotType;
|
|
1692
1698
|
targetAxis?: PinPlotAxis;
|
|
1693
1699
|
};
|
|
@@ -2001,7 +2007,7 @@ declare module "@barchart/chart-lib" {
|
|
|
2001
2007
|
*/
|
|
2002
2008
|
export function appendDOMElement<N extends keyof HTMLElementTagNameMap>(
|
|
2003
2009
|
element: HTMLElement,
|
|
2004
|
-
nodeName: N
|
|
2010
|
+
nodeName: N,
|
|
2005
2011
|
): HTMLElement;
|
|
2006
2012
|
/**
|
|
2007
2013
|
* Apply styles to a given DOM element
|
|
@@ -2741,6 +2747,8 @@ declare module "@barchart/chart-lib" {
|
|
|
2741
2747
|
export type PlotPlacement = "TimeAxis" | "WithSeries";
|
|
2742
2748
|
|
|
2743
2749
|
export interface SymbolPlotModel {
|
|
2750
|
+
/** Unique identifier of this plot within a single chart definition. */
|
|
2751
|
+
uid: string;
|
|
2744
2752
|
/** The curves are visual representations of the data associated with this plot. They are individual drawings (lines, OHLC bars, candlesticks) which project some slice of data onto the screen in a particular way. There are often multiple curves per single plot and minimum is 1. */
|
|
2745
2753
|
curves: Curve[];
|
|
2746
2754
|
/** A symbol name of this plot. */
|
|
@@ -2760,6 +2768,8 @@ declare module "@barchart/chart-lib" {
|
|
|
2760
2768
|
}
|
|
2761
2769
|
|
|
2762
2770
|
export interface FundamentalPlotModel {
|
|
2771
|
+
/** Unique identifier of this plot within a single chart definition. */
|
|
2772
|
+
uid: string;
|
|
2763
2773
|
/** @see SymbolPlotModel */
|
|
2764
2774
|
curves: Curve[];
|
|
2765
2775
|
/** The symbol name whose data we are showing. */
|
|
@@ -2773,13 +2783,30 @@ declare module "@barchart/chart-lib" {
|
|
|
2773
2783
|
type: FundamentalType;
|
|
2774
2784
|
}
|
|
2775
2785
|
|
|
2786
|
+
export type SelectorSeasonal = {
|
|
2787
|
+
kind: "offset";
|
|
2788
|
+
value: number;
|
|
2789
|
+
};
|
|
2790
|
+
|
|
2791
|
+
export type BasisMain = {
|
|
2792
|
+
kind: "main";
|
|
2793
|
+
};
|
|
2794
|
+
|
|
2795
|
+
export type BasisSeasonal = {
|
|
2796
|
+
kind: "seasonal";
|
|
2797
|
+
uid: string;
|
|
2798
|
+
offset: number;
|
|
2799
|
+
};
|
|
2800
|
+
|
|
2801
|
+
export type StudyBasis = BasisMain | BasisSeasonal;
|
|
2802
|
+
|
|
2776
2803
|
export interface StudyPlotModel {
|
|
2804
|
+
/** Unique identifier of this plot within a single chart definition. */
|
|
2805
|
+
uid: string;
|
|
2777
2806
|
/** @see SymbolPlotModel */
|
|
2778
2807
|
curves: Curve[];
|
|
2779
|
-
/**
|
|
2780
|
-
|
|
2781
|
-
*/
|
|
2782
|
-
basis?: string;
|
|
2808
|
+
/** The plot this study will be based on. Defaults to main plot. */
|
|
2809
|
+
basis?: StudyBasis;
|
|
2783
2810
|
/** A unique identifier of the study. */
|
|
2784
2811
|
study: StudyId;
|
|
2785
2812
|
/** An input field the study will be based on, if there's only one (valid for large number of cases, hence this "shortcut"). */
|
|
@@ -2794,6 +2821,8 @@ declare module "@barchart/chart-lib" {
|
|
|
2794
2821
|
}
|
|
2795
2822
|
|
|
2796
2823
|
export interface ExpressionPlotModel {
|
|
2824
|
+
/** Unique identifier of this plot within a single chart definition. */
|
|
2825
|
+
uid: string;
|
|
2797
2826
|
/** @see SymbolPlotModel */
|
|
2798
2827
|
curves: Curve[];
|
|
2799
2828
|
/** An expression or a mathematical formula defining this plot. The syntax is described in detail on our documentation site. */
|
|
@@ -2806,6 +2835,8 @@ declare module "@barchart/chart-lib" {
|
|
|
2806
2835
|
}
|
|
2807
2836
|
|
|
2808
2837
|
export interface SeasonalPlotModel {
|
|
2838
|
+
/** Unique identifier of this plot within a single chart definition. */
|
|
2839
|
+
uid: string;
|
|
2809
2840
|
/** @see SymbolPlotModel */
|
|
2810
2841
|
curves: Curve[];
|
|
2811
2842
|
/** An expression defining this seasonal. */
|
|
@@ -2820,6 +2851,8 @@ declare module "@barchart/chart-lib" {
|
|
|
2820
2851
|
}
|
|
2821
2852
|
|
|
2822
2853
|
export interface ForwardPlotModel {
|
|
2854
|
+
/** Unique identifier of this plot within a single chart definition. */
|
|
2855
|
+
uid: string;
|
|
2823
2856
|
/** @see SymbolPlotModel */
|
|
2824
2857
|
curves: Curve[];
|
|
2825
2858
|
/** An expression defining this forward. */
|
|
@@ -2838,6 +2871,7 @@ declare module "@barchart/chart-lib" {
|
|
|
2838
2871
|
interface Plot {
|
|
2839
2872
|
type: PlotType;
|
|
2840
2873
|
curves: Curve[];
|
|
2874
|
+
uid: string;
|
|
2841
2875
|
index: number;
|
|
2842
2876
|
axisIndex?: number;
|
|
2843
2877
|
paneIndex?: number;
|
|
@@ -2860,6 +2894,7 @@ declare module "@barchart/chart-lib" {
|
|
|
2860
2894
|
bands: StudyBand[];
|
|
2861
2895
|
inputs: StudyInput[];
|
|
2862
2896
|
levels: StudyLevel[];
|
|
2897
|
+
basis?: StudyBasis;
|
|
2863
2898
|
placement: StudyPlacement;
|
|
2864
2899
|
studyId: string;
|
|
2865
2900
|
}
|