@barchart/chart-lib 2.396.1 → 2.399.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 +8 -0
- chart-lib/barchart.chart.js +12 -12
- chart-lib/package.json +1 -1
- chart-lib/schemas/chart.schema.json +6 -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;
|