@barchart/chart-lib 2.397.0 → 2.400.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 +13 -0
- chart-lib/barchart.chart.js +8 -8
- chart-lib/package.json +1 -1
- chart-lib/schemas/chart.schema.json +10 -1
chart-lib/barchart.chart.d.ts
CHANGED
|
@@ -818,7 +818,13 @@ declare module "@barchart/chart-lib" {
|
|
|
818
818
|
snapAnnotationsToPrices?: boolean;
|
|
819
819
|
};
|
|
820
820
|
|
|
821
|
+
export type HorizontalAxisPosition = "bottom" | "top" | "both";
|
|
822
|
+
|
|
821
823
|
export type TimeAxisModel = {
|
|
824
|
+
/** Edges on which to show the time axis.
|
|
825
|
+
* @default bottom
|
|
826
|
+
*/
|
|
827
|
+
position?: HorizontalAxisPosition;
|
|
822
828
|
/** Override of the format for the time ticks on the time scale. Uses the same format specifier(s) as the same setting in the @see CrosshairModel */
|
|
823
829
|
format?: string;
|
|
824
830
|
/** Minimum _time_ (in milliseconds) distance between the two ticks on the time scale.
|
|
@@ -1649,6 +1655,7 @@ declare module "@barchart/chart-lib" {
|
|
|
1649
1655
|
export interface ScaleAccessor {
|
|
1650
1656
|
id: string;
|
|
1651
1657
|
context: {
|
|
1658
|
+
id?: "Get" | "Update";
|
|
1652
1659
|
scale?: ScaleType;
|
|
1653
1660
|
marginBars?: number;
|
|
1654
1661
|
minPadding?: number;
|
|
@@ -1659,6 +1666,7 @@ declare module "@barchart/chart-lib" {
|
|
|
1659
1666
|
includePercentChangeWithLastValue?: boolean;
|
|
1660
1667
|
snapAnnotationsToPrices?: boolean;
|
|
1661
1668
|
primaryOnTheLeft?: boolean;
|
|
1669
|
+
horizontalAxisPosition?: HorizontalAxisPosition;
|
|
1662
1670
|
nonEodLabelWithDate?: boolean;
|
|
1663
1671
|
ordinalName?: string;
|
|
1664
1672
|
contractTransition?: LineTransition;
|
|
@@ -1689,6 +1697,7 @@ declare module "@barchart/chart-lib" {
|
|
|
1689
1697
|
hiddenItems?: HiddenItems;
|
|
1690
1698
|
exprSkipLeadingEmpty?: boolean;
|
|
1691
1699
|
extendedHours?: boolean;
|
|
1700
|
+
useLastTrade?: boolean;
|
|
1692
1701
|
realTimeCboeBzx?: boolean;
|
|
1693
1702
|
buildContinuation?: boolean;
|
|
1694
1703
|
};
|
|
@@ -2242,6 +2251,8 @@ declare module "@barchart/chart-lib" {
|
|
|
2242
2251
|
interface NormalTimeSeriesQuery extends BaseTimeSeriesQuery {
|
|
2243
2252
|
/** Aggregation of the data. */
|
|
2244
2253
|
aggregation: Aggregation;
|
|
2254
|
+
/** Use historical last-trade closes for daily and higher bars (default false). */
|
|
2255
|
+
useLastTrade?: boolean;
|
|
2245
2256
|
/** Limit returned data to a given time span. */
|
|
2246
2257
|
range?: RangePair;
|
|
2247
2258
|
/** Should we apply the splits (`true` by default) to the data? */
|
|
@@ -2261,6 +2272,8 @@ declare module "@barchart/chart-lib" {
|
|
|
2261
2272
|
seriesKind: SeriesKind;
|
|
2262
2273
|
/** Should the chart cache the result; used _only_ when the data feed supports caching. */
|
|
2263
2274
|
cacheMe: boolean;
|
|
2275
|
+
/** Use historical last-trade closes for daily and higher bars (default false). */
|
|
2276
|
+
useLastTrade?: boolean;
|
|
2264
2277
|
/** Limit returned data to a given time span. */
|
|
2265
2278
|
range?: RangePair;
|
|
2266
2279
|
/** Should we apply the splits (`true` by default) to the data? */
|