@barchart/chart-lib 2.280.0 → 2.281.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 +6 -3
- chart-lib/barchart.chart.js +1 -1
- chart-lib/package.json +1 -1
chart-lib/barchart.chart.d.ts
CHANGED
|
@@ -1022,7 +1022,7 @@ declare module "@barchart/chart-lib" {
|
|
|
1022
1022
|
*
|
|
1023
1023
|
* By default, this is unset and the volume coloring will be identical to the main plot's bar coloring. This value will only be used when the main plot does _not_ have any bar coloring set (for example, when the main plot is a line or an area plot).
|
|
1024
1024
|
*/
|
|
1025
|
-
export type
|
|
1025
|
+
export type DefaultBarColoring = "OpenToClose" | "CloseToClose";
|
|
1026
1026
|
|
|
1027
1027
|
interface ICredentials {
|
|
1028
1028
|
username: string;
|
|
@@ -1206,7 +1206,8 @@ declare module "@barchart/chart-lib" {
|
|
|
1206
1206
|
useAllFieldsForComparison?: boolean;
|
|
1207
1207
|
credentials?: ICredentials;
|
|
1208
1208
|
apiKey?: string;
|
|
1209
|
-
defaultVolumeBarColoring?:
|
|
1209
|
+
defaultVolumeBarColoring?: DefaultBarColoring;
|
|
1210
|
+
defaultMainPlotBarColoring?: DefaultBarColoring;
|
|
1210
1211
|
colorfulAnnotations?: boolean;
|
|
1211
1212
|
fetch?(kind: UrlKind, relativeUrl: string): Promise<string>;
|
|
1212
1213
|
getCustomEventPopup(view: any): CustomEventPopup | null;
|
|
@@ -1312,7 +1313,7 @@ declare module "@barchart/chart-lib" {
|
|
|
1312
1313
|
* - `OpenVsClose`: like preceding phrase, but use `Open` and `Close` field values of the bar to decide. Also known as 'Open-to-Close'.
|
|
1313
1314
|
* The two attibutes are mutually exclusive, but we _may_ add new attributes which will be independent.
|
|
1314
1315
|
*/
|
|
1315
|
-
type CurveAttribute = "ChangeBased" | "OpenVsClose";
|
|
1316
|
+
export type CurveAttribute = "ChangeBased" | "OpenVsClose";
|
|
1316
1317
|
|
|
1317
1318
|
type CurveZone = {
|
|
1318
1319
|
/** A value which is the **maximum** for this zone. If there's nothing set, no maximum. Please note that the minium is implicitly taken to be the maximum of the previous zone (in order listed) of the same curve. */
|
|
@@ -2279,6 +2280,8 @@ declare module "@barchart/chart-lib" {
|
|
|
2279
2280
|
getChart(renderTo: RenderTo): ChartAccessor | null;
|
|
2280
2281
|
/** Returns the version of the chart engine. The version is always traced to the JS console on startup. */
|
|
2281
2282
|
version: string;
|
|
2283
|
+
/** Returns the configuration passed to the data feed on construction merged with the default values. */
|
|
2284
|
+
config: Config;
|
|
2282
2285
|
/** The instance producing time series objects. */
|
|
2283
2286
|
getTimeSeriesDataSource(): ITimeSeriesSource;
|
|
2284
2287
|
/** The instance producing meta data objects. */
|