@barchart/chart-lib 2.278.0 → 2.279.1
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 +16 -10
- chart-lib/barchart.chart.js +1 -1
- chart-lib/package.json +1 -1
- chart-lib/schemas/chart.schema.json +3 -17
chart-lib/barchart.chart.d.ts
CHANGED
|
@@ -1385,7 +1385,8 @@ declare module "@barchart/chart-lib" {
|
|
|
1385
1385
|
| OutlineAccessor
|
|
1386
1386
|
| ThemeAccessor
|
|
1387
1387
|
| ClearAccessor
|
|
1388
|
-
| MovePlotAccessor
|
|
1388
|
+
| MovePlotAccessor
|
|
1389
|
+
| PinPlotAccessor;
|
|
1389
1390
|
|
|
1390
1391
|
export interface ClearAccessor {
|
|
1391
1392
|
id: "Clear";
|
|
@@ -1597,6 +1598,18 @@ declare module "@barchart/chart-lib" {
|
|
|
1597
1598
|
};
|
|
1598
1599
|
}
|
|
1599
1600
|
|
|
1601
|
+
export type PinPlotAxis = "PrimaryAxis" | "SecondaryAxis" | "NoAxis";
|
|
1602
|
+
|
|
1603
|
+
export interface PinPlotAccessor {
|
|
1604
|
+
id: "PinPlot";
|
|
1605
|
+
context: {
|
|
1606
|
+
id?: "Get";
|
|
1607
|
+
index: number;
|
|
1608
|
+
type: PlotType;
|
|
1609
|
+
targetAxis?: PinPlotAxis;
|
|
1610
|
+
};
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1600
1613
|
export interface TemplateAccessor {
|
|
1601
1614
|
id: string;
|
|
1602
1615
|
context: {
|
|
@@ -2254,7 +2267,7 @@ declare module "@barchart/chart-lib" {
|
|
|
2254
2267
|
* @param config The quick way to load a template and set the main plot type (with lots of defaults).
|
|
2255
2268
|
* @returns @see ChartAccessor
|
|
2256
2269
|
*/
|
|
2257
|
-
addChart(renderTo: RenderTo, config?:
|
|
2270
|
+
addChart(renderTo: RenderTo, config?: MainPlotApiModel | string | null): ChartAccessor;
|
|
2258
2271
|
/** When you are completely tearing down the HTML of the chart on a page (assuming the page itself isn't being closed - if it is, nothing to do) you should call this method. If you are simply loading another chart's definition into the existing chart, there is no need to do this.
|
|
2259
2272
|
* @param renderTo The id of the element (or the element itself) the chart was placed into.
|
|
2260
2273
|
*/
|
|
@@ -2404,20 +2417,13 @@ declare module "@barchart/chart-lib" {
|
|
|
2404
2417
|
fill: FillTrait;
|
|
2405
2418
|
}
|
|
2406
2419
|
|
|
2407
|
-
export interface DetachedScale {
|
|
2408
|
-
/** Top scale margin as (mathematical) percentage, defaults to 0.01 (1%) */
|
|
2409
|
-
marginTop?: number;
|
|
2410
|
-
/** Bottom scale margin as (mathematical) percentage, defaults to 0.01 (1%) */
|
|
2411
|
-
marginBottom?: number;
|
|
2412
|
-
}
|
|
2413
|
-
|
|
2414
2420
|
export interface StudyDefaults {
|
|
2415
2421
|
source?: string;
|
|
2416
2422
|
inputs?: StudyInput[];
|
|
2417
2423
|
curves: Curve[];
|
|
2418
2424
|
levels?: StudyLevel[];
|
|
2419
2425
|
bands?: StudyBand[];
|
|
2420
|
-
detachedScale?:
|
|
2426
|
+
detachedScale?: boolean;
|
|
2421
2427
|
}
|
|
2422
2428
|
|
|
2423
2429
|
export interface Study {
|