@grapecity/wijmo.chart 5.20241.19 → 5.20242.30
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.
- package/es2015-commonjs.js +2 -2
- package/es2015-esm.js +2 -2
- package/es5-esm.js +2 -2
- package/index.d.ts +1409 -1324
- package/index.js +2 -2
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* Wijmo Library 5.
|
|
3
|
+
* Wijmo Library 5.20242.30
|
|
4
4
|
* https://developer.mescius.com/wijmo
|
|
5
5
|
*
|
|
6
6
|
* Copyright(c) MESCIUS inc. All rights reserved.
|
|
@@ -73,6 +73,53 @@ export declare class _Spline {
|
|
|
73
73
|
ys: any;
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
|
+
export declare const AxisClsNames: {
|
|
77
|
+
axisX: string;
|
|
78
|
+
axisXLabels: string;
|
|
79
|
+
axisY: string;
|
|
80
|
+
axisYLabels: string;
|
|
81
|
+
gridline: string;
|
|
82
|
+
gridlineMinor: string;
|
|
83
|
+
line: string;
|
|
84
|
+
tick: string;
|
|
85
|
+
tickMinor: string;
|
|
86
|
+
};
|
|
87
|
+
export declare const DataLabelClsNames: {
|
|
88
|
+
border: string;
|
|
89
|
+
label: string;
|
|
90
|
+
labels: string;
|
|
91
|
+
line: string;
|
|
92
|
+
};
|
|
93
|
+
export declare const FlexChartClsNames: {
|
|
94
|
+
footer: string;
|
|
95
|
+
header: string;
|
|
96
|
+
hostElement: string;
|
|
97
|
+
label: string;
|
|
98
|
+
legend: string;
|
|
99
|
+
plotArea: string;
|
|
100
|
+
title: string;
|
|
101
|
+
touchDisabled: string;
|
|
102
|
+
};
|
|
103
|
+
export declare const FlexPieClsNames: {
|
|
104
|
+
hostElement: string;
|
|
105
|
+
slice: string;
|
|
106
|
+
sliceGroup: string;
|
|
107
|
+
};
|
|
108
|
+
export declare const LegendClsNames: {
|
|
109
|
+
legend: string;
|
|
110
|
+
title: string;
|
|
111
|
+
};
|
|
112
|
+
export declare const LineMarkerClsNames: {
|
|
113
|
+
container: string;
|
|
114
|
+
content: string;
|
|
115
|
+
draggable: string;
|
|
116
|
+
hline: string;
|
|
117
|
+
linemarker: string;
|
|
118
|
+
vline: string;
|
|
119
|
+
};
|
|
120
|
+
export declare const SeriesClsNames: {
|
|
121
|
+
group: string;
|
|
122
|
+
};
|
|
76
123
|
/**
|
|
77
124
|
* These are predefined color palettes for chart {@link Series} objects.
|
|
78
125
|
*
|
|
@@ -674,6 +721,7 @@ export declare class SvgRenderEngine extends _SvgRenderEngine {
|
|
|
674
721
|
export declare class Legend {
|
|
675
722
|
_chart: FlexChartBase;
|
|
676
723
|
_position: Position;
|
|
724
|
+
_reverse: boolean;
|
|
677
725
|
private _title;
|
|
678
726
|
private _titleAlign;
|
|
679
727
|
private _titlePadding;
|
|
@@ -694,6 +742,14 @@ export declare class Legend {
|
|
|
694
742
|
* appears in relation to the plot area.
|
|
695
743
|
*/
|
|
696
744
|
position: Position;
|
|
745
|
+
/**
|
|
746
|
+
* Gets or sets a value that determines whether the legend would be shown in reverse order or not
|
|
747
|
+
* The value should be 'true' or 'false' or undefined. Default value is undefined.
|
|
748
|
+
* If true, legends wwould be shown in reverse order
|
|
749
|
+
* If false, legends would be shown in non-reverse order
|
|
750
|
+
* If undefined, it would be decided automatically by the chart.
|
|
751
|
+
*/
|
|
752
|
+
reverse: boolean;
|
|
697
753
|
/**
|
|
698
754
|
* Gets or sets a value that determines the title of the legend.
|
|
699
755
|
*/
|
|
@@ -718,6 +774,11 @@ export declare class Legend {
|
|
|
718
774
|
* The default value for this property is **false**.
|
|
719
775
|
*/
|
|
720
776
|
scrollbar: boolean;
|
|
777
|
+
/**
|
|
778
|
+
* Gets a value if the legends would be shown in vertical direction or horizontal
|
|
779
|
+
* the value would be based on the Orientation and the Position of the legend
|
|
780
|
+
*/
|
|
781
|
+
readonly isVertical: boolean;
|
|
721
782
|
_getDesiredSize(engine: IRenderEngine, pos: Position, w: number, h: number): Size;
|
|
722
783
|
_getPosition(w: number, h: number): Position;
|
|
723
784
|
_render(engine: IRenderEngine, pt: Point, pos: Position, w: number, h: number): void;
|
|
@@ -820,6 +881,7 @@ export declare enum SelectionMode {
|
|
|
820
881
|
}
|
|
821
882
|
/**
|
|
822
883
|
* Specifies the position of an axis or legend on the chart.
|
|
884
|
+
* TopLeft, TopRight, BottomLeft, BottomRight, LeftTop, LeftBottom, RightTop and RightBottom are valid only for Legend Position
|
|
823
885
|
*/
|
|
824
886
|
export declare enum Position {
|
|
825
887
|
/** The item is not visible. */
|
|
@@ -833,7 +895,23 @@ export declare enum Position {
|
|
|
833
895
|
/** The item appears below the chart. */
|
|
834
896
|
Bottom = 4,
|
|
835
897
|
/** The item is positioned automatically. */
|
|
836
|
-
Auto = 5
|
|
898
|
+
Auto = 5,
|
|
899
|
+
/** The Item appears on the top left corner of the chart */
|
|
900
|
+
TopLeft = 6,
|
|
901
|
+
/** The Item appears on the top right corner of the chart */
|
|
902
|
+
TopRight = 7,
|
|
903
|
+
/** The Item appears on the bottom left corner of the chart */
|
|
904
|
+
BottomLeft = 8,
|
|
905
|
+
/** The Item appears on the bottom right corner of the chart */
|
|
906
|
+
BottomRight = 9,
|
|
907
|
+
/** The Item appears on the left top corner of the chart */
|
|
908
|
+
LeftTop = 10,
|
|
909
|
+
/** The Item appears on the left bottom corner of the chart */
|
|
910
|
+
LeftBottom = 11,
|
|
911
|
+
/** The Item appears on the right top corner of the chart */
|
|
912
|
+
RightTop = 12,
|
|
913
|
+
/** The Item appears on the rightbottom corner of the chart */
|
|
914
|
+
RightBottom = 13
|
|
837
915
|
}
|
|
838
916
|
/**
|
|
839
917
|
* Specifies the element orientation.
|
|
@@ -1872,1624 +1950,1631 @@ export declare class PieDataLabel extends DataLabelBase {
|
|
|
1872
1950
|
*/
|
|
1873
1951
|
position: PieLabelPosition;
|
|
1874
1952
|
}
|
|
1953
|
+
export declare class _DataPoint {
|
|
1954
|
+
private _seriesIndex;
|
|
1955
|
+
private _pointIndex;
|
|
1956
|
+
private _dataX;
|
|
1957
|
+
private _dataY;
|
|
1958
|
+
constructor(seriesIndex: number, pointIndex: number, dataX: number, dataY: number);
|
|
1959
|
+
readonly seriesIndex: number;
|
|
1960
|
+
readonly pointIndex: number;
|
|
1961
|
+
dataX: number;
|
|
1962
|
+
dataY: number;
|
|
1963
|
+
}
|
|
1964
|
+
export declare enum _MeasureOption {
|
|
1965
|
+
X = 0,
|
|
1966
|
+
Y = 1,
|
|
1967
|
+
XY = 2
|
|
1968
|
+
}
|
|
1969
|
+
export declare class _RectArea implements _IHitArea {
|
|
1970
|
+
private _rect;
|
|
1971
|
+
constructor(rect: Rect);
|
|
1972
|
+
readonly rect: Rect;
|
|
1973
|
+
tag: any;
|
|
1974
|
+
ignoreLabel: boolean;
|
|
1975
|
+
contains(pt: Point): boolean;
|
|
1976
|
+
pointDistance(pt1: Point, pt2: Point, option: _MeasureOption): number;
|
|
1977
|
+
distance(pt: Point): number;
|
|
1978
|
+
}
|
|
1979
|
+
export declare class _CircleArea implements _IHitArea {
|
|
1980
|
+
private _center;
|
|
1981
|
+
private _rad;
|
|
1982
|
+
private _rad2;
|
|
1983
|
+
tag: any;
|
|
1984
|
+
ignoreLabel: boolean;
|
|
1985
|
+
constructor(center: Point, radius: number);
|
|
1986
|
+
setRadius(radius: number): void;
|
|
1987
|
+
readonly center: Point;
|
|
1988
|
+
contains(pt: Point): boolean;
|
|
1989
|
+
distance(pt: Point): number;
|
|
1990
|
+
}
|
|
1991
|
+
export declare class _LinesArea implements _IHitArea {
|
|
1992
|
+
private _x;
|
|
1993
|
+
private _y;
|
|
1994
|
+
tag: any;
|
|
1995
|
+
ignoreLabel: boolean;
|
|
1996
|
+
constructor(x: any, y: any);
|
|
1997
|
+
contains(pt: Point): boolean;
|
|
1998
|
+
distance(pt: Point): number;
|
|
1999
|
+
}
|
|
2000
|
+
export declare class _HitResult {
|
|
2001
|
+
area: _IHitArea;
|
|
2002
|
+
distance: number;
|
|
2003
|
+
}
|
|
2004
|
+
export declare class _HitTester {
|
|
2005
|
+
_chart: FlexChartCore;
|
|
2006
|
+
_map: {
|
|
2007
|
+
[key: number]: Array<_IHitArea>;
|
|
2008
|
+
};
|
|
2009
|
+
constructor(chart: FlexChartCore);
|
|
2010
|
+
add(area: _IHitArea, seriesIndex: number): void;
|
|
2011
|
+
clear(): void;
|
|
2012
|
+
hitTest(pt: Point, testLines?: boolean): _HitResult;
|
|
2013
|
+
hitTestSeries(pt: Point, seriesIndex: any): _HitResult;
|
|
2014
|
+
}
|
|
1875
2015
|
/**
|
|
1876
|
-
* Specifies the
|
|
2016
|
+
* Specifies the type of chart element found by the hitTest method.
|
|
1877
2017
|
*/
|
|
1878
|
-
export declare enum
|
|
1879
|
-
/**
|
|
1880
|
-
|
|
1881
|
-
/**
|
|
1882
|
-
|
|
2018
|
+
export declare enum ChartElement {
|
|
2019
|
+
/** The area within the axes. */
|
|
2020
|
+
PlotArea = 0,
|
|
2021
|
+
/** X-axis. */
|
|
2022
|
+
AxisX = 1,
|
|
2023
|
+
/** Y-axis. */
|
|
2024
|
+
AxisY = 2,
|
|
2025
|
+
/** The area within the control but outside the axes. */
|
|
2026
|
+
ChartArea = 3,
|
|
2027
|
+
/** The chart legend. */
|
|
2028
|
+
Legend = 4,
|
|
2029
|
+
/** The chart header. */
|
|
2030
|
+
Header = 5,
|
|
2031
|
+
/** The chart footer. */
|
|
2032
|
+
Footer = 6,
|
|
2033
|
+
/** A chart series. */
|
|
2034
|
+
Series = 7,
|
|
2035
|
+
/** A chart series symbol. */
|
|
2036
|
+
SeriesSymbol = 8,
|
|
2037
|
+
/** A data label. */
|
|
2038
|
+
DataLabel = 9,
|
|
2039
|
+
/** No chart element. */
|
|
2040
|
+
None = 10
|
|
1883
2041
|
}
|
|
1884
2042
|
/**
|
|
1885
|
-
*
|
|
2043
|
+
* Contains information about a part of a {@link FlexChart} control at
|
|
2044
|
+
* a specified page coordinate.
|
|
1886
2045
|
*/
|
|
1887
|
-
export declare
|
|
2046
|
+
export declare class HitTestInfo {
|
|
2047
|
+
private _chart;
|
|
2048
|
+
private _pt;
|
|
2049
|
+
private _series;
|
|
2050
|
+
private _pointIndex;
|
|
2051
|
+
_chartElement: ChartElement;
|
|
2052
|
+
_dist: number;
|
|
2053
|
+
private _item;
|
|
2054
|
+
private _x;
|
|
2055
|
+
private __xfmt;
|
|
2056
|
+
private _y;
|
|
2057
|
+
private __yfmt;
|
|
2058
|
+
private _name;
|
|
2059
|
+
private _groupIndex;
|
|
1888
2060
|
/**
|
|
1889
|
-
*
|
|
2061
|
+
* Initializes a new instance of the {@link HitTestInfo} class.
|
|
2062
|
+
*
|
|
2063
|
+
* @param chart The chart control.
|
|
2064
|
+
* @param point The original point in window coordinates.
|
|
2065
|
+
* @param element The chart element.
|
|
1890
2066
|
*/
|
|
1891
|
-
|
|
2067
|
+
constructor(chart: FlexChartBase, point: Point, element?: ChartElement);
|
|
1892
2068
|
/**
|
|
1893
|
-
*
|
|
2069
|
+
* Gets the {@link FlexChartBase} that owns this {@link HitTestInfo}.
|
|
1894
2070
|
*/
|
|
1895
|
-
|
|
2071
|
+
readonly chart: FlexChartBase;
|
|
2072
|
+
/**
|
|
2073
|
+
* Gets the point, in control coordinates,
|
|
2074
|
+
* that this {@link HitTestInfo} refers to.
|
|
2075
|
+
*/
|
|
2076
|
+
readonly point: Point;
|
|
2077
|
+
/**
|
|
2078
|
+
* Gets the chart series at the specified coordinates.
|
|
2079
|
+
*/
|
|
2080
|
+
readonly series: SeriesBase;
|
|
2081
|
+
/**
|
|
2082
|
+
* Gets the data point index at the specified coordinates.
|
|
2083
|
+
*/
|
|
2084
|
+
readonly pointIndex: number;
|
|
2085
|
+
/**
|
|
2086
|
+
* Gets the chart element at the specified coordinates.
|
|
2087
|
+
*/
|
|
2088
|
+
readonly chartElement: ChartElement;
|
|
2089
|
+
/**
|
|
2090
|
+
* Gets the distance to the closest data point.
|
|
2091
|
+
*/
|
|
2092
|
+
readonly distance: number;
|
|
2093
|
+
/**
|
|
2094
|
+
* Gets the data object that corresponds to the closest data point.
|
|
2095
|
+
*/
|
|
2096
|
+
readonly item: any;
|
|
2097
|
+
/**
|
|
2098
|
+
* Gets the x-value of the closest data point.
|
|
2099
|
+
*/
|
|
2100
|
+
readonly x: any;
|
|
2101
|
+
/**
|
|
2102
|
+
* Gets the y-value of the closest data point.
|
|
2103
|
+
*/
|
|
2104
|
+
readonly y: any;
|
|
2105
|
+
readonly value: any;
|
|
2106
|
+
readonly name: any;
|
|
2107
|
+
/**
|
|
2108
|
+
* Gets the group index for the closest data point.
|
|
2109
|
+
*/
|
|
2110
|
+
readonly groupIndex: number;
|
|
2111
|
+
readonly _xfmt: any;
|
|
2112
|
+
readonly _yfmt: any;
|
|
2113
|
+
_setData(series: SeriesBase, pi?: number): void;
|
|
2114
|
+
_setDataGroup(gi: number, pi: number): void;
|
|
2115
|
+
_setName(name: string): void;
|
|
2116
|
+
_setDataPoint(dataPoint: _DataPoint): void;
|
|
2117
|
+
_getValueFmt(): any;
|
|
2118
|
+
private _getValue;
|
|
2119
|
+
private readonly ax;
|
|
2120
|
+
private readonly ay;
|
|
1896
2121
|
}
|
|
1897
2122
|
/**
|
|
1898
|
-
*
|
|
2123
|
+
* Specifies whether and where the Series is visible.
|
|
1899
2124
|
*/
|
|
1900
|
-
export
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
2125
|
+
export declare enum SeriesVisibility {
|
|
2126
|
+
/** The series is visible on the plot and in the legend. */
|
|
2127
|
+
Visible = 0,
|
|
2128
|
+
/** The series is visible only on the plot. */
|
|
2129
|
+
Plot = 1,
|
|
2130
|
+
/** The series is visible only in the legend. */
|
|
2131
|
+
Legend = 2,
|
|
2132
|
+
/** The series is hidden. */
|
|
2133
|
+
Hidden = 3
|
|
1904
2134
|
}
|
|
1905
2135
|
/**
|
|
1906
|
-
* Specifies
|
|
2136
|
+
* Specifies the type of marker to use for the {@link Series.symbolMarker}
|
|
2137
|
+
* property.
|
|
2138
|
+
*
|
|
2139
|
+
* Applies to Scatter, LineSymbols, and SplineSymbols chart types.
|
|
1907
2140
|
*/
|
|
1908
|
-
export declare enum
|
|
1909
|
-
/**
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
/**
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
2141
|
+
export declare enum Marker {
|
|
2142
|
+
/**
|
|
2143
|
+
* Uses a circle to mark each data point.
|
|
2144
|
+
*/
|
|
2145
|
+
Dot = 0,
|
|
2146
|
+
/**
|
|
2147
|
+
* Uses a square to mark each data point.
|
|
2148
|
+
*/
|
|
2149
|
+
Box = 1
|
|
1917
2150
|
}
|
|
1918
2151
|
/**
|
|
1919
|
-
*
|
|
2152
|
+
* Data series interface
|
|
1920
2153
|
*/
|
|
1921
|
-
export
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
2154
|
+
export interface _ISeries {
|
|
2155
|
+
style: any;
|
|
2156
|
+
symbolStyle: any;
|
|
2157
|
+
getValues: (dim: number) => number[];
|
|
2158
|
+
getDataType: (dim: number) => DataType;
|
|
2159
|
+
drawLegendItem(engine: IRenderEngine, rect: Rect, index: number): any;
|
|
2160
|
+
measureLegendItem(engine: IRenderEngine, index: number): Size;
|
|
2161
|
+
_setPointIndex(pointIndex: number, elementIndex: number): any;
|
|
2162
|
+
}
|
|
2163
|
+
export declare class DataArray {
|
|
2164
|
+
dataType: DataType;
|
|
2165
|
+
values: Array<number>;
|
|
1928
2166
|
}
|
|
1929
2167
|
/**
|
|
1930
|
-
* Provides
|
|
2168
|
+
* Provides arguments for {@link Series} events.
|
|
1931
2169
|
*/
|
|
1932
|
-
export
|
|
2170
|
+
export declare class SeriesEventArgs extends EventArgs {
|
|
2171
|
+
_series: SeriesBase;
|
|
1933
2172
|
/**
|
|
1934
|
-
*
|
|
2173
|
+
* Initializes a new instance of the {@link SeriesEventArgs} class.
|
|
2174
|
+
*
|
|
2175
|
+
* @param series Specifies the {@link Series} object affected by this event.
|
|
1935
2176
|
*/
|
|
1936
|
-
|
|
2177
|
+
constructor(series: SeriesBase);
|
|
2178
|
+
/**
|
|
2179
|
+
* Gets the {@link Series} object affected by this event.
|
|
2180
|
+
*/
|
|
2181
|
+
readonly series: SeriesBase;
|
|
1937
2182
|
}
|
|
1938
2183
|
/**
|
|
1939
|
-
* Represents
|
|
2184
|
+
* Represents a series of data points to display in the chart.
|
|
1940
2185
|
*/
|
|
1941
|
-
export declare class
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
_TICK_LABEL_DISTANCE: number;
|
|
1948
|
-
private static MAX_MAJOR;
|
|
1949
|
-
private static MAX_MINOR;
|
|
1950
|
-
_chart: FlexChartCore;
|
|
1951
|
-
private _type;
|
|
1952
|
-
private _min;
|
|
1953
|
-
private _max;
|
|
1954
|
-
private _position;
|
|
1955
|
-
private _majorUnit;
|
|
1956
|
-
private _minorUnit;
|
|
1957
|
-
private _majorGrid;
|
|
1958
|
-
private _minorGrid;
|
|
1959
|
-
private _title;
|
|
1960
|
-
private _labelStyle;
|
|
1961
|
-
private _reversed;
|
|
1962
|
-
private _format;
|
|
1963
|
-
_actualMin: number;
|
|
1964
|
-
_actualMax: number;
|
|
1965
|
-
_axisType: AxisType;
|
|
1966
|
-
private _majorTickMarks;
|
|
1967
|
-
private _minorTickMarks;
|
|
1968
|
-
private _logBase;
|
|
1969
|
-
private _labels;
|
|
1970
|
-
private _labelAngle;
|
|
1971
|
-
private _labelAlign;
|
|
1972
|
-
private _axisLine;
|
|
1973
|
-
_plotrect: Rect;
|
|
1974
|
-
private _szTitle;
|
|
1975
|
-
_isTimeAxis: boolean;
|
|
1976
|
-
_lbls: string[];
|
|
1977
|
-
_values: number[];
|
|
1978
|
-
private _rects;
|
|
2186
|
+
export declare class SeriesBase<T = any> implements _ISeries {
|
|
2187
|
+
static _LEGEND_ITEM_WIDTH: number;
|
|
2188
|
+
static _LEGEND_ITEM_HEIGHT: number;
|
|
2189
|
+
static _LEGEND_ITEM_MARGIN: number;
|
|
2190
|
+
private static _DEFAULT_SYM_SIZE;
|
|
2191
|
+
__chart: FlexChartCore;
|
|
1979
2192
|
private _name;
|
|
1980
|
-
private _origin;
|
|
1981
|
-
private _overlap;
|
|
1982
|
-
private _items;
|
|
1983
|
-
private _cv;
|
|
1984
2193
|
private _binding;
|
|
1985
|
-
private
|
|
1986
|
-
private
|
|
1987
|
-
private
|
|
1988
|
-
private
|
|
1989
|
-
private
|
|
1990
|
-
|
|
1991
|
-
private
|
|
1992
|
-
private
|
|
1993
|
-
private
|
|
1994
|
-
|
|
1995
|
-
private
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2194
|
+
private _showValues;
|
|
2195
|
+
private _symbolStyle;
|
|
2196
|
+
private _symbolSize;
|
|
2197
|
+
private _style;
|
|
2198
|
+
private _altStyle;
|
|
2199
|
+
_cv: ICollectionView<T>;
|
|
2200
|
+
private _itemsSource;
|
|
2201
|
+
private _values;
|
|
2202
|
+
private _valueDataType;
|
|
2203
|
+
_chartType: ChartType;
|
|
2204
|
+
private _symbolMarker;
|
|
2205
|
+
private _bindingX;
|
|
2206
|
+
private _xvalues;
|
|
2207
|
+
private _xvalueDataType;
|
|
2208
|
+
private _cssClass;
|
|
2209
|
+
private _visibility;
|
|
2210
|
+
private _axisX;
|
|
2211
|
+
private _axisY;
|
|
2212
|
+
private __plotter;
|
|
2213
|
+
private _interpolateNulls;
|
|
2214
|
+
private _tooltipContent;
|
|
2215
|
+
private _itemFormatter;
|
|
2216
|
+
private _cache;
|
|
2217
|
+
_legendElement: SVGAElement;
|
|
2001
2218
|
_hostElement: SVGGElement;
|
|
2002
|
-
|
|
2219
|
+
_pointIndexes: number[];
|
|
2003
2220
|
/**
|
|
2004
|
-
* Initializes a new instance of the {@link
|
|
2221
|
+
* Initializes a new instance of the {@link SeriesBase} class.
|
|
2005
2222
|
*
|
|
2006
|
-
* @param
|
|
2007
|
-
*/
|
|
2008
|
-
constructor(position?: Position);
|
|
2009
|
-
/**
|
|
2010
|
-
* Gets the axis host element.
|
|
2223
|
+
* @param options JavaScript object containing initialization data for the object.
|
|
2011
2224
|
*/
|
|
2012
|
-
|
|
2225
|
+
constructor(options?: any);
|
|
2013
2226
|
/**
|
|
2014
|
-
* Gets
|
|
2227
|
+
* Gets or sets a value that determines whether to interpolate
|
|
2228
|
+
* null values in the data.
|
|
2015
2229
|
*
|
|
2016
|
-
*
|
|
2017
|
-
|
|
2018
|
-
|
|
2230
|
+
* If true, the series interpolates the value of any missing data
|
|
2231
|
+
* based on neighboring points. If false, it leaves a break in
|
|
2232
|
+
* lines and areas at the points with null values.
|
|
2233
|
+
*
|
|
2234
|
+
* The default value for this property is <b>false</b>.
|
|
2235
|
+
*/
|
|
2236
|
+
interpolateNulls: boolean;
|
|
2019
2237
|
/**
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
*/
|
|
2024
|
-
readonly actualMax: any;
|
|
2238
|
+
* Gets or sets the series style.
|
|
2239
|
+
*/
|
|
2240
|
+
style: any;
|
|
2025
2241
|
/**
|
|
2026
|
-
* Gets or sets the
|
|
2242
|
+
* Gets or sets the alternate style for the series.
|
|
2027
2243
|
*
|
|
2028
|
-
* The
|
|
2244
|
+
* The alternate style is used for negative values in Bar, Column,
|
|
2245
|
+
* and Scatter charts; and for rising values in financial chart types
|
|
2246
|
+
* like Candlestick, LineBreak, EquiVolume etc.
|
|
2029
2247
|
*
|
|
2030
|
-
* The default value for this property is <b>null</b>, which causes
|
|
2031
|
-
*
|
|
2248
|
+
* The default value for this property is <b>null</b>, which causes the
|
|
2249
|
+
* series to use the default style.
|
|
2032
2250
|
*/
|
|
2033
|
-
|
|
2251
|
+
altStyle: any;
|
|
2034
2252
|
/**
|
|
2035
|
-
* Gets or sets the
|
|
2036
|
-
*
|
|
2037
|
-
* The value can be a number or a Date object (for time-based data).
|
|
2253
|
+
* Gets or sets the series symbol style.
|
|
2038
2254
|
*
|
|
2039
|
-
*
|
|
2040
|
-
* the chart to calculate the maximum value based on the data.
|
|
2255
|
+
* Applies to Bar, Column, Scatter, LineSymbols, and SplineSymbols chart types.
|
|
2041
2256
|
*/
|
|
2042
|
-
|
|
2257
|
+
symbolStyle: any;
|
|
2043
2258
|
/**
|
|
2044
|
-
* Gets or sets
|
|
2045
|
-
*
|
|
2259
|
+
* Gets or sets the size (in pixels) of the symbols used to render this {@link Series}.
|
|
2260
|
+
* Applies to Scatter, LineSymbols, and SplineSymbols chart types.
|
|
2046
2261
|
*
|
|
2047
|
-
* The default value for this property is <b>
|
|
2262
|
+
* The default value for this property is <b>10</b> pixels.
|
|
2048
2263
|
*/
|
|
2049
|
-
|
|
2264
|
+
symbolSize: number;
|
|
2050
2265
|
/**
|
|
2051
|
-
* Gets or sets the
|
|
2266
|
+
* Gets or sets the shape of marker to use for each data point in the series.
|
|
2267
|
+
* Applies to Scatter, LineSymbols, and SplineSymbols chart types.
|
|
2268
|
+
*
|
|
2269
|
+
* The default value for this property is <b>Marker.Dot</b>.
|
|
2052
2270
|
*/
|
|
2053
|
-
|
|
2271
|
+
symbolMarker: Marker;
|
|
2054
2272
|
/**
|
|
2055
|
-
* Gets or sets the
|
|
2056
|
-
*
|
|
2057
|
-
* If the axis contains date values, then the units are
|
|
2058
|
-
* expressed in days.
|
|
2273
|
+
* Gets or sets the name of the property that contains Y values for the series.
|
|
2059
2274
|
*/
|
|
2060
|
-
|
|
2275
|
+
binding: string;
|
|
2061
2276
|
/**
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
* expressed in days.
|
|
2066
|
-
*/
|
|
2067
|
-
minorUnit: number;
|
|
2277
|
+
* Gets or sets the name of the property that contains X values for the series.
|
|
2278
|
+
*/
|
|
2279
|
+
bindingX: string;
|
|
2068
2280
|
/**
|
|
2069
|
-
* Gets or sets the
|
|
2281
|
+
* Gets or sets the series name.
|
|
2282
|
+
*
|
|
2283
|
+
* The series name is displayed in the chart legend. Any series without a name
|
|
2284
|
+
* does not appear in the legend.
|
|
2070
2285
|
*/
|
|
2071
2286
|
name: string;
|
|
2072
2287
|
/**
|
|
2073
|
-
* Gets or sets the
|
|
2288
|
+
* Gets or sets the array or {@link ICollectionView} object that contains the series data.
|
|
2074
2289
|
*/
|
|
2075
|
-
|
|
2290
|
+
itemsSource: any;
|
|
2076
2291
|
/**
|
|
2077
|
-
* Gets
|
|
2078
|
-
* (see {@link Globalize}).
|
|
2292
|
+
* Gets the {@link ICollectionView} object that contains the data for this series.
|
|
2079
2293
|
*/
|
|
2080
|
-
|
|
2294
|
+
readonly collectionView: ICollectionView<T>;
|
|
2081
2295
|
/**
|
|
2082
|
-
* Gets
|
|
2296
|
+
* Gets the {@link FlexChart} object that owns this series.
|
|
2083
2297
|
*/
|
|
2084
|
-
|
|
2298
|
+
readonly chart: FlexChartCore;
|
|
2085
2299
|
/**
|
|
2086
|
-
* Gets
|
|
2300
|
+
* Gets the series host element.
|
|
2087
2301
|
*/
|
|
2088
|
-
|
|
2302
|
+
readonly hostElement: SVGGElement;
|
|
2089
2303
|
/**
|
|
2090
|
-
* Gets
|
|
2304
|
+
* Gets the series element in the legend.
|
|
2091
2305
|
*/
|
|
2092
|
-
|
|
2306
|
+
readonly legendElement: SVGGElement;
|
|
2093
2307
|
/**
|
|
2094
|
-
* Gets or sets the
|
|
2308
|
+
* Gets or sets the series CSS class.
|
|
2095
2309
|
*/
|
|
2096
|
-
|
|
2310
|
+
cssClass: string;
|
|
2097
2311
|
/**
|
|
2098
|
-
* Gets or sets
|
|
2312
|
+
* Gets or sets an enumerated value indicating whether and where the series appears.
|
|
2099
2313
|
*
|
|
2100
|
-
* The default value for this property is <b>
|
|
2314
|
+
* The default value for this property is <b>SeriesVisibility.Visible</b>.
|
|
2101
2315
|
*/
|
|
2102
|
-
|
|
2316
|
+
visibility: SeriesVisibility;
|
|
2103
2317
|
/**
|
|
2104
|
-
* Gets or sets
|
|
2318
|
+
* Gets or sets the series specific tooltip content.
|
|
2105
2319
|
*
|
|
2106
|
-
* The
|
|
2320
|
+
* The property overrides the content of chart tooltip content.
|
|
2107
2321
|
*/
|
|
2108
|
-
|
|
2322
|
+
tooltipContent: any;
|
|
2109
2323
|
/**
|
|
2110
|
-
* Gets or sets the
|
|
2324
|
+
* Gets or sets the item formatter function that allows you to customize
|
|
2325
|
+
* the appearance of the series.
|
|
2111
2326
|
*
|
|
2112
|
-
*
|
|
2113
|
-
* 'left' and 'right for the X-axis, 'top' and 'bottom' for the Y-axis.
|
|
2327
|
+
* The property overrides the chart's itemFormatter {@link wijmo.chart.FlexChart.itemFormatter}.
|
|
2114
2328
|
*/
|
|
2115
|
-
|
|
2329
|
+
itemFormatter: Function;
|
|
2116
2330
|
/**
|
|
2117
|
-
* Gets
|
|
2331
|
+
* Gets a {@link HitTestInfo} object with information about the specified point.
|
|
2118
2332
|
*
|
|
2119
|
-
* The
|
|
2120
|
-
*
|
|
2333
|
+
* @param pt The point to investigate, in window coordinates.
|
|
2334
|
+
* @param y The Y coordinate of the point (if the first parameter is a number).
|
|
2121
2335
|
*/
|
|
2122
|
-
|
|
2336
|
+
hitTest(pt: any, y?: number): HitTestInfo;
|
|
2123
2337
|
/**
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2338
|
+
* Gets the plot element that corresponds to the specified point index.
|
|
2339
|
+
*
|
|
2340
|
+
* @param pointIndex The index of the data point.
|
|
2341
|
+
*/
|
|
2342
|
+
getPlotElement(pointIndex: number): any;
|
|
2129
2343
|
/**
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
*/
|
|
2134
|
-
labelMax: boolean;
|
|
2344
|
+
* Gets or sets the X-axis for the series.
|
|
2345
|
+
*/
|
|
2346
|
+
axisX: Axis;
|
|
2135
2347
|
/**
|
|
2136
|
-
* Gets or sets the
|
|
2137
|
-
|
|
2138
|
-
|
|
2348
|
+
* Gets or sets the Y-axis for the series.
|
|
2349
|
+
*/
|
|
2350
|
+
axisY: Axis;
|
|
2139
2351
|
/**
|
|
2140
|
-
*
|
|
2352
|
+
* Initializes the series by copying the properties from a given object.
|
|
2141
2353
|
*
|
|
2142
|
-
*
|
|
2143
|
-
*/
|
|
2144
|
-
overlappingLabels: OverlappingLabels;
|
|
2145
|
-
/**
|
|
2146
|
-
* Gets or sets the items source for the axis labels.
|
|
2147
|
-
*
|
|
2148
|
-
* Names of the properties are specified by the {@link Axis.binding} property.
|
|
2149
|
-
*
|
|
2150
|
-
* For example:
|
|
2151
|
-
*
|
|
2152
|
-
* <pre>
|
|
2153
|
-
* // default value for Axis.binding is 'value,text'
|
|
2154
|
-
* chart.axisX.itemsSource = [ { value:1, text:'one' }, { value:2, text:'two' } ];
|
|
2155
|
-
* </pre>
|
|
2156
|
-
*/
|
|
2157
|
-
itemsSource: any;
|
|
2158
|
-
/**
|
|
2159
|
-
* Gets or sets the comma-separated property names for the
|
|
2160
|
-
* {@link Axis.itemsSource} property to use in axis labels.
|
|
2161
|
-
*
|
|
2162
|
-
* The first name specifies the value on the axis, the second represents the corresponding
|
|
2163
|
-
* axis label. The default value is 'value,text'.
|
|
2164
|
-
*/
|
|
2165
|
-
binding: string;
|
|
2166
|
-
/**
|
|
2167
|
-
* Gets or sets the itemFormatter function for the axis labels.
|
|
2168
|
-
*
|
|
2169
|
-
* If specified, the function takes two parameters:
|
|
2170
|
-
* <ul>
|
|
2171
|
-
* <li><b>render engine</b>: The {@link IRenderEngine} object to be used
|
|
2172
|
-
* in formatting the labels.</li>
|
|
2173
|
-
* <li><b>current label</b>: An object with the following properties:
|
|
2174
|
-
* <ul>
|
|
2175
|
-
* <li><b>value</b>: The value of the axis label to format.</li>
|
|
2176
|
-
* <li><b>text</b>: The text to use in the label.</li>
|
|
2177
|
-
* <li><b>pos</b>: The position in control coordinates at which
|
|
2178
|
-
* the label is to be rendered.</li>
|
|
2179
|
-
* <li><b>cls</b>: The CSS class to be applied to the label.</li>
|
|
2180
|
-
* </ul></li>
|
|
2181
|
-
* </ul>
|
|
2182
|
-
*
|
|
2183
|
-
* The function returns the label parameters of labels for which
|
|
2184
|
-
* properties are modified.
|
|
2185
|
-
*
|
|
2186
|
-
* For example:
|
|
2187
|
-
* <pre>
|
|
2188
|
-
* chart.axisY.itemFormatter = function(engine, label) {
|
|
2189
|
-
* if (label.val > 5){
|
|
2190
|
-
* engine.textFill = 'red'; // red text
|
|
2191
|
-
* label.cls = null; // no default CSS
|
|
2192
|
-
* }
|
|
2193
|
-
* return label;
|
|
2194
|
-
* }
|
|
2195
|
-
* </pre>
|
|
2354
|
+
* @param options JavaScript object containing initialization data for the series.
|
|
2196
2355
|
*/
|
|
2197
|
-
|
|
2356
|
+
initialize(options: any): void;
|
|
2198
2357
|
/**
|
|
2199
|
-
*
|
|
2200
|
-
*
|
|
2201
|
-
* If the base is not specified the axis uses a linear scale.
|
|
2358
|
+
* Converts a {@link Point} from control coordinates to series data coordinates.
|
|
2202
2359
|
*
|
|
2203
|
-
*
|
|
2204
|
-
*
|
|
2205
|
-
* data sets.
|
|
2360
|
+
* @param pt The point to convert, in control coordinates.
|
|
2361
|
+
* @return The point in series data coordinates.
|
|
2206
2362
|
*/
|
|
2207
|
-
|
|
2363
|
+
pointToData(pt: Point): Point;
|
|
2208
2364
|
/**
|
|
2209
|
-
*
|
|
2210
|
-
*
|
|
2211
|
-
* Label groups are created by modifying the {@link ICollectionView.groupDescriptions}
|
|
2212
|
-
* property of the {@link ICollectionView} object used as an {@link FlexChart.itemsSource}.
|
|
2213
|
-
*
|
|
2214
|
-
* The default value is **null** and the axis label groups are not displayed.
|
|
2215
|
-
*
|
|
2216
|
-
* To display groups you should create groups in collection view and specify the groupsOptions for the axis.
|
|
2217
|
-
*
|
|
2218
|
-
* For example,
|
|
2365
|
+
* Converts a {@link Point} from series data coordinates to control coordinates.
|
|
2219
2366
|
*
|
|
2220
|
-
*
|
|
2221
|
-
*
|
|
2222
|
-
* groupDescriptions: [
|
|
2223
|
-
* new PropertyGroupDescription('category'),
|
|
2224
|
-
* new PropertyGroupDescription('subCategory')]
|
|
2225
|
-
* });
|
|
2226
|
-
* const chart = new FlexChart('#theChart', {
|
|
2227
|
-
* itemsSource: view,
|
|
2228
|
-
* bindingX: 'product',
|
|
2229
|
-
* series: [ { binding:'sales' } ],
|
|
2230
|
-
* axisX: { groupsOptions: { display : AxisGroupsDisplay.Show } },
|
|
2231
|
-
* });
|
|
2232
|
-
* ```
|
|
2233
|
-
*/
|
|
2234
|
-
groupsOptions: IAxisGroupsOptions;
|
|
2235
|
-
/**
|
|
2236
|
-
* Gets the array with actual axis labels.
|
|
2367
|
+
* @param pt {@link Point} in series data coordinates.
|
|
2368
|
+
* @return The {@link Point} in control coordinates.
|
|
2237
2369
|
*/
|
|
2238
|
-
|
|
2239
|
-
_getLogBase(): number;
|
|
2240
|
-
_isLogAxis(): boolean;
|
|
2370
|
+
dataToPoint(pt: Point): Point;
|
|
2241
2371
|
/**
|
|
2242
|
-
*
|
|
2372
|
+
* Occurs when series is rendering.
|
|
2243
2373
|
*/
|
|
2244
|
-
|
|
2374
|
+
readonly rendering: Event<SeriesBase<any>, SeriesRenderingEventArgs>;
|
|
2245
2375
|
/**
|
|
2246
|
-
*
|
|
2376
|
+
* Raises the {@link rendering} event.
|
|
2247
2377
|
*
|
|
2248
|
-
* The
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
readonly _groupClass: string;
|
|
2252
|
-
/**
|
|
2253
|
-
* Occurs when the axis range changes.
|
|
2378
|
+
* @param engine The {@link IRenderEngine} object used to render the series.
|
|
2379
|
+
* @param index The index of the series to render.
|
|
2380
|
+
* @param count Total number of the series to render.
|
|
2254
2381
|
*/
|
|
2255
|
-
|
|
2382
|
+
onRendering(engine: IRenderEngine, index: number, count: number): boolean;
|
|
2256
2383
|
/**
|
|
2257
|
-
*
|
|
2384
|
+
* Occurs when series is rendered.
|
|
2258
2385
|
*/
|
|
2259
|
-
|
|
2260
|
-
_getPosition(): Position;
|
|
2261
|
-
_isOverlapped(engine: IRenderEngine, w: number, lblClass: string, axisType: AxisType): boolean;
|
|
2262
|
-
_actualAngle: number;
|
|
2386
|
+
readonly rendered: Event<SeriesBase<any>, RenderEventArgs>;
|
|
2263
2387
|
/**
|
|
2264
|
-
*
|
|
2388
|
+
* Raises the {@link rendered} event.
|
|
2265
2389
|
*
|
|
2266
|
-
* @param engine
|
|
2267
|
-
* @param maxw Max width.
|
|
2390
|
+
* @param engine The {@link IRenderEngine} object used to render the series.
|
|
2268
2391
|
*/
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
};
|
|
2392
|
+
onRendered(engine: IRenderEngine): void;
|
|
2393
|
+
_chart: FlexChartCore;
|
|
2394
|
+
_getSymbolSize(): number;
|
|
2395
|
+
_plotter: _IPlotter;
|
|
2396
|
+
getDataType(dim: number): DataType;
|
|
2397
|
+
getValues(dim: number): number[];
|
|
2276
2398
|
/**
|
|
2277
|
-
*
|
|
2399
|
+
* Draw a legend item at the specified position.
|
|
2278
2400
|
*
|
|
2279
|
-
* @param
|
|
2280
|
-
* @param
|
|
2281
|
-
* @param
|
|
2282
|
-
* @param labels Category labels(category axis).
|
|
2283
|
-
* @param values Values(value axis).
|
|
2401
|
+
* @param engine The rendering engine to use.
|
|
2402
|
+
* @param rect The position of the legend item.
|
|
2403
|
+
* @param index Index of legend item(for series with multiple legend items).
|
|
2284
2404
|
*/
|
|
2285
|
-
|
|
2405
|
+
drawLegendItem(engine: IRenderEngine, rect: Rect, index: number): void;
|
|
2406
|
+
private _getLegendStyle;
|
|
2286
2407
|
/**
|
|
2287
|
-
*
|
|
2408
|
+
* Measures height and width of the legend item.
|
|
2288
2409
|
*
|
|
2289
|
-
* @param
|
|
2290
|
-
* @param
|
|
2410
|
+
* @param engine The rendering engine to use.
|
|
2411
|
+
* @param index Index of legend item(for series with multiple legend items).
|
|
2291
2412
|
*/
|
|
2292
|
-
|
|
2293
|
-
_hasVisibileSeries(): boolean;
|
|
2413
|
+
measureLegendItem(engine: IRenderEngine, index: number): Size;
|
|
2294
2414
|
/**
|
|
2295
|
-
*
|
|
2296
|
-
*
|
|
2297
|
-
* @param engine Rendering engine.
|
|
2415
|
+
* Returns number of series items in the legend.
|
|
2298
2416
|
*/
|
|
2299
|
-
|
|
2300
|
-
_renderLineAndTitle(engine: any): void;
|
|
2301
|
-
_renderMinor(engine: any, vals: any, isCategory: any): void;
|
|
2302
|
-
_renderRotatedText(engine: IRenderEngine, val: any, text: string, pos: Point, halign: any, valign: any, center: Point, angle: number, className: string, groupClassName?: string, style?: any): void;
|
|
2303
|
-
_getFormattedItem(engine: IRenderEngine, val: any, text: string, pos: Point, className: string, readOnly?: boolean): {
|
|
2304
|
-
val: any;
|
|
2305
|
-
text: string;
|
|
2306
|
-
pos: Point;
|
|
2307
|
-
cls: string;
|
|
2308
|
-
};
|
|
2309
|
-
_renderLabelsAndTicks(engine: any, index: any, val: any, sval: any, labelAngle: any, tickMarks: any, showLabel: any, t1: any, t2: any): boolean;
|
|
2310
|
-
_xCross(x: number): boolean;
|
|
2311
|
-
_createMinors(engine: IRenderEngine, vals: number[], isVert: boolean, isNear: boolean, isCategory: boolean): void;
|
|
2312
|
-
_renderMinors(engine: IRenderEngine, ticks: number[], isVert: boolean, isNear: boolean): void;
|
|
2313
|
-
_renderLabel(engine: IRenderEngine, val: number, text: string, pos: Point, ha: any, va: any, className?: string): boolean;
|
|
2314
|
-
private _renderRotatedLabel;
|
|
2315
|
-
private _getLabelAlign;
|
|
2316
|
-
_addMinMaxLabels(vals: number[], lbls: string[]): void;
|
|
2317
|
-
_customConvert: Function;
|
|
2318
|
-
_customConvertBack: Function;
|
|
2417
|
+
legendItemLength(): number;
|
|
2319
2418
|
/**
|
|
2320
|
-
*
|
|
2419
|
+
* Returns the series bounding rectangle in data coordinates.
|
|
2321
2420
|
*
|
|
2322
|
-
*
|
|
2323
|
-
* @param maxValue The max value of the data, it's optional.
|
|
2324
|
-
* @param minValue The min value of the data, it's optional.
|
|
2325
|
-
*/
|
|
2326
|
-
convert(val: number, maxValue?: number, minValue?: number): number;
|
|
2327
|
-
/**
|
|
2328
|
-
* Converts the specified value from pixel to data coordinates.
|
|
2421
|
+
* If getDataRect() returns null, the limits are calculated automatically based on the data values.
|
|
2329
2422
|
*
|
|
2330
|
-
* @param
|
|
2423
|
+
* @param currentRect The current rectangle of chart. This parameter is optional.
|
|
2424
|
+
* @param calculatedRect The calculated rectangle of chart. This parameter is optional.
|
|
2331
2425
|
*/
|
|
2332
|
-
|
|
2426
|
+
getDataRect(currentRect?: Rect, calculatedRect?: Rect): Rect;
|
|
2427
|
+
_getChartType(): ChartType;
|
|
2333
2428
|
/**
|
|
2334
|
-
*
|
|
2429
|
+
* Clears any cached data values.
|
|
2335
2430
|
*/
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2431
|
+
_clearValues(): void;
|
|
2432
|
+
_getBinding(index: number): string;
|
|
2433
|
+
_getBindingValues(index: number): number[];
|
|
2434
|
+
_getItem(pointIndex: number): any;
|
|
2435
|
+
_getLength(): number;
|
|
2436
|
+
_setPointIndex(pointIndex: number, elementIndex: number): void;
|
|
2437
|
+
private _getDataRect;
|
|
2438
|
+
_isCustomAxisX(): boolean;
|
|
2439
|
+
_isCustomAxisY(): boolean;
|
|
2440
|
+
_getAxisX(): Axis;
|
|
2441
|
+
_getAxisY(): Axis;
|
|
2442
|
+
_measureLegendItem(engine: IRenderEngine, text: string): Size;
|
|
2443
|
+
_drawFunnelLegendItem(engine: IRenderEngine, rect: Rect, index: number, style: any, symbolStyle: any): void;
|
|
2444
|
+
private _getFunnelLegendName;
|
|
2445
|
+
_drawLegendItem(engine: IRenderEngine, rect: Rect, chartType: ChartType, text: string, style: any, symbolStyle: any): void;
|
|
2341
2446
|
private _cvCollectionChanged;
|
|
2342
|
-
private
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
private _nicePrecision;
|
|
2352
|
-
private _niceTickNumber;
|
|
2353
|
-
_niceNumber(x: number, exp: number, round: boolean): number;
|
|
2354
|
-
readonly _uniqueId: number;
|
|
2447
|
+
private _cvCurrentChanged;
|
|
2448
|
+
_bindValues(items: Array<any>, binding: string, isX?: boolean): DataArray;
|
|
2449
|
+
_invalidate(): void;
|
|
2450
|
+
_indexToPoint(pointIndex: number): Point;
|
|
2451
|
+
_getSymbolFill(seriesIndex?: number): string;
|
|
2452
|
+
_getSymbolStroke(seriesIndex?: number): string;
|
|
2453
|
+
_getAltSymbolStroke(seriesIndex?: number): string;
|
|
2454
|
+
_getAltSymbolFill(seriesIndex?: number): string;
|
|
2455
|
+
_renderLabels(engine: IRenderEngine, smap: _IHitArea[], chart: FlexChartCore, lblAreas: _RectArea[]): void;
|
|
2355
2456
|
}
|
|
2356
2457
|
/**
|
|
2357
|
-
*
|
|
2458
|
+
* Plots data series.
|
|
2358
2459
|
*/
|
|
2359
|
-
export
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
}
|
|
2375
|
-
export declare class _AxisLabel {
|
|
2376
|
-
private _value;
|
|
2377
|
-
private _label;
|
|
2378
|
-
private _start;
|
|
2379
|
-
private _end;
|
|
2380
|
-
private _rect;
|
|
2381
|
-
constructor(label: string, start: number, length: number);
|
|
2382
|
-
readonly value: number;
|
|
2383
|
-
readonly label: string;
|
|
2384
|
-
readonly start: number;
|
|
2385
|
-
readonly end: number;
|
|
2386
|
-
rect: Rect;
|
|
2387
|
-
}
|
|
2388
|
-
declare class _AxisGroup {
|
|
2389
|
-
private _labels;
|
|
2390
|
-
private _index;
|
|
2391
|
-
private _size;
|
|
2392
|
-
private _level;
|
|
2393
|
-
private _last;
|
|
2394
|
-
constructor(level: number, last?: boolean);
|
|
2395
|
-
readonly labels: _AxisLabel[];
|
|
2396
|
-
index: number;
|
|
2397
|
-
height: number;
|
|
2398
|
-
width: number;
|
|
2399
|
-
readonly level: number;
|
|
2400
|
-
getSize(engine: IRenderEngine, className?: string, groupClass?: string): Size;
|
|
2401
|
-
render(engine: IRenderEngine, axis: Axis, value: number, className?: string, groupClass?: string): void;
|
|
2402
|
-
hitTest(point: Point): _AxisLabel;
|
|
2403
|
-
private renderLinesX;
|
|
2404
|
-
private renderLinesY;
|
|
2405
|
-
private drawLine;
|
|
2406
|
-
private _trimText;
|
|
2407
|
-
}
|
|
2408
|
-
export declare class _AxisGroups {
|
|
2409
|
-
private _groups;
|
|
2410
|
-
private _axis;
|
|
2411
|
-
private _height;
|
|
2412
|
-
private _margin;
|
|
2413
|
-
constructor(axis: Axis);
|
|
2414
|
-
readonly groups: _AxisGroup[];
|
|
2415
|
-
readonly axis: Axis;
|
|
2416
|
-
createGroups(): void;
|
|
2417
|
-
private createGroup;
|
|
2418
|
-
private layoutGroups;
|
|
2419
|
-
getHeight(engine: IRenderEngine): number;
|
|
2420
|
-
layout(): void;
|
|
2421
|
-
render(engine: IRenderEngine): void;
|
|
2422
|
-
hitTest(point: Point): _AxisLabel;
|
|
2423
|
-
}
|
|
2424
|
-
export declare class _DataPoint {
|
|
2425
|
-
private _seriesIndex;
|
|
2426
|
-
private _pointIndex;
|
|
2427
|
-
private _dataX;
|
|
2428
|
-
private _dataY;
|
|
2429
|
-
constructor(seriesIndex: number, pointIndex: number, dataX: number, dataY: number);
|
|
2430
|
-
readonly seriesIndex: number;
|
|
2431
|
-
readonly pointIndex: number;
|
|
2432
|
-
dataX: number;
|
|
2433
|
-
dataY: number;
|
|
2434
|
-
}
|
|
2435
|
-
export declare enum _MeasureOption {
|
|
2436
|
-
X = 0,
|
|
2437
|
-
Y = 1,
|
|
2438
|
-
XY = 2
|
|
2439
|
-
}
|
|
2440
|
-
export declare class _RectArea implements _IHitArea {
|
|
2441
|
-
private _rect;
|
|
2442
|
-
constructor(rect: Rect);
|
|
2443
|
-
readonly rect: Rect;
|
|
2444
|
-
tag: any;
|
|
2445
|
-
ignoreLabel: boolean;
|
|
2446
|
-
contains(pt: Point): boolean;
|
|
2447
|
-
pointDistance(pt1: Point, pt2: Point, option: _MeasureOption): number;
|
|
2448
|
-
distance(pt: Point): number;
|
|
2449
|
-
}
|
|
2450
|
-
export declare class _CircleArea implements _IHitArea {
|
|
2451
|
-
private _center;
|
|
2452
|
-
private _rad;
|
|
2453
|
-
private _rad2;
|
|
2454
|
-
tag: any;
|
|
2455
|
-
ignoreLabel: boolean;
|
|
2456
|
-
constructor(center: Point, radius: number);
|
|
2457
|
-
setRadius(radius: number): void;
|
|
2458
|
-
readonly center: Point;
|
|
2459
|
-
contains(pt: Point): boolean;
|
|
2460
|
-
distance(pt: Point): number;
|
|
2461
|
-
}
|
|
2462
|
-
export declare class _LinesArea implements _IHitArea {
|
|
2463
|
-
private _x;
|
|
2464
|
-
private _y;
|
|
2465
|
-
tag: any;
|
|
2466
|
-
ignoreLabel: boolean;
|
|
2467
|
-
constructor(x: any, y: any);
|
|
2468
|
-
contains(pt: Point): boolean;
|
|
2469
|
-
distance(pt: Point): number;
|
|
2470
|
-
}
|
|
2471
|
-
export declare class _HitResult {
|
|
2472
|
-
area: _IHitArea;
|
|
2473
|
-
distance: number;
|
|
2474
|
-
}
|
|
2475
|
-
export declare class _HitTester {
|
|
2476
|
-
_chart: FlexChartCore;
|
|
2477
|
-
_map: {
|
|
2478
|
-
[key: number]: Array<_IHitArea>;
|
|
2479
|
-
};
|
|
2480
|
-
constructor(chart: FlexChartCore);
|
|
2481
|
-
add(area: _IHitArea, seriesIndex: number): void;
|
|
2482
|
-
clear(): void;
|
|
2483
|
-
hitTest(pt: Point, testLines?: boolean): _HitResult;
|
|
2484
|
-
hitTestSeries(pt: Point, seriesIndex: any): _HitResult;
|
|
2460
|
+
export interface _IPlotter {
|
|
2461
|
+
chart: FlexChartCore;
|
|
2462
|
+
dataInfo: _DataInfo;
|
|
2463
|
+
hitTester: _HitTester;
|
|
2464
|
+
seriesIndex: number;
|
|
2465
|
+
seriesCount: number;
|
|
2466
|
+
clipping: boolean;
|
|
2467
|
+
stacking: Stacking;
|
|
2468
|
+
rotated: boolean;
|
|
2469
|
+
adjustLimits(dataInfo: _DataInfo, plotRect: Rect): Rect;
|
|
2470
|
+
plotSeries(engine: IRenderEngine, ax: _IAxis, ay: _IAxis, series: _ISeries, palette: _IPalette, iser: number, nser: number, customRender?: Function): any;
|
|
2471
|
+
_renderLabels(engine: IRenderEngine, series: SeriesBase, smap: _IHitArea[], chart: FlexChartCore, lblAreas: _RectArea[]): any;
|
|
2472
|
+
_renderLabel(engine: IRenderEngine, map: _IHitArea, dp: _DataPoint, chart: FlexChartCore, lbl: DataLabel, series: SeriesBase, offset: number, lblAreas: _RectArea[]): any;
|
|
2473
|
+
load(): any;
|
|
2474
|
+
unload(): any;
|
|
2485
2475
|
}
|
|
2486
2476
|
/**
|
|
2487
|
-
*
|
|
2477
|
+
* Base class for chart plotters of all types (bar, line, area).
|
|
2488
2478
|
*/
|
|
2489
|
-
export declare
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2479
|
+
export declare class _BasePlotter {
|
|
2480
|
+
_DEFAULT_WIDTH: number;
|
|
2481
|
+
_DEFAULT_SYM_SIZE: number;
|
|
2482
|
+
clipping: boolean;
|
|
2483
|
+
chart: FlexChartCore;
|
|
2484
|
+
hitTester: _HitTester;
|
|
2485
|
+
dataInfo: _DataInfo;
|
|
2486
|
+
seriesIndex: number;
|
|
2487
|
+
seriesCount: number;
|
|
2488
|
+
clear(): void;
|
|
2489
|
+
_renderLabels(engine: IRenderEngine, series: SeriesBase, smap: _IHitArea[], chart: FlexChartCore, lblAreas: _RectArea[]): void;
|
|
2490
|
+
_renderLabel(engine: IRenderEngine, map: _IHitArea, dp: _DataPoint, chart: FlexChartCore, lbl: DataLabel, series: SeriesBase, offset: number, lblAreas: _RectArea[]): void;
|
|
2491
|
+
_getPointAndPosition(pt: Point, pos: LabelPosition, map: _IHitArea, chart: FlexChartCore): void;
|
|
2492
|
+
_getLabelPoint(series: SeriesBase, dataPoint: _DataPoint): Point;
|
|
2493
|
+
_renderLabelAndBorder(engine: IRenderEngine, s: string, pos: LabelPosition, offset: number, pt: Point, line: boolean, marg: any, border: boolean): Rect;
|
|
2494
|
+
getOption(name: string, parent?: string): any;
|
|
2495
|
+
getNumOption(name: string, parent?: string): number;
|
|
2496
|
+
getItemFormatter(series: _ISeries): Function;
|
|
2497
|
+
static cloneStyle(style: any, ignore: string[]): any;
|
|
2498
|
+
isValid(datax: number, datay: number, ax: _IAxis, ay: _IAxis): boolean;
|
|
2499
|
+
load(): void;
|
|
2500
|
+
unload(): void;
|
|
2501
|
+
_createSteps(x: number[], y: number[], num?: number): {
|
|
2502
|
+
x: number[];
|
|
2503
|
+
y: number[];
|
|
2504
|
+
};
|
|
2512
2505
|
}
|
|
2513
2506
|
/**
|
|
2514
|
-
*
|
|
2515
|
-
*
|
|
2507
|
+
* Represents a series of data points to display in the chart.
|
|
2508
|
+
*
|
|
2509
|
+
* The {@link Series} class supports all basic chart types. You may define
|
|
2510
|
+
* a different chart type on each {@link Series} object that you add to the
|
|
2511
|
+
* {@link FlexChart} series collection. This overrides the {@link chartType}
|
|
2512
|
+
* property set on the chart that is the default for all {@link Series} objects
|
|
2513
|
+
* in its collection.
|
|
2516
2514
|
*/
|
|
2517
|
-
export declare class
|
|
2518
|
-
private _chart;
|
|
2519
|
-
private _pt;
|
|
2520
|
-
private _series;
|
|
2521
|
-
private _pointIndex;
|
|
2522
|
-
_chartElement: ChartElement;
|
|
2523
|
-
_dist: number;
|
|
2524
|
-
private _item;
|
|
2525
|
-
private _x;
|
|
2526
|
-
private __xfmt;
|
|
2527
|
-
private _y;
|
|
2528
|
-
private __yfmt;
|
|
2529
|
-
private _name;
|
|
2530
|
-
private _groupIndex;
|
|
2515
|
+
export declare class Series extends SeriesBase {
|
|
2531
2516
|
/**
|
|
2532
|
-
*
|
|
2517
|
+
* Gets or sets the chart type for a specific series, overriding the chart type
|
|
2518
|
+
* set on the overall chart.
|
|
2533
2519
|
*
|
|
2534
|
-
*
|
|
2535
|
-
*
|
|
2536
|
-
* @param element The chart element.
|
|
2537
|
-
*/
|
|
2538
|
-
constructor(chart: FlexChartBase, point: Point, element?: ChartElement);
|
|
2539
|
-
/**
|
|
2540
|
-
* Gets the {@link FlexChartBase} that owns this {@link HitTestInfo}.
|
|
2541
|
-
*/
|
|
2542
|
-
readonly chart: FlexChartBase;
|
|
2543
|
-
/**
|
|
2544
|
-
* Gets the point, in control coordinates,
|
|
2545
|
-
* that this {@link HitTestInfo} refers to.
|
|
2546
|
-
*/
|
|
2547
|
-
readonly point: Point;
|
|
2548
|
-
/**
|
|
2549
|
-
* Gets the chart series at the specified coordinates.
|
|
2550
|
-
*/
|
|
2551
|
-
readonly series: SeriesBase;
|
|
2552
|
-
/**
|
|
2553
|
-
* Gets the data point index at the specified coordinates.
|
|
2554
|
-
*/
|
|
2555
|
-
readonly pointIndex: number;
|
|
2556
|
-
/**
|
|
2557
|
-
* Gets the chart element at the specified coordinates.
|
|
2558
|
-
*/
|
|
2559
|
-
readonly chartElement: ChartElement;
|
|
2560
|
-
/**
|
|
2561
|
-
* Gets the distance to the closest data point.
|
|
2562
|
-
*/
|
|
2563
|
-
readonly distance: number;
|
|
2564
|
-
/**
|
|
2565
|
-
* Gets the data object that corresponds to the closest data point.
|
|
2520
|
+
* The default value for this property is <b>null</b>, which causes the
|
|
2521
|
+
* series to use chart type defined by the parent chart.
|
|
2566
2522
|
*/
|
|
2567
|
-
|
|
2523
|
+
chartType: ChartType;
|
|
2524
|
+
}
|
|
2525
|
+
/**
|
|
2526
|
+
* The {@link FlexPie} control provides pie and doughnut charts with selectable
|
|
2527
|
+
* slices.
|
|
2528
|
+
*
|
|
2529
|
+
* To use the {@link FlexPie} control, set the {@link FlexPie.itemsSource} property
|
|
2530
|
+
* to an array containing the data and use the {@link FlexPie.binding} and
|
|
2531
|
+
* {@link FlexPie.bindingName} properties to set the properties that contain
|
|
2532
|
+
* the item values and names.
|
|
2533
|
+
*/
|
|
2534
|
+
export declare class FlexPie extends FlexChartBase {
|
|
2535
|
+
private static _MARGIN;
|
|
2536
|
+
private static _CSS_GROUP_TITLE;
|
|
2537
|
+
private _binding;
|
|
2538
|
+
private _bindingName;
|
|
2539
|
+
_areas: any[];
|
|
2540
|
+
private _keywords;
|
|
2541
|
+
private _startAngle;
|
|
2542
|
+
private _innerRadius;
|
|
2543
|
+
private _offset;
|
|
2544
|
+
private _reversed;
|
|
2545
|
+
private _isAnimated;
|
|
2546
|
+
private _selectedItemPosition;
|
|
2547
|
+
private _selectedItemOffset;
|
|
2548
|
+
private _pieGroups;
|
|
2549
|
+
_rotationAngles: number[];
|
|
2550
|
+
private _centers;
|
|
2551
|
+
_radius: number;
|
|
2552
|
+
private _selectedOffset;
|
|
2553
|
+
private _selectedIndex;
|
|
2554
|
+
private _angles;
|
|
2555
|
+
private _selectionAnimationID;
|
|
2556
|
+
private _colRowLens;
|
|
2557
|
+
private _lbl;
|
|
2558
|
+
private _titles;
|
|
2559
|
+
private _innerText;
|
|
2560
|
+
private _innerTextStyle;
|
|
2561
|
+
private _chartsPerLine;
|
|
2562
|
+
_values: number[][];
|
|
2563
|
+
_labels: string[];
|
|
2564
|
+
_pels: any[];
|
|
2565
|
+
_sum: number;
|
|
2566
|
+
_sums: number[];
|
|
2567
|
+
_bindingSeparator: string;
|
|
2568
2568
|
/**
|
|
2569
|
-
*
|
|
2569
|
+
* Initializes a new instance of the {@link FlexPie} class.
|
|
2570
|
+
*
|
|
2571
|
+
* @param element The DOM element that hosts the control, or a selector for the host element (e.g. '#theCtrl').
|
|
2572
|
+
* @param options A Javascript object containing initialization data for the control.
|
|
2570
2573
|
*/
|
|
2571
|
-
|
|
2574
|
+
constructor(element: any, options?: any);
|
|
2572
2575
|
/**
|
|
2573
|
-
* Gets the
|
|
2576
|
+
* Gets or sets the name of the property that contains the chart values.
|
|
2574
2577
|
*/
|
|
2575
|
-
|
|
2576
|
-
readonly value: any;
|
|
2577
|
-
readonly name: any;
|
|
2578
|
+
binding: string;
|
|
2578
2579
|
/**
|
|
2579
|
-
* Gets the
|
|
2580
|
+
* Gets or sets the name of the property that contains the name of the data items.
|
|
2580
2581
|
*/
|
|
2581
|
-
|
|
2582
|
-
readonly _xfmt: any;
|
|
2583
|
-
readonly _yfmt: any;
|
|
2584
|
-
_setData(series: SeriesBase, pi?: number): void;
|
|
2585
|
-
_setDataGroup(gi: number, pi: number): void;
|
|
2586
|
-
_setName(name: string): void;
|
|
2587
|
-
_setDataPoint(dataPoint: _DataPoint): void;
|
|
2588
|
-
_getValueFmt(): any;
|
|
2589
|
-
private _getValue;
|
|
2590
|
-
private readonly ax;
|
|
2591
|
-
private readonly ay;
|
|
2592
|
-
}
|
|
2593
|
-
/**
|
|
2594
|
-
* Specifies whether and where the Series is visible.
|
|
2595
|
-
*/
|
|
2596
|
-
export declare enum SeriesVisibility {
|
|
2597
|
-
/** The series is visible on the plot and in the legend. */
|
|
2598
|
-
Visible = 0,
|
|
2599
|
-
/** The series is visible only on the plot. */
|
|
2600
|
-
Plot = 1,
|
|
2601
|
-
/** The series is visible only in the legend. */
|
|
2602
|
-
Legend = 2,
|
|
2603
|
-
/** The series is hidden. */
|
|
2604
|
-
Hidden = 3
|
|
2605
|
-
}
|
|
2606
|
-
/**
|
|
2607
|
-
* Specifies the type of marker to use for the {@link Series.symbolMarker}
|
|
2608
|
-
* property.
|
|
2609
|
-
*
|
|
2610
|
-
* Applies to Scatter, LineSymbols, and SplineSymbols chart types.
|
|
2611
|
-
*/
|
|
2612
|
-
export declare enum Marker {
|
|
2582
|
+
bindingName: string;
|
|
2613
2583
|
/**
|
|
2614
|
-
*
|
|
2584
|
+
* Gets or sets the starting angle for the pie slices, in degrees.
|
|
2585
|
+
*
|
|
2586
|
+
* Angles are measured clockwise, starting at the 9 o'clock position.
|
|
2587
|
+
*
|
|
2588
|
+
* The default value for this property is <b>0</b>.
|
|
2615
2589
|
*/
|
|
2616
|
-
|
|
2590
|
+
startAngle: number;
|
|
2617
2591
|
/**
|
|
2618
|
-
*
|
|
2592
|
+
* Gets or sets the offset of the slices from the pie center.
|
|
2593
|
+
*
|
|
2594
|
+
* The offset is measured as a fraction of the pie radius.
|
|
2595
|
+
*
|
|
2596
|
+
* The default value for this property is <b>0</b>.
|
|
2619
2597
|
*/
|
|
2620
|
-
|
|
2621
|
-
}
|
|
2622
|
-
/**
|
|
2623
|
-
* Data series interface
|
|
2624
|
-
*/
|
|
2625
|
-
export interface _ISeries {
|
|
2626
|
-
style: any;
|
|
2627
|
-
symbolStyle: any;
|
|
2628
|
-
getValues: (dim: number) => number[];
|
|
2629
|
-
getDataType: (dim: number) => DataType;
|
|
2630
|
-
drawLegendItem(engine: IRenderEngine, rect: Rect, index: number): any;
|
|
2631
|
-
measureLegendItem(engine: IRenderEngine, index: number): Size;
|
|
2632
|
-
_setPointIndex(pointIndex: number, elementIndex: number): any;
|
|
2633
|
-
}
|
|
2634
|
-
export declare class DataArray {
|
|
2635
|
-
dataType: DataType;
|
|
2636
|
-
values: Array<number>;
|
|
2637
|
-
}
|
|
2638
|
-
/**
|
|
2639
|
-
* Provides arguments for {@link Series} events.
|
|
2640
|
-
*/
|
|
2641
|
-
export declare class SeriesEventArgs extends EventArgs {
|
|
2642
|
-
_series: SeriesBase;
|
|
2598
|
+
offset: number;
|
|
2643
2599
|
/**
|
|
2644
|
-
*
|
|
2600
|
+
* Gets or sets the size of the pie's inner radius.
|
|
2645
2601
|
*
|
|
2646
|
-
*
|
|
2602
|
+
* The inner radius is measured as a fraction of the pie radius.
|
|
2603
|
+
*
|
|
2604
|
+
* The default value for this property is zero, which creates
|
|
2605
|
+
* a pie. Setting this property to values greater than zero
|
|
2606
|
+
* creates pies with a hole in the middle, also known as
|
|
2607
|
+
* doughnut charts. The valid range for inner radius is from 0 to 1.
|
|
2608
|
+
*
|
|
2609
|
+
* The default value for this property is <b>0</b>.
|
|
2647
2610
|
*/
|
|
2648
|
-
|
|
2611
|
+
innerRadius: number;
|
|
2649
2612
|
/**
|
|
2650
|
-
* Gets the
|
|
2613
|
+
* Gets or sets the style of text inside the pie.
|
|
2651
2614
|
*/
|
|
2652
|
-
|
|
2653
|
-
}
|
|
2654
|
-
/**
|
|
2655
|
-
* Represents a series of data points to display in the chart.
|
|
2656
|
-
*/
|
|
2657
|
-
export declare class SeriesBase<T = any> implements _ISeries {
|
|
2658
|
-
static _LEGEND_ITEM_WIDTH: number;
|
|
2659
|
-
static _LEGEND_ITEM_HEIGHT: number;
|
|
2660
|
-
static _LEGEND_ITEM_MARGIN: number;
|
|
2661
|
-
private static _DEFAULT_SYM_SIZE;
|
|
2662
|
-
__chart: FlexChartCore;
|
|
2663
|
-
private _name;
|
|
2664
|
-
private _binding;
|
|
2665
|
-
private _showValues;
|
|
2666
|
-
private _symbolStyle;
|
|
2667
|
-
private _symbolSize;
|
|
2668
|
-
private _style;
|
|
2669
|
-
private _altStyle;
|
|
2670
|
-
_cv: ICollectionView<T>;
|
|
2671
|
-
private _itemsSource;
|
|
2672
|
-
private _values;
|
|
2673
|
-
private _valueDataType;
|
|
2674
|
-
_chartType: ChartType;
|
|
2675
|
-
private _symbolMarker;
|
|
2676
|
-
private _bindingX;
|
|
2677
|
-
private _xvalues;
|
|
2678
|
-
private _xvalueDataType;
|
|
2679
|
-
private _cssClass;
|
|
2680
|
-
private _visibility;
|
|
2681
|
-
private _axisX;
|
|
2682
|
-
private _axisY;
|
|
2683
|
-
private __plotter;
|
|
2684
|
-
private _interpolateNulls;
|
|
2685
|
-
private _tooltipContent;
|
|
2686
|
-
private _itemFormatter;
|
|
2687
|
-
private _cache;
|
|
2688
|
-
_legendElement: SVGAElement;
|
|
2689
|
-
_hostElement: SVGGElement;
|
|
2690
|
-
_pointIndexes: number[];
|
|
2615
|
+
innerTextStyle: any;
|
|
2691
2616
|
/**
|
|
2692
|
-
*
|
|
2693
|
-
*
|
|
2694
|
-
* @param options JavaScript object containing initialization data for the object.
|
|
2617
|
+
* Gets or sets the text inside the pie (at the pie center).
|
|
2695
2618
|
*/
|
|
2696
|
-
|
|
2619
|
+
innerText: any;
|
|
2697
2620
|
/**
|
|
2698
|
-
* Gets or sets a value that determines whether
|
|
2699
|
-
*
|
|
2621
|
+
* Gets or sets a value that determines whether angles are reversed
|
|
2622
|
+
* (counter-clockwise).
|
|
2700
2623
|
*
|
|
2701
|
-
*
|
|
2702
|
-
*
|
|
2703
|
-
* lines and areas at the points with null values.
|
|
2624
|
+
* The default value is false, which causes angles to be measured in
|
|
2625
|
+
* the clockwise direction.
|
|
2704
2626
|
*
|
|
2705
2627
|
* The default value for this property is <b>false</b>.
|
|
2706
2628
|
*/
|
|
2707
|
-
|
|
2629
|
+
reversed: boolean;
|
|
2708
2630
|
/**
|
|
2709
|
-
* Gets or sets the
|
|
2631
|
+
* Gets or sets the position of the selected slice.
|
|
2632
|
+
*
|
|
2633
|
+
* Setting this property to a value other than 'None' causes
|
|
2634
|
+
* the pie to rotate when an item is selected.
|
|
2635
|
+
*
|
|
2636
|
+
* Note that in order to select slices by clicking the chart,
|
|
2637
|
+
* you must set the {@link selectionMode} property to 'Point'.
|
|
2638
|
+
*
|
|
2639
|
+
* The default value for this property is <b>Position.None</b>.
|
|
2710
2640
|
*/
|
|
2711
|
-
|
|
2641
|
+
selectedItemPosition: Position;
|
|
2712
2642
|
/**
|
|
2713
|
-
* Gets or sets the
|
|
2643
|
+
* Gets or sets the offset of the selected slice from the pie center.
|
|
2714
2644
|
*
|
|
2715
|
-
*
|
|
2716
|
-
* and Scatter charts; and for rising values in financial chart types
|
|
2717
|
-
* like Candlestick, LineBreak, EquiVolume etc.
|
|
2645
|
+
* Offsets are measured as a fraction of the pie radius.
|
|
2718
2646
|
*
|
|
2719
|
-
* The default value for this property is <b>
|
|
2720
|
-
* series to use the default style.
|
|
2647
|
+
* The default value for this property is <b>0</b>.
|
|
2721
2648
|
*/
|
|
2722
|
-
|
|
2649
|
+
selectedItemOffset: number;
|
|
2723
2650
|
/**
|
|
2724
|
-
* Gets or sets
|
|
2651
|
+
* Gets or sets a value indicating whether to use animation when items are selected.
|
|
2725
2652
|
*
|
|
2726
|
-
*
|
|
2653
|
+
* See also the {@link selectedItemPosition} and {@link selectionMode}
|
|
2654
|
+
* properties.
|
|
2655
|
+
*
|
|
2656
|
+
* The default value for this property is <b>false</b>.
|
|
2727
2657
|
*/
|
|
2728
|
-
|
|
2658
|
+
isAnimated: boolean;
|
|
2729
2659
|
/**
|
|
2730
|
-
* Gets
|
|
2731
|
-
|
|
2660
|
+
* Gets the chart's {@link Tooltip}.
|
|
2661
|
+
*/
|
|
2662
|
+
readonly tooltip: ChartTooltip;
|
|
2663
|
+
/**
|
|
2664
|
+
* Gets or sets the point data label.
|
|
2665
|
+
*/
|
|
2666
|
+
dataLabel: PieDataLabel;
|
|
2667
|
+
/**
|
|
2668
|
+
* Gets or sets the index of the selected slice.
|
|
2669
|
+
*/
|
|
2670
|
+
selectedIndex: number;
|
|
2671
|
+
/**
|
|
2672
|
+
* Gets or sets the pie titles.
|
|
2732
2673
|
*
|
|
2733
|
-
* The
|
|
2674
|
+
* The titles are shown above each pie chart when multiple properties are specified in {@link binding}.
|
|
2675
|
+
* If the property is not set (undefined) the property names are used as pie titles.
|
|
2734
2676
|
*/
|
|
2735
|
-
|
|
2677
|
+
titles: string[];
|
|
2736
2678
|
/**
|
|
2737
|
-
* Gets or sets the
|
|
2738
|
-
* Applies to Scatter, LineSymbols, and SplineSymbols chart types.
|
|
2679
|
+
* Gets or sets the maximal number of charts per line.
|
|
2739
2680
|
*
|
|
2740
|
-
* The
|
|
2681
|
+
* The property is used when there are multiple pies. By default,
|
|
2682
|
+
* it's undefined and the control perform layout automatically.
|
|
2741
2683
|
*/
|
|
2742
|
-
|
|
2684
|
+
chartsPerLine: number;
|
|
2685
|
+
_getLabelsForLegend(): string[];
|
|
2743
2686
|
/**
|
|
2744
|
-
* Gets
|
|
2687
|
+
* Gets a {@link HitTestInfo} object with information about the specified point.
|
|
2688
|
+
*
|
|
2689
|
+
* @param pt The point to investigate, in window coordinates.
|
|
2690
|
+
* @param y The Y coordinate of the point (if the first parameter is a number).
|
|
2691
|
+
* @param isTooltip Enables hit testing for tooltip.
|
|
2692
|
+
* @return A {@link HitTestInfo} object containing information about the point.
|
|
2745
2693
|
*/
|
|
2746
|
-
|
|
2694
|
+
hitTest(pt: any, y?: number, isTooltip?: boolean): HitTestInfo;
|
|
2695
|
+
private _hitTestData;
|
|
2696
|
+
private _isSmallSegment;
|
|
2697
|
+
_performBind(): void;
|
|
2698
|
+
_getBindings(): string[];
|
|
2699
|
+
_initData(): void;
|
|
2700
|
+
_getBindData(item: any, values: number[], labels: any, binding: string, bindingName: string): number;
|
|
2701
|
+
_render(engine: IRenderEngine, applyElement?: boolean, bg?: string): void;
|
|
2702
|
+
_prepareRender(): void;
|
|
2703
|
+
_renderChart(engine: IRenderEngine, rect: Rect, applyElement: boolean): void;
|
|
2704
|
+
_layout(eng: IRenderEngine, r: Rect, titles: string[], n: number): Rect[];
|
|
2705
|
+
_getDesiredLegendSize(engine: IRenderEngine, isVertical: boolean, width: number, height: number): Size;
|
|
2706
|
+
_renderLegend(engine: IRenderEngine, pos: Point, areas: any[], isVertical: boolean, width: number, height: number): void;
|
|
2707
|
+
_renderData(engine: IRenderEngine, rect: Rect, i: number, g: any): void;
|
|
2708
|
+
_renderPie(engine: IRenderEngine, gi: number, radius: number, innerRadius: number, startAngle: number, offset: number): void;
|
|
2709
|
+
_getCenter(): Point;
|
|
2710
|
+
_renderSlices(engine: any, values: any, sum: any, gi: number, radius: any, innerRadius: any, startAngle: any, totalSweep: any, offset: any): void;
|
|
2711
|
+
_renderSlice(engine: IRenderEngine, cx: number, cy: number, currentAngle: number, gi: number, idx: number, radius: number, innerRadius: number, startAngle: number, sweep: number, totalSweep: number): void;
|
|
2712
|
+
_getSelectedItemOffset(index: any, angle: any): {
|
|
2713
|
+
x: number;
|
|
2714
|
+
y: number;
|
|
2715
|
+
};
|
|
2716
|
+
_renderInnerText(engine: IRenderEngine): void;
|
|
2717
|
+
_renderLabels(engine: IRenderEngine): void;
|
|
2718
|
+
_drawSlice(engine: IRenderEngine, gi: number, i: number, reversed: boolean, cx: number, cy: number, r: number, irad: number, angle: number, sweep: number): void;
|
|
2719
|
+
_measureLegendItem(engine: IRenderEngine, name: string): Size;
|
|
2720
|
+
_drawLegendItem(engine: IRenderEngine, rect: Rect, i: number, name: string): void;
|
|
2721
|
+
private _getLabelContent;
|
|
2722
|
+
private _select;
|
|
2723
|
+
_highlightCurrent(): void;
|
|
2724
|
+
_highlight(selected: boolean, pointIndex: number, animate?: boolean): void;
|
|
2725
|
+
_animateSelectionAngle(targetAngles: number[], duration: number): void;
|
|
2726
|
+
_getHitTestItem(index: number): any;
|
|
2727
|
+
_getHitTestValue(index: number, gi: number): number;
|
|
2728
|
+
_getHitTestLabel(index: number): string;
|
|
2729
|
+
}
|
|
2730
|
+
export interface _ISegment {
|
|
2731
|
+
center: Point;
|
|
2732
|
+
radius: number;
|
|
2733
|
+
langle: number;
|
|
2734
|
+
angle: number;
|
|
2735
|
+
sweep: number;
|
|
2736
|
+
gi: number;
|
|
2737
|
+
}
|
|
2738
|
+
export declare class _PieSegment implements _IHitArea, _ISegment {
|
|
2739
|
+
private _center;
|
|
2740
|
+
private _angle;
|
|
2741
|
+
private _sweep;
|
|
2742
|
+
private _radius;
|
|
2743
|
+
private _radius2;
|
|
2744
|
+
private _isFull;
|
|
2745
|
+
private _originAngle;
|
|
2746
|
+
private _originSweep;
|
|
2747
|
+
private _startAngle;
|
|
2748
|
+
constructor(center: Point, radius: number, angle: number, sweep: number, startAngle?: number);
|
|
2749
|
+
contains(pt: Point): boolean;
|
|
2750
|
+
distance(pt: Point): number;
|
|
2751
|
+
readonly center: Point;
|
|
2752
|
+
readonly radius: number;
|
|
2753
|
+
readonly langle: number;
|
|
2754
|
+
readonly angle: number;
|
|
2755
|
+
readonly sweep: number;
|
|
2756
|
+
tag: any;
|
|
2757
|
+
ignoreLabel: boolean;
|
|
2758
|
+
gi: number;
|
|
2759
|
+
}
|
|
2760
|
+
export declare class _DonutSegment implements _IHitArea, _ISegment {
|
|
2761
|
+
private _center;
|
|
2762
|
+
private _angle;
|
|
2763
|
+
private _sweep;
|
|
2764
|
+
private _originAngle;
|
|
2765
|
+
private _originSweep;
|
|
2766
|
+
private _radius;
|
|
2767
|
+
private _radius2;
|
|
2768
|
+
private _iradius;
|
|
2769
|
+
private _iradius2;
|
|
2770
|
+
private _isFull;
|
|
2771
|
+
private _startAngle;
|
|
2772
|
+
constructor(center: Point, radius: number, innerRadius: number, angle: number, sweep: number, startAngle?: number);
|
|
2773
|
+
contains(pt: Point): boolean;
|
|
2774
|
+
distance(pt: Point): number;
|
|
2775
|
+
readonly center: Point;
|
|
2776
|
+
readonly radius: number;
|
|
2777
|
+
readonly langle: number;
|
|
2778
|
+
readonly angle: number;
|
|
2779
|
+
readonly sweep: number;
|
|
2780
|
+
readonly innerRadius: number;
|
|
2781
|
+
tag: any;
|
|
2782
|
+
ignoreLabel: boolean;
|
|
2783
|
+
gi: number;
|
|
2784
|
+
}
|
|
2785
|
+
/**
|
|
2786
|
+
* Specifies the direction of the lines shown by the {@link LineMarker}.
|
|
2787
|
+
*/
|
|
2788
|
+
export declare enum LineMarkerLines {
|
|
2789
|
+
/** No lines. */
|
|
2790
|
+
None = 0,
|
|
2791
|
+
/** Vertical line. */
|
|
2792
|
+
Vertical = 1,
|
|
2793
|
+
/** Horizontal line. */
|
|
2794
|
+
Horizontal = 2,
|
|
2795
|
+
/** Vertical and horizontal lines. */
|
|
2796
|
+
Both = 3
|
|
2797
|
+
}
|
|
2798
|
+
/**
|
|
2799
|
+
* Specifies how the {@link LineMarker} interacts with the user.
|
|
2800
|
+
*/
|
|
2801
|
+
export declare enum LineMarkerInteraction {
|
|
2802
|
+
/** No interaction, the user specifies the position by clicking. */
|
|
2803
|
+
None = 0,
|
|
2804
|
+
/** The {@link LineMarker} moves with the pointer. */
|
|
2805
|
+
Move = 1,
|
|
2806
|
+
/** The {@link LineMarker} moves when the user drags the lines. */
|
|
2807
|
+
Drag = 2
|
|
2808
|
+
}
|
|
2809
|
+
/**
|
|
2810
|
+
* Specifies the alignment of the {@link LineMarker}.
|
|
2811
|
+
*/
|
|
2812
|
+
export declare enum LineMarkerAlignment {
|
|
2747
2813
|
/**
|
|
2748
|
-
*
|
|
2749
|
-
*/
|
|
2750
|
-
|
|
2814
|
+
* The LineMarker alignment adjusts automatically so that it stays
|
|
2815
|
+
* within the boundaries of the plot area. */
|
|
2816
|
+
Auto = 2,
|
|
2817
|
+
/** The LineMarker aligns to the right of the pointer. */
|
|
2818
|
+
Right = 0,
|
|
2819
|
+
/** The LineMarker aligns to the left of the pointer. */
|
|
2820
|
+
Left = 1,
|
|
2821
|
+
/** The LineMarker aligns to the bottom of the pointer. */
|
|
2822
|
+
Bottom = 4,
|
|
2823
|
+
/** The LineMarker aligns to the top of the pointer. */
|
|
2824
|
+
Top = 6
|
|
2825
|
+
}
|
|
2826
|
+
/**
|
|
2827
|
+
* Represents an extension of the LineMarker for the FlexChart.
|
|
2828
|
+
*
|
|
2829
|
+
* The {@link LineMarker} consists of a text area with content reflecting
|
|
2830
|
+
* data point values, and optional vertical or horizontal lines
|
|
2831
|
+
* (or both for a cross-hair effect) positioned over the plot area.
|
|
2832
|
+
*
|
|
2833
|
+
* It can be static (interaction = None), follow the mouse or touch
|
|
2834
|
+
* position (interaction = Move), or move when the user drags the
|
|
2835
|
+
* line (interaction = Drag).
|
|
2836
|
+
*
|
|
2837
|
+
* For example:
|
|
2838
|
+
* <pre>
|
|
2839
|
+
* // create an interactive marker with a horizontal line and y-value
|
|
2840
|
+
* var lm = new LineMarker($scope.ctx.chart, {
|
|
2841
|
+
* lines: LineMarkerLines.Horizontal,
|
|
2842
|
+
* interaction: LineMarkerInteraction.Move,
|
|
2843
|
+
* alignment : LineMarkerAlignment.Top
|
|
2844
|
+
* });
|
|
2845
|
+
* lm.content = function (ht) {
|
|
2846
|
+
* // show y-value
|
|
2847
|
+
* return lm.y.toFixed(2);
|
|
2848
|
+
* }
|
|
2849
|
+
* </pre>
|
|
2850
|
+
*/
|
|
2851
|
+
export declare class LineMarker {
|
|
2852
|
+
static _CSS_MARKER: string;
|
|
2853
|
+
static _CSS_MARKER_HLINE: string;
|
|
2854
|
+
static _CSS_MARKER_VLINE: string;
|
|
2855
|
+
static _CSS_MARKER_CONTENT: string;
|
|
2856
|
+
static _CSS_MARKER_CONTAINER: string;
|
|
2857
|
+
static _CSS_LINE_DRAGGABLE: string;
|
|
2858
|
+
static _CSS_TOUCH_DISABLED: string;
|
|
2859
|
+
private _chart;
|
|
2860
|
+
private _plot;
|
|
2861
|
+
private _marker;
|
|
2862
|
+
private _markerContainer;
|
|
2863
|
+
private _markerContent;
|
|
2864
|
+
private _dragEle;
|
|
2865
|
+
private _hLine;
|
|
2866
|
+
private _vLine;
|
|
2867
|
+
private _plotRect;
|
|
2868
|
+
private _targetPoint;
|
|
2869
|
+
private _wrapperMoveMarker;
|
|
2870
|
+
private _capturedEle;
|
|
2871
|
+
private _wrapperMousedown;
|
|
2872
|
+
private _wrapperMouseup;
|
|
2873
|
+
private _contentDragStartPoint;
|
|
2874
|
+
private _mouseDownCrossPoint;
|
|
2875
|
+
private _savedPosition;
|
|
2876
|
+
private _isVisible;
|
|
2877
|
+
private _horizontalPosition;
|
|
2878
|
+
private _verticalPosition;
|
|
2879
|
+
private _alignment;
|
|
2880
|
+
private _content;
|
|
2881
|
+
private _seriesIndex;
|
|
2882
|
+
private _lines;
|
|
2883
|
+
private _interaction;
|
|
2884
|
+
private _dragThreshold;
|
|
2885
|
+
private _dragContent;
|
|
2886
|
+
private _dragLines;
|
|
2751
2887
|
/**
|
|
2752
|
-
*
|
|
2888
|
+
* Initializes a new instance of the {@link LineMarker} class.
|
|
2753
2889
|
*
|
|
2754
|
-
*
|
|
2755
|
-
*
|
|
2756
|
-
*/
|
|
2757
|
-
name: string;
|
|
2758
|
-
/**
|
|
2759
|
-
* Gets or sets the array or {@link ICollectionView} object that contains the series data.
|
|
2760
|
-
*/
|
|
2761
|
-
itemsSource: any;
|
|
2762
|
-
/**
|
|
2763
|
-
* Gets the {@link ICollectionView} object that contains the data for this series.
|
|
2890
|
+
* @param chart The chart on which the LineMarker appears.
|
|
2891
|
+
* @param options A JavaScript object containing initialization data for the control.
|
|
2764
2892
|
*/
|
|
2765
|
-
|
|
2893
|
+
constructor(chart: FlexChartCore, options?: any);
|
|
2766
2894
|
/**
|
|
2767
|
-
* Gets the {@link FlexChart} object that owns
|
|
2895
|
+
* Gets the {@link FlexChart} object that owns the LineMarker.
|
|
2768
2896
|
*/
|
|
2769
2897
|
readonly chart: FlexChartCore;
|
|
2770
2898
|
/**
|
|
2771
|
-
* Gets the
|
|
2772
|
-
*/
|
|
2773
|
-
readonly hostElement: SVGGElement;
|
|
2774
|
-
/**
|
|
2775
|
-
* Gets the series element in the legend.
|
|
2776
|
-
*/
|
|
2777
|
-
readonly legendElement: SVGGElement;
|
|
2778
|
-
/**
|
|
2779
|
-
* Gets or sets the series CSS class.
|
|
2780
|
-
*/
|
|
2781
|
-
cssClass: string;
|
|
2782
|
-
/**
|
|
2783
|
-
* Gets or sets an enumerated value indicating whether and where the series appears.
|
|
2784
|
-
*
|
|
2785
|
-
* The default value for this property is <b>SeriesVisibility.Visible</b>.
|
|
2786
|
-
*/
|
|
2787
|
-
visibility: SeriesVisibility;
|
|
2788
|
-
/**
|
|
2789
|
-
* Gets or sets the series specific tooltip content.
|
|
2790
|
-
*
|
|
2791
|
-
* The property overrides the content of chart tooltip content.
|
|
2899
|
+
* Gets or sets the visibility of the LineMarker.
|
|
2792
2900
|
*/
|
|
2793
|
-
|
|
2901
|
+
isVisible: boolean;
|
|
2794
2902
|
/**
|
|
2795
|
-
* Gets or sets the
|
|
2796
|
-
*
|
|
2797
|
-
*
|
|
2798
|
-
* The property overrides the chart's itemFormatter {@link wijmo.chart.FlexChart.itemFormatter}.
|
|
2903
|
+
* Gets or sets the index of the series in the chart in which the LineMarker appears.
|
|
2904
|
+
* This takes effect when the {@link interaction} property is set to
|
|
2905
|
+
* LineMarkerInteraction.Move or LineMarkerInteraction.Drag.
|
|
2799
2906
|
*/
|
|
2800
|
-
|
|
2907
|
+
seriesIndex: number;
|
|
2801
2908
|
/**
|
|
2802
|
-
* Gets
|
|
2909
|
+
* Gets or sets the horizontal position of the LineMarker relative to the plot area.
|
|
2803
2910
|
*
|
|
2804
|
-
*
|
|
2805
|
-
*
|
|
2911
|
+
* Its value range is (0, 1).
|
|
2912
|
+
* If the value is null or undefined and {@link interaction} is set to
|
|
2913
|
+
* LineMarkerInteraction.Move or LineMarkerInteraction.Drag,
|
|
2914
|
+
* the horizontal position of the marker is calculated automatically based on the
|
|
2915
|
+
* pointer's position.
|
|
2806
2916
|
*/
|
|
2807
|
-
|
|
2917
|
+
horizontalPosition: number;
|
|
2808
2918
|
/**
|
|
2809
|
-
* Gets the
|
|
2810
|
-
*
|
|
2811
|
-
* @param pointIndex The index of the data point.
|
|
2919
|
+
* Gets the current x-value as chart data coordinates.
|
|
2812
2920
|
*/
|
|
2813
|
-
|
|
2921
|
+
readonly x: number;
|
|
2814
2922
|
/**
|
|
2815
|
-
* Gets
|
|
2923
|
+
* Gets the current y-value as chart data coordinates.
|
|
2816
2924
|
*/
|
|
2817
|
-
|
|
2925
|
+
readonly y: number;
|
|
2818
2926
|
/**
|
|
2819
|
-
* Gets or sets the
|
|
2927
|
+
* Gets or sets the content function that allows you to customize the text content of the LineMarker.
|
|
2820
2928
|
*/
|
|
2821
|
-
|
|
2929
|
+
content: Function;
|
|
2822
2930
|
/**
|
|
2823
|
-
*
|
|
2931
|
+
* Gets or sets the vertical position of the LineMarker relative to the plot area.
|
|
2824
2932
|
*
|
|
2825
|
-
*
|
|
2933
|
+
* Its value range is (0, 1).
|
|
2934
|
+
* If the value is null or undefined and {@link interaction} is set to LineMarkerInteraction.Move
|
|
2935
|
+
* or LineMarkerInteraction.Drag, the vertical position of the LineMarker is calculated automatically based on the pointer's position.
|
|
2826
2936
|
*/
|
|
2827
|
-
|
|
2937
|
+
verticalPosition: number;
|
|
2828
2938
|
/**
|
|
2829
|
-
*
|
|
2939
|
+
* Gets or sets the alignment of the LineMarker content.
|
|
2830
2940
|
*
|
|
2831
|
-
*
|
|
2832
|
-
*
|
|
2833
|
-
*/
|
|
2834
|
-
pointToData(pt: Point): Point;
|
|
2835
|
-
/**
|
|
2836
|
-
* Converts a {@link Point} from series data coordinates to control coordinates.
|
|
2941
|
+
* By default, the LineMarker shows to the right, at the bottom of the target point.
|
|
2942
|
+
* Use '|' to combine alignment values.
|
|
2837
2943
|
*
|
|
2838
|
-
*
|
|
2839
|
-
*
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
*
|
|
2944
|
+
* <pre>
|
|
2945
|
+
* // set the alignment to the left.
|
|
2946
|
+
* marker.alignment = LineMarkerAlignment.Left;
|
|
2947
|
+
* // set the alignment to the left top.
|
|
2948
|
+
* marker.alignment = LineMarkerAlignment.Left | LineMarkerAlignment.Top;
|
|
2949
|
+
* </pre>
|
|
2844
2950
|
*/
|
|
2845
|
-
|
|
2951
|
+
alignment: LineMarkerAlignment;
|
|
2846
2952
|
/**
|
|
2847
|
-
*
|
|
2848
|
-
*
|
|
2849
|
-
* @param engine The {@link IRenderEngine} object used to render the series.
|
|
2850
|
-
* @param index The index of the series to render.
|
|
2851
|
-
* @param count Total number of the series to render.
|
|
2953
|
+
* Gets or sets the visibility of the LineMarker lines.
|
|
2852
2954
|
*/
|
|
2853
|
-
|
|
2955
|
+
lines: LineMarkerLines;
|
|
2854
2956
|
/**
|
|
2855
|
-
*
|
|
2957
|
+
* Gets or sets the interaction mode of the LineMarker.
|
|
2856
2958
|
*/
|
|
2857
|
-
|
|
2959
|
+
interaction: LineMarkerInteraction;
|
|
2858
2960
|
/**
|
|
2859
|
-
*
|
|
2860
|
-
*
|
|
2861
|
-
* @param engine The {@link IRenderEngine} object used to render the series.
|
|
2961
|
+
* Gets or sets the maximum distance from the horizontal or vertical
|
|
2962
|
+
* line that the marker can be dragged.
|
|
2862
2963
|
*/
|
|
2863
|
-
|
|
2864
|
-
_chart: FlexChartCore;
|
|
2865
|
-
_getSymbolSize(): number;
|
|
2866
|
-
_plotter: _IPlotter;
|
|
2867
|
-
getDataType(dim: number): DataType;
|
|
2868
|
-
getValues(dim: number): number[];
|
|
2964
|
+
dragThreshold: number;
|
|
2869
2965
|
/**
|
|
2870
|
-
*
|
|
2871
|
-
*
|
|
2872
|
-
* @param engine The rendering engine to use.
|
|
2873
|
-
* @param rect The position of the legend item.
|
|
2874
|
-
* @param index Index of legend item(for series with multiple legend items).
|
|
2966
|
+
* Gets or sets a value indicating whether the content of the marker
|
|
2967
|
+
* is draggable when the interaction mode is "Drag."
|
|
2875
2968
|
*/
|
|
2876
|
-
|
|
2877
|
-
private _getLegendStyle;
|
|
2969
|
+
dragContent: boolean;
|
|
2878
2970
|
/**
|
|
2879
|
-
*
|
|
2880
|
-
*
|
|
2881
|
-
*
|
|
2882
|
-
* @param index Index of legend item(for series with multiple legend items).
|
|
2971
|
+
* Gets or sets a value indicating whether the lines are linked
|
|
2972
|
+
* when the horizontal or vertical line is dragged when the
|
|
2973
|
+
* interaction mode is "Drag."
|
|
2883
2974
|
*/
|
|
2884
|
-
|
|
2975
|
+
dragLines: boolean;
|
|
2885
2976
|
/**
|
|
2886
|
-
*
|
|
2977
|
+
* Occurs after the {@link LineMarker}'s position changes.
|
|
2887
2978
|
*/
|
|
2888
|
-
|
|
2979
|
+
readonly positionChanged: Event<LineMarker, Point>;
|
|
2889
2980
|
/**
|
|
2890
|
-
*
|
|
2891
|
-
*
|
|
2892
|
-
* If getDataRect() returns null, the limits are calculated automatically based on the data values.
|
|
2981
|
+
* Raises the {@link positionChanged} event.
|
|
2893
2982
|
*
|
|
2894
|
-
* @param
|
|
2895
|
-
* @param calculatedRect The calculated rectangle of chart. This parameter is optional.
|
|
2983
|
+
* @param point The target point at which to show the LineMarker.
|
|
2896
2984
|
*/
|
|
2897
|
-
|
|
2898
|
-
_getChartType(): ChartType;
|
|
2985
|
+
onPositionChanged(point: Point): void;
|
|
2899
2986
|
/**
|
|
2900
|
-
*
|
|
2987
|
+
* Removes the LineMarker from the chart.
|
|
2901
2988
|
*/
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
private
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
private
|
|
2916
|
-
|
|
2917
|
-
private
|
|
2918
|
-
private
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2989
|
+
remove(): void;
|
|
2990
|
+
private _attach;
|
|
2991
|
+
private _attachDrag;
|
|
2992
|
+
private _detach;
|
|
2993
|
+
private _detachDrag;
|
|
2994
|
+
private _toggleDragEventAttach;
|
|
2995
|
+
private _onMousedown;
|
|
2996
|
+
private _onMouseup;
|
|
2997
|
+
_moveMarker(e: any): void;
|
|
2998
|
+
private _calcStackedValue;
|
|
2999
|
+
private _sign;
|
|
3000
|
+
private _getElementPaddingValuee;
|
|
3001
|
+
private _show;
|
|
3002
|
+
private _hide;
|
|
3003
|
+
private _toggleVisibility;
|
|
3004
|
+
private _resetDefaultValue;
|
|
3005
|
+
private _initialize;
|
|
3006
|
+
private _createMarker;
|
|
3007
|
+
private _removeMarker;
|
|
3008
|
+
private _getContainer;
|
|
3009
|
+
private _createContainer;
|
|
3010
|
+
private _createChildren;
|
|
3011
|
+
private _toggleElesDraggableClass;
|
|
3012
|
+
private _updateMarkerSize;
|
|
3013
|
+
private _updateLinesSize;
|
|
3014
|
+
private _resetLinesVisibility;
|
|
3015
|
+
private _updateMarkerPosition;
|
|
3016
|
+
private _updateContent;
|
|
3017
|
+
private _raisePositionChanged;
|
|
3018
|
+
private _updatePositionByAlignment;
|
|
3019
|
+
private _getEventPoint;
|
|
3020
|
+
private _pointInRect;
|
|
3021
|
+
private _getTop;
|
|
2927
3022
|
}
|
|
2928
3023
|
/**
|
|
2929
|
-
*
|
|
2930
|
-
*
|
|
2931
|
-
* The {@link Series} class supports all basic chart types. You may define
|
|
2932
|
-
* a different chart type on each {@link Series} object that you add to the
|
|
2933
|
-
* {@link FlexChart} series collection. This overrides the {@link chartType}
|
|
2934
|
-
* property set on the chart that is the default for all {@link Series} objects
|
|
2935
|
-
* in its collection.
|
|
3024
|
+
* Specifies the axis type.
|
|
2936
3025
|
*/
|
|
2937
|
-
export declare
|
|
2938
|
-
/**
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
* The default value for this property is <b>null</b>, which causes the
|
|
2943
|
-
* series to use chart type defined by the parent chart.
|
|
2944
|
-
*/
|
|
2945
|
-
chartType: ChartType;
|
|
3026
|
+
export declare enum AxisType {
|
|
3027
|
+
/** Category axis (normally horizontal). */
|
|
3028
|
+
X = 0,
|
|
3029
|
+
/** Value axis (normally vertical). */
|
|
3030
|
+
Y = 1
|
|
2946
3031
|
}
|
|
2947
3032
|
/**
|
|
2948
|
-
*
|
|
2949
|
-
* slices.
|
|
2950
|
-
*
|
|
2951
|
-
* To use the {@link FlexPie} control, set the {@link FlexPie.itemsSource} property
|
|
2952
|
-
* to an array containing the data and use the {@link FlexPie.binding} and
|
|
2953
|
-
* {@link FlexPie.bindingName} properties to set the properties that contain
|
|
2954
|
-
* the item values and names.
|
|
3033
|
+
* Specifies how to handle overlapping labels.
|
|
2955
3034
|
*/
|
|
2956
|
-
export declare
|
|
2957
|
-
private static _MARGIN;
|
|
2958
|
-
private static _CSS_GROUP_TITLE;
|
|
2959
|
-
private _binding;
|
|
2960
|
-
private _bindingName;
|
|
2961
|
-
_areas: any[];
|
|
2962
|
-
private _keywords;
|
|
2963
|
-
private _startAngle;
|
|
2964
|
-
private _innerRadius;
|
|
2965
|
-
private _offset;
|
|
2966
|
-
private _reversed;
|
|
2967
|
-
private _isAnimated;
|
|
2968
|
-
private _selectedItemPosition;
|
|
2969
|
-
private _selectedItemOffset;
|
|
2970
|
-
private _pieGroups;
|
|
2971
|
-
_rotationAngles: number[];
|
|
2972
|
-
private _centers;
|
|
2973
|
-
_radius: number;
|
|
2974
|
-
private _selectedOffset;
|
|
2975
|
-
private _selectedIndex;
|
|
2976
|
-
private _angles;
|
|
2977
|
-
private _selectionAnimationID;
|
|
2978
|
-
private _colRowLens;
|
|
2979
|
-
private _lbl;
|
|
2980
|
-
private _titles;
|
|
2981
|
-
private _innerText;
|
|
2982
|
-
private _innerTextStyle;
|
|
2983
|
-
private _chartsPerLine;
|
|
2984
|
-
_values: number[][];
|
|
2985
|
-
_labels: string[];
|
|
2986
|
-
_pels: any[];
|
|
2987
|
-
_sum: number;
|
|
2988
|
-
_sums: number[];
|
|
2989
|
-
_bindingSeparator: string;
|
|
3035
|
+
export declare enum OverlappingLabels {
|
|
2990
3036
|
/**
|
|
2991
|
-
*
|
|
2992
|
-
*
|
|
2993
|
-
* @param element The DOM element that hosts the control, or a selector for the host element (e.g. '#theCtrl').
|
|
2994
|
-
* @param options A Javascript object containing initialization data for the control.
|
|
3037
|
+
* Hide overlapping labels.
|
|
2995
3038
|
*/
|
|
2996
|
-
|
|
3039
|
+
Auto = 0,
|
|
2997
3040
|
/**
|
|
2998
|
-
*
|
|
3041
|
+
* Show all labels, including overlapping ones.
|
|
2999
3042
|
*/
|
|
3000
|
-
|
|
3043
|
+
Show = 1
|
|
3044
|
+
}
|
|
3045
|
+
/**
|
|
3046
|
+
* Axis interface.
|
|
3047
|
+
*/
|
|
3048
|
+
export interface _IAxis {
|
|
3049
|
+
actualMin: number;
|
|
3050
|
+
actualMax: number;
|
|
3051
|
+
convert(val: number): number;
|
|
3052
|
+
}
|
|
3053
|
+
/**
|
|
3054
|
+
* Specifies whether and where the axis tick marks appear.
|
|
3055
|
+
*/
|
|
3056
|
+
export declare enum TickMark {
|
|
3057
|
+
/** No tick marks appear. */
|
|
3058
|
+
None = 0,
|
|
3059
|
+
/** Tick marks appear outside the plot area. */
|
|
3060
|
+
Outside = 1,
|
|
3061
|
+
/** Tick marks appear inside the plot area. */
|
|
3062
|
+
Inside = 2,
|
|
3063
|
+
/** Tick marks cross the axis. */
|
|
3064
|
+
Cross = 3
|
|
3065
|
+
}
|
|
3066
|
+
/**
|
|
3067
|
+
* Axis groups display options.
|
|
3068
|
+
*/
|
|
3069
|
+
export declare enum AxisGroupsDisplay {
|
|
3070
|
+
/** Hide groups */
|
|
3071
|
+
None = 0,
|
|
3072
|
+
/** Default group appearance */
|
|
3073
|
+
Show = 1,
|
|
3074
|
+
/** Show groups as grid */
|
|
3075
|
+
ShowGrid = 2
|
|
3076
|
+
}
|
|
3077
|
+
/**
|
|
3078
|
+
* Provides options for axis groups.
|
|
3079
|
+
*/
|
|
3080
|
+
export interface IAxisGroupsOptions {
|
|
3001
3081
|
/**
|
|
3002
|
-
* Gets or sets the
|
|
3082
|
+
* Gets or sets the options for axis groups display.
|
|
3003
3083
|
*/
|
|
3004
|
-
|
|
3084
|
+
display: AxisGroupsDisplay;
|
|
3085
|
+
}
|
|
3086
|
+
/**
|
|
3087
|
+
* Represents an axis in the chart.
|
|
3088
|
+
*/
|
|
3089
|
+
export declare class Axis implements _IAxis {
|
|
3090
|
+
_GRIDLINE_WIDTH: number;
|
|
3091
|
+
_LINE_WIDTH: number;
|
|
3092
|
+
_TICK_WIDTH: number;
|
|
3093
|
+
_TICK_HEIGHT: number;
|
|
3094
|
+
_TICK_OVERLAP: number;
|
|
3095
|
+
_TICK_LABEL_DISTANCE: number;
|
|
3096
|
+
private static MAX_MAJOR;
|
|
3097
|
+
private static MAX_MINOR;
|
|
3098
|
+
_chart: FlexChartCore;
|
|
3099
|
+
private _type;
|
|
3100
|
+
private _min;
|
|
3101
|
+
private _max;
|
|
3102
|
+
private _position;
|
|
3103
|
+
private _majorUnit;
|
|
3104
|
+
private _minorUnit;
|
|
3105
|
+
private _majorGrid;
|
|
3106
|
+
private _minorGrid;
|
|
3107
|
+
private _title;
|
|
3108
|
+
private _labelStyle;
|
|
3109
|
+
private _reversed;
|
|
3110
|
+
private _format;
|
|
3111
|
+
_actualMin: number;
|
|
3112
|
+
_actualMax: number;
|
|
3113
|
+
_axisType: AxisType;
|
|
3114
|
+
private _majorTickMarks;
|
|
3115
|
+
private _minorTickMarks;
|
|
3116
|
+
private _logBase;
|
|
3117
|
+
private _labels;
|
|
3118
|
+
private _labelAngle;
|
|
3119
|
+
private _labelAlign;
|
|
3120
|
+
private _axisLine;
|
|
3121
|
+
_plotrect: Rect;
|
|
3122
|
+
private _szTitle;
|
|
3123
|
+
_isTimeAxis: boolean;
|
|
3124
|
+
_lbls: string[];
|
|
3125
|
+
_values: number[];
|
|
3126
|
+
private _rects;
|
|
3127
|
+
private _name;
|
|
3128
|
+
private _origin;
|
|
3129
|
+
private _overlap;
|
|
3130
|
+
private _items;
|
|
3131
|
+
private _cv;
|
|
3132
|
+
private _binding;
|
|
3133
|
+
private _ifmt;
|
|
3134
|
+
private _tfmt;
|
|
3135
|
+
private static _id;
|
|
3136
|
+
private __uniqueId;
|
|
3137
|
+
private _parea;
|
|
3138
|
+
private _labelPadding;
|
|
3139
|
+
private _actualLabels;
|
|
3140
|
+
private _labelMin;
|
|
3141
|
+
private _labelMax;
|
|
3142
|
+
private _groupsPanel;
|
|
3143
|
+
private _groupsOptions;
|
|
3144
|
+
_axrect: Rect;
|
|
3145
|
+
_desiredSize: Size;
|
|
3146
|
+
_annoSize: Size;
|
|
3147
|
+
_annoSizeBase: Size;
|
|
3148
|
+
_hasOrigin: boolean;
|
|
3149
|
+
_hostElement: SVGGElement;
|
|
3150
|
+
_vals: any;
|
|
3005
3151
|
/**
|
|
3006
|
-
*
|
|
3007
|
-
*
|
|
3008
|
-
* Angles are measured clockwise, starting at the 9 o'clock position.
|
|
3152
|
+
* Initializes a new instance of the {@link Axis} class.
|
|
3009
3153
|
*
|
|
3010
|
-
* The
|
|
3154
|
+
* @param position The position of the axis on the chart.
|
|
3011
3155
|
*/
|
|
3012
|
-
|
|
3156
|
+
constructor(position?: Position);
|
|
3013
3157
|
/**
|
|
3014
|
-
* Gets
|
|
3015
|
-
*
|
|
3016
|
-
* The offset is measured as a fraction of the pie radius.
|
|
3017
|
-
*
|
|
3018
|
-
* The default value for this property is <b>0</b>.
|
|
3158
|
+
* Gets the axis host element.
|
|
3019
3159
|
*/
|
|
3020
|
-
|
|
3160
|
+
readonly hostElement: SVGGElement;
|
|
3021
3161
|
/**
|
|
3022
|
-
* Gets
|
|
3023
|
-
*
|
|
3024
|
-
* The inner radius is measured as a fraction of the pie radius.
|
|
3025
|
-
*
|
|
3026
|
-
* The default value for this property is zero, which creates
|
|
3027
|
-
* a pie. Setting this property to values greater than zero
|
|
3028
|
-
* creates pies with a hole in the middle, also known as
|
|
3029
|
-
* doughnut charts. The valid range for inner radius is from 0 to 1.
|
|
3162
|
+
* Gets the actual axis minimum.
|
|
3030
3163
|
*
|
|
3031
|
-
*
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
/**
|
|
3035
|
-
* Gets or sets the style of text inside the pie.
|
|
3036
|
-
*/
|
|
3037
|
-
innerTextStyle: any;
|
|
3038
|
-
/**
|
|
3039
|
-
* Gets or sets the text inside the pie (at the pie center).
|
|
3040
|
-
*/
|
|
3041
|
-
innerText: any;
|
|
3164
|
+
* It returns a number or a Date object (for time-based data).
|
|
3165
|
+
*/
|
|
3166
|
+
readonly actualMin: any;
|
|
3042
3167
|
/**
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
*
|
|
3049
|
-
* The default value for this property is <b>false</b>.
|
|
3050
|
-
*/
|
|
3051
|
-
reversed: boolean;
|
|
3168
|
+
* Gets the actual axis maximum.
|
|
3169
|
+
*
|
|
3170
|
+
* It returns a number or a Date object (for time-based data).
|
|
3171
|
+
*/
|
|
3172
|
+
readonly actualMax: any;
|
|
3052
3173
|
/**
|
|
3053
|
-
* Gets or sets the
|
|
3054
|
-
*
|
|
3055
|
-
* Setting this property to a value other than 'None' causes
|
|
3056
|
-
* the pie to rotate when an item is selected.
|
|
3174
|
+
* Gets or sets the minimum value shown on the axis.
|
|
3057
3175
|
*
|
|
3058
|
-
*
|
|
3059
|
-
* you must set the {@link selectionMode} property to 'Point'.
|
|
3176
|
+
* The value can be a number or a Date object (for time-based data).
|
|
3060
3177
|
*
|
|
3061
|
-
* The default value for this property is <b>
|
|
3178
|
+
* The default value for this property is <b>null</b>, which causes
|
|
3179
|
+
* the chart to calculate the minimum value based on the data.
|
|
3062
3180
|
*/
|
|
3063
|
-
|
|
3181
|
+
min: any;
|
|
3064
3182
|
/**
|
|
3065
|
-
* Gets or sets the
|
|
3183
|
+
* Gets or sets the maximum value shown on the axis.
|
|
3066
3184
|
*
|
|
3067
|
-
*
|
|
3185
|
+
* The value can be a number or a Date object (for time-based data).
|
|
3068
3186
|
*
|
|
3069
|
-
* The default value for this property is <b>
|
|
3187
|
+
* The default value for this property is <b>null</b>, which causes
|
|
3188
|
+
* the chart to calculate the maximum value based on the data.
|
|
3070
3189
|
*/
|
|
3071
|
-
|
|
3190
|
+
max: any;
|
|
3072
3191
|
/**
|
|
3073
|
-
* Gets or sets a value indicating whether
|
|
3074
|
-
*
|
|
3075
|
-
* See also the {@link selectedItemPosition} and {@link selectionMode}
|
|
3076
|
-
* properties.
|
|
3192
|
+
* Gets or sets a value indicating whether the axis is
|
|
3193
|
+
* reversed (top to bottom or right to left).
|
|
3077
3194
|
*
|
|
3078
3195
|
* The default value for this property is <b>false</b>.
|
|
3079
3196
|
*/
|
|
3080
|
-
|
|
3197
|
+
reversed: boolean;
|
|
3081
3198
|
/**
|
|
3082
|
-
* Gets the
|
|
3199
|
+
* Gets or sets the position of the axis with respect to the plot area.
|
|
3200
|
+
* TopLeft, TopRight, BottomLeft, BottomRight, LeftTop, LeftBottom, RightTop and RightBottom are not valid for Axis Position. If set it would be changed to default Position of respective axis.
|
|
3201
|
+
* When Position set to X-Axis, None/Top/Bottom would be applicable and if other values are set, it would be change to X-Axis default Position value.
|
|
3202
|
+
* When Position set to Y-Axis, None/Left/Right would be applicable and if other values are set, it would be changed to Y-Axis default Position value.
|
|
3083
3203
|
*/
|
|
3084
|
-
|
|
3204
|
+
position: Position;
|
|
3085
3205
|
/**
|
|
3086
|
-
* Gets or sets the
|
|
3206
|
+
* Gets or sets the number of units between axis labels.
|
|
3207
|
+
*
|
|
3208
|
+
* If the axis contains date values, then the units are
|
|
3209
|
+
* expressed in days.
|
|
3087
3210
|
*/
|
|
3088
|
-
|
|
3211
|
+
majorUnit: number;
|
|
3089
3212
|
/**
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3213
|
+
* Gets or sets the number of units between minor axis ticks.
|
|
3214
|
+
*
|
|
3215
|
+
* If the axis contains date values, then the units are
|
|
3216
|
+
* expressed in days.
|
|
3217
|
+
* If the logBase value is set on the axis, then the minorUnit value would be
|
|
3218
|
+
* increased by the exponential multiple of logBase Value when caculating minor unit values between next major unit values.
|
|
3219
|
+
*/
|
|
3220
|
+
minorUnit: number;
|
|
3093
3221
|
/**
|
|
3094
|
-
* Gets or sets the
|
|
3095
|
-
*
|
|
3096
|
-
* The titles are shown above each pie chart when multiple properties are specified in {@link binding}.
|
|
3097
|
-
* If the property is not set (undefined) the property names are used as pie titles.
|
|
3222
|
+
* Gets or sets the axis name.
|
|
3098
3223
|
*/
|
|
3099
|
-
|
|
3224
|
+
name: string;
|
|
3100
3225
|
/**
|
|
3101
|
-
* Gets or sets the
|
|
3102
|
-
*
|
|
3103
|
-
* The property is used when there are multiple pies. By default,
|
|
3104
|
-
* it's undefined and the control perform layout automatically.
|
|
3226
|
+
* Gets or sets the title text shown next to the axis.
|
|
3105
3227
|
*/
|
|
3106
|
-
|
|
3107
|
-
_getLabelsForLegend(): string[];
|
|
3228
|
+
title: string;
|
|
3108
3229
|
/**
|
|
3109
|
-
* Gets
|
|
3110
|
-
*
|
|
3111
|
-
* @param pt The point to investigate, in window coordinates.
|
|
3112
|
-
* @param y The Y coordinate of the point (if the first parameter is a number).
|
|
3113
|
-
* @param isTooltip Enables hit testing for tooltip.
|
|
3114
|
-
* @return A {@link HitTestInfo} object containing information about the point.
|
|
3230
|
+
* Gets or sets the format string used for the axis labels
|
|
3231
|
+
* (see {@link Globalize}).
|
|
3115
3232
|
*/
|
|
3116
|
-
|
|
3117
|
-
private _hitTestData;
|
|
3118
|
-
private _isSmallSegment;
|
|
3119
|
-
_performBind(): void;
|
|
3120
|
-
_getBindings(): string[];
|
|
3121
|
-
_initData(): void;
|
|
3122
|
-
_getBindData(item: any, values: number[], labels: any, binding: string, bindingName: string): number;
|
|
3123
|
-
_render(engine: IRenderEngine, applyElement?: boolean, bg?: string): void;
|
|
3124
|
-
_prepareRender(): void;
|
|
3125
|
-
_renderChart(engine: IRenderEngine, rect: Rect, applyElement: boolean): void;
|
|
3126
|
-
_layout(eng: IRenderEngine, r: Rect, titles: string[], n: number): Rect[];
|
|
3127
|
-
_getDesiredLegendSize(engine: IRenderEngine, isVertical: boolean, width: number, height: number): Size;
|
|
3128
|
-
_renderLegend(engine: IRenderEngine, pos: Point, areas: any[], isVertical: boolean, width: number, height: number): void;
|
|
3129
|
-
_renderData(engine: IRenderEngine, rect: Rect, i: number, g: any): void;
|
|
3130
|
-
_renderPie(engine: IRenderEngine, gi: number, radius: number, innerRadius: number, startAngle: number, offset: number): void;
|
|
3131
|
-
_getCenter(): Point;
|
|
3132
|
-
_renderSlices(engine: any, values: any, sum: any, gi: number, radius: any, innerRadius: any, startAngle: any, totalSweep: any, offset: any): void;
|
|
3133
|
-
_renderSlice(engine: IRenderEngine, cx: number, cy: number, currentAngle: number, gi: number, idx: number, radius: number, innerRadius: number, startAngle: number, sweep: number, totalSweep: number): void;
|
|
3134
|
-
_getSelectedItemOffset(index: any, angle: any): {
|
|
3135
|
-
x: number;
|
|
3136
|
-
y: number;
|
|
3137
|
-
};
|
|
3138
|
-
_renderInnerText(engine: IRenderEngine): void;
|
|
3139
|
-
_renderLabels(engine: IRenderEngine): void;
|
|
3140
|
-
_drawSlice(engine: IRenderEngine, gi: number, i: number, reversed: boolean, cx: number, cy: number, r: number, irad: number, angle: number, sweep: number): void;
|
|
3141
|
-
_measureLegendItem(engine: IRenderEngine, name: string): Size;
|
|
3142
|
-
_drawLegendItem(engine: IRenderEngine, rect: Rect, i: number, name: string): void;
|
|
3143
|
-
private _getLabelContent;
|
|
3144
|
-
private _select;
|
|
3145
|
-
_highlightCurrent(): void;
|
|
3146
|
-
_highlight(selected: boolean, pointIndex: number, animate?: boolean): void;
|
|
3147
|
-
_animateSelectionAngle(targetAngles: number[], duration: number): void;
|
|
3148
|
-
_getHitTestItem(index: number): any;
|
|
3149
|
-
_getHitTestValue(index: number, gi: number): number;
|
|
3150
|
-
_getHitTestLabel(index: number): string;
|
|
3151
|
-
}
|
|
3152
|
-
export interface _ISegment {
|
|
3153
|
-
center: Point;
|
|
3154
|
-
radius: number;
|
|
3155
|
-
langle: number;
|
|
3156
|
-
angle: number;
|
|
3157
|
-
sweep: number;
|
|
3158
|
-
gi: number;
|
|
3159
|
-
}
|
|
3160
|
-
export declare class _PieSegment implements _IHitArea, _ISegment {
|
|
3161
|
-
private _center;
|
|
3162
|
-
private _angle;
|
|
3163
|
-
private _sweep;
|
|
3164
|
-
private _radius;
|
|
3165
|
-
private _radius2;
|
|
3166
|
-
private _isFull;
|
|
3167
|
-
private _originAngle;
|
|
3168
|
-
private _originSweep;
|
|
3169
|
-
private _startAngle;
|
|
3170
|
-
constructor(center: Point, radius: number, angle: number, sweep: number, startAngle?: number);
|
|
3171
|
-
contains(pt: Point): boolean;
|
|
3172
|
-
distance(pt: Point): number;
|
|
3173
|
-
readonly center: Point;
|
|
3174
|
-
readonly radius: number;
|
|
3175
|
-
readonly langle: number;
|
|
3176
|
-
readonly angle: number;
|
|
3177
|
-
readonly sweep: number;
|
|
3178
|
-
tag: any;
|
|
3179
|
-
ignoreLabel: boolean;
|
|
3180
|
-
gi: number;
|
|
3181
|
-
}
|
|
3182
|
-
export declare class _DonutSegment implements _IHitArea, _ISegment {
|
|
3183
|
-
private _center;
|
|
3184
|
-
private _angle;
|
|
3185
|
-
private _sweep;
|
|
3186
|
-
private _originAngle;
|
|
3187
|
-
private _originSweep;
|
|
3188
|
-
private _radius;
|
|
3189
|
-
private _radius2;
|
|
3190
|
-
private _iradius;
|
|
3191
|
-
private _iradius2;
|
|
3192
|
-
private _isFull;
|
|
3193
|
-
private _startAngle;
|
|
3194
|
-
constructor(center: Point, radius: number, innerRadius: number, angle: number, sweep: number, startAngle?: number);
|
|
3195
|
-
contains(pt: Point): boolean;
|
|
3196
|
-
distance(pt: Point): number;
|
|
3197
|
-
readonly center: Point;
|
|
3198
|
-
readonly radius: number;
|
|
3199
|
-
readonly langle: number;
|
|
3200
|
-
readonly angle: number;
|
|
3201
|
-
readonly sweep: number;
|
|
3202
|
-
readonly innerRadius: number;
|
|
3203
|
-
tag: any;
|
|
3204
|
-
ignoreLabel: boolean;
|
|
3205
|
-
gi: number;
|
|
3206
|
-
}
|
|
3207
|
-
/**
|
|
3208
|
-
* Specifies the direction of the lines shown by the {@link LineMarker}.
|
|
3209
|
-
*/
|
|
3210
|
-
export declare enum LineMarkerLines {
|
|
3211
|
-
/** No lines. */
|
|
3212
|
-
None = 0,
|
|
3213
|
-
/** Vertical line. */
|
|
3214
|
-
Vertical = 1,
|
|
3215
|
-
/** Horizontal line. */
|
|
3216
|
-
Horizontal = 2,
|
|
3217
|
-
/** Vertical and horizontal lines. */
|
|
3218
|
-
Both = 3
|
|
3219
|
-
}
|
|
3220
|
-
/**
|
|
3221
|
-
* Specifies how the {@link LineMarker} interacts with the user.
|
|
3222
|
-
*/
|
|
3223
|
-
export declare enum LineMarkerInteraction {
|
|
3224
|
-
/** No interaction, the user specifies the position by clicking. */
|
|
3225
|
-
None = 0,
|
|
3226
|
-
/** The {@link LineMarker} moves with the pointer. */
|
|
3227
|
-
Move = 1,
|
|
3228
|
-
/** The {@link LineMarker} moves when the user drags the lines. */
|
|
3229
|
-
Drag = 2
|
|
3230
|
-
}
|
|
3231
|
-
/**
|
|
3232
|
-
* Specifies the alignment of the {@link LineMarker}.
|
|
3233
|
-
*/
|
|
3234
|
-
export declare enum LineMarkerAlignment {
|
|
3233
|
+
format: string;
|
|
3235
3234
|
/**
|
|
3236
|
-
*
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
/** The LineMarker aligns to the right of the pointer. */
|
|
3240
|
-
Right = 0,
|
|
3241
|
-
/** The LineMarker aligns to the left of the pointer. */
|
|
3242
|
-
Left = 1,
|
|
3243
|
-
/** The LineMarker aligns to the bottom of the pointer. */
|
|
3244
|
-
Bottom = 4,
|
|
3245
|
-
/** The LineMarker aligns to the top of the pointer. */
|
|
3246
|
-
Top = 6
|
|
3247
|
-
}
|
|
3248
|
-
/**
|
|
3249
|
-
* Represents an extension of the LineMarker for the FlexChart.
|
|
3250
|
-
*
|
|
3251
|
-
* The {@link LineMarker} consists of a text area with content reflecting
|
|
3252
|
-
* data point values, and optional vertical or horizontal lines
|
|
3253
|
-
* (or both for a cross-hair effect) positioned over the plot area.
|
|
3254
|
-
*
|
|
3255
|
-
* It can be static (interaction = None), follow the mouse or touch
|
|
3256
|
-
* position (interaction = Move), or move when the user drags the
|
|
3257
|
-
* line (interaction = Drag).
|
|
3258
|
-
*
|
|
3259
|
-
* For example:
|
|
3260
|
-
* <pre>
|
|
3261
|
-
* // create an interactive marker with a horizontal line and y-value
|
|
3262
|
-
* var lm = new LineMarker($scope.ctx.chart, {
|
|
3263
|
-
* lines: LineMarkerLines.Horizontal,
|
|
3264
|
-
* interaction: LineMarkerInteraction.Move,
|
|
3265
|
-
* alignment : LineMarkerAlignment.Top
|
|
3266
|
-
* });
|
|
3267
|
-
* lm.content = function (ht) {
|
|
3268
|
-
* // show y-value
|
|
3269
|
-
* return lm.y.toFixed(2);
|
|
3270
|
-
* }
|
|
3271
|
-
* </pre>
|
|
3272
|
-
*/
|
|
3273
|
-
export declare class LineMarker {
|
|
3274
|
-
static _CSS_MARKER: string;
|
|
3275
|
-
static _CSS_MARKER_HLINE: string;
|
|
3276
|
-
static _CSS_MARKER_VLINE: string;
|
|
3277
|
-
static _CSS_MARKER_CONTENT: string;
|
|
3278
|
-
static _CSS_MARKER_CONTAINER: string;
|
|
3279
|
-
static _CSS_LINE_DRAGGABLE: string;
|
|
3280
|
-
static _CSS_TOUCH_DISABLED: string;
|
|
3281
|
-
private _chart;
|
|
3282
|
-
private _plot;
|
|
3283
|
-
private _marker;
|
|
3284
|
-
private _markerContainer;
|
|
3285
|
-
private _markerContent;
|
|
3286
|
-
private _dragEle;
|
|
3287
|
-
private _hLine;
|
|
3288
|
-
private _vLine;
|
|
3289
|
-
private _plotRect;
|
|
3290
|
-
private _targetPoint;
|
|
3291
|
-
private _wrapperMoveMarker;
|
|
3292
|
-
private _capturedEle;
|
|
3293
|
-
private _wrapperMousedown;
|
|
3294
|
-
private _wrapperMouseup;
|
|
3295
|
-
private _contentDragStartPoint;
|
|
3296
|
-
private _mouseDownCrossPoint;
|
|
3297
|
-
private _savedPosition;
|
|
3298
|
-
private _isVisible;
|
|
3299
|
-
private _horizontalPosition;
|
|
3300
|
-
private _verticalPosition;
|
|
3301
|
-
private _alignment;
|
|
3302
|
-
private _content;
|
|
3303
|
-
private _seriesIndex;
|
|
3304
|
-
private _lines;
|
|
3305
|
-
private _interaction;
|
|
3306
|
-
private _dragThreshold;
|
|
3307
|
-
private _dragContent;
|
|
3308
|
-
private _dragLines;
|
|
3235
|
+
* Gets or sets a value indicating whether the axis includes grid lines.
|
|
3236
|
+
*/
|
|
3237
|
+
majorGrid: boolean;
|
|
3309
3238
|
/**
|
|
3310
|
-
*
|
|
3239
|
+
* Gets or sets the location of the axis tick marks.
|
|
3240
|
+
*/
|
|
3241
|
+
majorTickMarks: TickMark;
|
|
3242
|
+
/**
|
|
3243
|
+
* Gets or sets a value indicating whether the axis includes minor grid lines.
|
|
3244
|
+
*/
|
|
3245
|
+
minorGrid: boolean;
|
|
3246
|
+
/**
|
|
3247
|
+
* Gets or sets the location of the minor axis tick marks.
|
|
3248
|
+
*/
|
|
3249
|
+
minorTickMarks: TickMark;
|
|
3250
|
+
/**
|
|
3251
|
+
* Gets or sets a value indicating whether the axis line is visible.
|
|
3311
3252
|
*
|
|
3312
|
-
*
|
|
3313
|
-
* @param options A JavaScript object containing initialization data for the control.
|
|
3253
|
+
* The default value for this property is <b>true</b>.
|
|
3314
3254
|
*/
|
|
3315
|
-
|
|
3255
|
+
axisLine: boolean;
|
|
3316
3256
|
/**
|
|
3317
|
-
* Gets
|
|
3257
|
+
* Gets or sets a value indicating whether the axis labels are visible.
|
|
3258
|
+
*
|
|
3259
|
+
* The default value for this property is <b>true</b>.
|
|
3318
3260
|
*/
|
|
3319
|
-
|
|
3261
|
+
labels: boolean;
|
|
3320
3262
|
/**
|
|
3321
|
-
* Gets or sets the
|
|
3263
|
+
* Gets or sets the label alignment.
|
|
3264
|
+
*
|
|
3265
|
+
* By default the labels are centered. The supported values are
|
|
3266
|
+
* 'left' and 'right for the X-axis, 'top' and 'bottom' for the Y-axis.
|
|
3322
3267
|
*/
|
|
3323
|
-
|
|
3268
|
+
labelAlign: string;
|
|
3324
3269
|
/**
|
|
3325
|
-
* Gets or sets the
|
|
3326
|
-
*
|
|
3327
|
-
*
|
|
3270
|
+
* Gets or sets the rotation angle of the axis labels.
|
|
3271
|
+
*
|
|
3272
|
+
* The angle is measured in degrees with valid values
|
|
3273
|
+
* ranging from -90 to 90.
|
|
3328
3274
|
*/
|
|
3329
|
-
|
|
3275
|
+
labelAngle: number;
|
|
3330
3276
|
/**
|
|
3331
|
-
|
|
3277
|
+
* Gets or sets a value that determines whether the minimum axis value should be always labeled.
|
|
3278
|
+
*
|
|
3279
|
+
* The default value for this property is **false**.
|
|
3280
|
+
*/
|
|
3281
|
+
labelMin: boolean;
|
|
3282
|
+
/**
|
|
3283
|
+
* Gets or sets a value that determines whether the maximum axis value should be always labeled.
|
|
3284
|
+
*
|
|
3285
|
+
* The default value for this property is **false**.
|
|
3286
|
+
*/
|
|
3287
|
+
labelMax: boolean;
|
|
3288
|
+
/**
|
|
3289
|
+
* Gets or sets the value at which an axis crosses the perpendicular axis.
|
|
3290
|
+
**/
|
|
3291
|
+
origin: number;
|
|
3292
|
+
/**
|
|
3293
|
+
* Gets or sets a value indicating how to handle overlapping axis labels.
|
|
3332
3294
|
*
|
|
3333
|
-
*
|
|
3334
|
-
* If the value is null or undefined and {@link interaction} is set to
|
|
3335
|
-
* LineMarkerInteraction.Move or LineMarkerInteraction.Drag,
|
|
3336
|
-
* the horizontal position of the marker is calculated automatically based on the
|
|
3337
|
-
* pointer's position.
|
|
3295
|
+
* The default value for this property is <b>OverlappingLabels.Auto</b>.
|
|
3338
3296
|
*/
|
|
3339
|
-
|
|
3297
|
+
overlappingLabels: OverlappingLabels;
|
|
3340
3298
|
/**
|
|
3341
|
-
* Gets the
|
|
3299
|
+
* Gets or sets the items source for the axis labels.
|
|
3300
|
+
*
|
|
3301
|
+
* Names of the properties are specified by the {@link Axis.binding} property.
|
|
3302
|
+
*
|
|
3303
|
+
* For example:
|
|
3304
|
+
*
|
|
3305
|
+
* <pre>
|
|
3306
|
+
* // default value for Axis.binding is 'value,text'
|
|
3307
|
+
* chart.axisX.itemsSource = [ { value:1, text:'one' }, { value:2, text:'two' } ];
|
|
3308
|
+
* </pre>
|
|
3342
3309
|
*/
|
|
3343
|
-
|
|
3310
|
+
itemsSource: any;
|
|
3344
3311
|
/**
|
|
3345
|
-
* Gets the
|
|
3312
|
+
* Gets or sets the comma-separated property names for the
|
|
3313
|
+
* {@link Axis.itemsSource} property to use in axis labels.
|
|
3314
|
+
*
|
|
3315
|
+
* The first name specifies the value on the axis, the second represents the corresponding
|
|
3316
|
+
* axis label. The default value is 'value,text'.
|
|
3346
3317
|
*/
|
|
3347
|
-
|
|
3318
|
+
binding: string;
|
|
3348
3319
|
/**
|
|
3349
|
-
* Gets or sets the
|
|
3320
|
+
* Gets or sets the itemFormatter function for the axis labels.
|
|
3321
|
+
*
|
|
3322
|
+
* If specified, the function takes two parameters:
|
|
3323
|
+
* <ul>
|
|
3324
|
+
* <li><b>render engine</b>: The {@link IRenderEngine} object to be used
|
|
3325
|
+
* in formatting the labels.</li>
|
|
3326
|
+
* <li><b>current label</b>: An object with the following properties:
|
|
3327
|
+
* <ul>
|
|
3328
|
+
* <li><b>value</b>: The value of the axis label to format.</li>
|
|
3329
|
+
* <li><b>text</b>: The text to use in the label.</li>
|
|
3330
|
+
* <li><b>pos</b>: The position in control coordinates at which
|
|
3331
|
+
* the label is to be rendered.</li>
|
|
3332
|
+
* <li><b>cls</b>: The CSS class to be applied to the label.</li>
|
|
3333
|
+
* </ul></li>
|
|
3334
|
+
* </ul>
|
|
3335
|
+
*
|
|
3336
|
+
* The function returns the label parameters of labels for which
|
|
3337
|
+
* properties are modified.
|
|
3338
|
+
*
|
|
3339
|
+
* For example:
|
|
3340
|
+
* <pre>
|
|
3341
|
+
* chart.axisY.itemFormatter = function(engine, label) {
|
|
3342
|
+
* if (label.val > 5){
|
|
3343
|
+
* engine.textFill = 'red'; // red text
|
|
3344
|
+
* label.cls = null; // no default CSS
|
|
3345
|
+
* }
|
|
3346
|
+
* return label;
|
|
3347
|
+
* }
|
|
3348
|
+
* </pre>
|
|
3350
3349
|
*/
|
|
3351
|
-
|
|
3350
|
+
itemFormatter: Function;
|
|
3352
3351
|
/**
|
|
3353
|
-
* Gets or sets the
|
|
3352
|
+
* Gets or sets the logarithmic base of the axis.
|
|
3354
3353
|
*
|
|
3355
|
-
*
|
|
3356
|
-
*
|
|
3357
|
-
*
|
|
3354
|
+
* If the base is not specified the axis uses a linear scale.
|
|
3355
|
+
*
|
|
3356
|
+
* Use the {@link logBase} property to spread data that is clustered
|
|
3357
|
+
* around the origin. This is common in several financial and economic
|
|
3358
|
+
* data sets.
|
|
3359
|
+
*/
|
|
3360
|
+
logBase: number;
|
|
3361
|
+
/**
|
|
3362
|
+
* Gets or sets label groups settings for the axis.
|
|
3363
|
+
*
|
|
3364
|
+
* Label groups are created by modifying the {@link ICollectionView.groupDescriptions}
|
|
3365
|
+
* property of the {@link ICollectionView} object used as an {@link FlexChart.itemsSource}.
|
|
3366
|
+
*
|
|
3367
|
+
* The default value is **null** and the axis label groups are not displayed.
|
|
3368
|
+
*
|
|
3369
|
+
* To display groups you should create groups in collection view and specify the groupsOptions for the axis.
|
|
3370
|
+
*
|
|
3371
|
+
* For example,
|
|
3372
|
+
*
|
|
3373
|
+
* ```typescript
|
|
3374
|
+
* let view = new CollectionView( getData(), {
|
|
3375
|
+
* groupDescriptions: [
|
|
3376
|
+
* new PropertyGroupDescription('category'),
|
|
3377
|
+
* new PropertyGroupDescription('subCategory')]
|
|
3378
|
+
* });
|
|
3379
|
+
* const chart = new FlexChart('#theChart', {
|
|
3380
|
+
* itemsSource: view,
|
|
3381
|
+
* bindingX: 'product',
|
|
3382
|
+
* series: [ { binding:'sales' } ],
|
|
3383
|
+
* axisX: { groupsOptions: { display : AxisGroupsDisplay.Show } },
|
|
3384
|
+
* });
|
|
3385
|
+
* ```
|
|
3386
|
+
*/
|
|
3387
|
+
groupsOptions: IAxisGroupsOptions;
|
|
3388
|
+
/**
|
|
3389
|
+
* Gets the array with actual axis labels.
|
|
3390
|
+
*/
|
|
3391
|
+
readonly axisLabels: string[];
|
|
3392
|
+
_getLogBase(): number;
|
|
3393
|
+
_isLogAxis(): boolean;
|
|
3394
|
+
/**
|
|
3395
|
+
* Gets or sets the plot area for the axis.
|
|
3396
|
+
*/
|
|
3397
|
+
plotArea: PlotArea;
|
|
3398
|
+
/**
|
|
3399
|
+
* Gets or sets the label padding, in pixels.
|
|
3400
|
+
*
|
|
3401
|
+
* The default value for this property is <b>5</b> pixels.
|
|
3402
|
+
*/
|
|
3403
|
+
labelPadding: number;
|
|
3404
|
+
readonly _groupClass: string;
|
|
3405
|
+
/**
|
|
3406
|
+
* Occurs when the axis range changes.
|
|
3407
|
+
*/
|
|
3408
|
+
readonly rangeChanged: Event<Axis, EventArgs>;
|
|
3409
|
+
/**
|
|
3410
|
+
* Raises the {@link rangeChanged} event.
|
|
3358
3411
|
*/
|
|
3359
|
-
|
|
3412
|
+
onRangeChanged(e?: EventArgs): void;
|
|
3413
|
+
_getPosition(): Position;
|
|
3414
|
+
_isOverlapped(engine: IRenderEngine, w: number, lblClass: string, axisType: AxisType): boolean;
|
|
3415
|
+
_actualAngle: number;
|
|
3360
3416
|
/**
|
|
3361
|
-
*
|
|
3362
|
-
*
|
|
3363
|
-
* By default, the LineMarker shows to the right, at the bottom of the target point.
|
|
3364
|
-
* Use '|' to combine alignment values.
|
|
3417
|
+
* Calculates the axis height.
|
|
3365
3418
|
*
|
|
3366
|
-
*
|
|
3367
|
-
*
|
|
3368
|
-
* marker.alignment = LineMarkerAlignment.Left;
|
|
3369
|
-
* // set the alignment to the left top.
|
|
3370
|
-
* marker.alignment = LineMarkerAlignment.Left | LineMarkerAlignment.Top;
|
|
3371
|
-
* </pre>
|
|
3419
|
+
* @param engine Rendering engine.
|
|
3420
|
+
* @param maxw Max width.
|
|
3372
3421
|
*/
|
|
3373
|
-
|
|
3422
|
+
_getHeight(engine: IRenderEngine, maxw: number): number;
|
|
3423
|
+
_updateAutoFormat(delta: number): number;
|
|
3424
|
+
_getActualRange(): number;
|
|
3425
|
+
_updateActualLimitsByChartType(labels: any, min: any, max: any): {
|
|
3426
|
+
min: any;
|
|
3427
|
+
max: any;
|
|
3428
|
+
};
|
|
3374
3429
|
/**
|
|
3375
|
-
*
|
|
3430
|
+
* Update the actual axis limits based on a specified data range.
|
|
3431
|
+
*
|
|
3432
|
+
* @param dataType Data type.
|
|
3433
|
+
* @param dataMin Data minimum.
|
|
3434
|
+
* @param dataMax Data maximum.
|
|
3435
|
+
* @param labels Category labels(category axis).
|
|
3436
|
+
* @param values Values(value axis).
|
|
3376
3437
|
*/
|
|
3377
|
-
|
|
3438
|
+
_updateActualLimits(dataType: DataType, dataMin: number, dataMax: number, labels?: string[], values?: number[]): void;
|
|
3378
3439
|
/**
|
|
3379
|
-
*
|
|
3440
|
+
* Set the axis position.
|
|
3441
|
+
*
|
|
3442
|
+
* @param axisRect Axis rectangle.
|
|
3443
|
+
* @param plotRect Plot area rectangle.
|
|
3380
3444
|
*/
|
|
3381
|
-
|
|
3445
|
+
_layout(axisRect: Rect, plotRect: Rect): void;
|
|
3446
|
+
_hasVisibileSeries(): boolean;
|
|
3447
|
+
_getSeries(): Series;
|
|
3382
3448
|
/**
|
|
3383
|
-
*
|
|
3384
|
-
*
|
|
3449
|
+
* Render the axis.
|
|
3450
|
+
*
|
|
3451
|
+
* @param engine Rendering engine.
|
|
3385
3452
|
*/
|
|
3386
|
-
|
|
3453
|
+
_render(engine: IRenderEngine): void;
|
|
3454
|
+
_renderLineAndTitle(engine: any): void;
|
|
3455
|
+
_renderMinor(engine: any, vals: any, isCategory: any): void;
|
|
3456
|
+
_renderRotatedText(engine: IRenderEngine, val: any, text: string, pos: Point, halign: any, valign: any, center: Point, angle: number, className: string, groupClassName?: string, style?: any): void;
|
|
3457
|
+
_getFormattedItem(engine: IRenderEngine, val: any, text: string, pos: Point, className: string, readOnly?: boolean): {
|
|
3458
|
+
val: any;
|
|
3459
|
+
text: string;
|
|
3460
|
+
pos: Point;
|
|
3461
|
+
cls: string;
|
|
3462
|
+
};
|
|
3463
|
+
_renderLabelsAndTicks(engine: any, index: any, val: any, sval: any, labelAngle: any, tickMarks: any, showLabel: any, t1: any, t2: any): boolean;
|
|
3464
|
+
_xCross(x: number): boolean;
|
|
3465
|
+
_createMinors(engine: IRenderEngine, vals: number[], isVert: boolean, isNear: boolean, isCategory: boolean): void;
|
|
3466
|
+
_createLogarithmicMinors(engine: IRenderEngine, vals: number[], isVert: boolean, isNear: boolean, isCategory: boolean): void;
|
|
3467
|
+
_renderMinors(engine: IRenderEngine, ticks: number[], isVert: boolean, isNear: boolean): void;
|
|
3468
|
+
_renderLabel(engine: IRenderEngine, val: number, text: string, pos: Point, ha: any, va: any, className?: string): boolean;
|
|
3469
|
+
private _renderRotatedLabel;
|
|
3470
|
+
private _getLabelAlign;
|
|
3471
|
+
_addMinMaxLabels(vals: number[], lbls: string[]): void;
|
|
3472
|
+
_customConvert: Function;
|
|
3473
|
+
_customConvertBack: Function;
|
|
3387
3474
|
/**
|
|
3388
|
-
*
|
|
3389
|
-
*
|
|
3475
|
+
* Converts the specified value from data to pixel coordinates.
|
|
3476
|
+
*
|
|
3477
|
+
* @param val The data value to convert.
|
|
3478
|
+
* @param maxValue The max value of the data, it's optional.
|
|
3479
|
+
* @param minValue The min value of the data, it's optional.
|
|
3390
3480
|
*/
|
|
3391
|
-
|
|
3481
|
+
convert(val: number, maxValue?: number, minValue?: number): number;
|
|
3392
3482
|
/**
|
|
3393
|
-
*
|
|
3394
|
-
*
|
|
3395
|
-
*
|
|
3483
|
+
* Converts the specified value from pixel to data coordinates.
|
|
3484
|
+
*
|
|
3485
|
+
* @param val The pixel coordinates to convert back.
|
|
3396
3486
|
*/
|
|
3397
|
-
|
|
3487
|
+
convertBack(val: number): number;
|
|
3398
3488
|
/**
|
|
3399
|
-
*
|
|
3489
|
+
* Gets the axis type.
|
|
3400
3490
|
*/
|
|
3401
|
-
readonly
|
|
3491
|
+
readonly axisType: AxisType;
|
|
3492
|
+
_getMinNum(): number;
|
|
3493
|
+
_getMaxNum(): number;
|
|
3494
|
+
_getTitleSize(): Size;
|
|
3495
|
+
private _invalidate;
|
|
3496
|
+
private _cvCollectionChanged;
|
|
3497
|
+
private _createLabels;
|
|
3498
|
+
private _createLogarithmicLabels;
|
|
3499
|
+
_createTimeLabels(start: number, len: number, vals: number[], lbls: string[]): void;
|
|
3500
|
+
_formatValue(val: number): string;
|
|
3501
|
+
_hitTest(point: Point): any;
|
|
3502
|
+
private _formatAxisValue;
|
|
3503
|
+
private _findFormat;
|
|
3504
|
+
private _calcMajorUnit;
|
|
3505
|
+
private _getAnnoNumber;
|
|
3506
|
+
private _nicePrecision;
|
|
3507
|
+
private _niceTickNumber;
|
|
3508
|
+
_niceNumber(x: number, exp: number, round: boolean): number;
|
|
3509
|
+
readonly _uniqueId: number;
|
|
3510
|
+
}
|
|
3511
|
+
/**
|
|
3512
|
+
* Represents a collection of {@link Axis} objects in a {@link FlexChart} control.
|
|
3513
|
+
*/
|
|
3514
|
+
export declare class AxisCollection extends ObservableArray {
|
|
3402
3515
|
/**
|
|
3403
|
-
*
|
|
3516
|
+
* Gets an axis by name.
|
|
3404
3517
|
*
|
|
3405
|
-
* @param
|
|
3518
|
+
* @param name The name of the axis to look for.
|
|
3519
|
+
* @return The axis object with the specified name, or null if not found.
|
|
3406
3520
|
*/
|
|
3407
|
-
|
|
3521
|
+
getAxis(name: string): Axis;
|
|
3408
3522
|
/**
|
|
3409
|
-
*
|
|
3523
|
+
* Gets the index of an axis by name.
|
|
3524
|
+
*
|
|
3525
|
+
* @param name The name of the axis to look for.
|
|
3526
|
+
* @return The index of the axis with the specified name, or -1 if not found.
|
|
3410
3527
|
*/
|
|
3411
|
-
|
|
3412
|
-
private _attach;
|
|
3413
|
-
private _attachDrag;
|
|
3414
|
-
private _detach;
|
|
3415
|
-
private _detachDrag;
|
|
3416
|
-
private _toggleDragEventAttach;
|
|
3417
|
-
private _onMousedown;
|
|
3418
|
-
private _onMouseup;
|
|
3419
|
-
_moveMarker(e: any): void;
|
|
3420
|
-
private _calcStackedValue;
|
|
3421
|
-
private _sign;
|
|
3422
|
-
private _getElementPaddingValuee;
|
|
3423
|
-
private _show;
|
|
3424
|
-
private _hide;
|
|
3425
|
-
private _toggleVisibility;
|
|
3426
|
-
private _resetDefaultValue;
|
|
3427
|
-
private _initialize;
|
|
3428
|
-
private _createMarker;
|
|
3429
|
-
private _removeMarker;
|
|
3430
|
-
private _getContainer;
|
|
3431
|
-
private _createContainer;
|
|
3432
|
-
private _createChildren;
|
|
3433
|
-
private _toggleElesDraggableClass;
|
|
3434
|
-
private _updateMarkerSize;
|
|
3435
|
-
private _updateLinesSize;
|
|
3436
|
-
private _resetLinesVisibility;
|
|
3437
|
-
private _updateMarkerPosition;
|
|
3438
|
-
private _updateContent;
|
|
3439
|
-
private _raisePositionChanged;
|
|
3440
|
-
private _updatePositionByAlignment;
|
|
3441
|
-
private _getEventPoint;
|
|
3442
|
-
private _pointInRect;
|
|
3443
|
-
private _getTop;
|
|
3528
|
+
indexOf(name: string): number;
|
|
3444
3529
|
}
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
adjustLimits(dataInfo: _DataInfo, plotRect: Rect): Rect;
|
|
3458
|
-
plotSeries(engine: IRenderEngine, ax: _IAxis, ay: _IAxis, series: _ISeries, palette: _IPalette, iser: number, nser: number, customRender?: Function): any;
|
|
3459
|
-
_renderLabels(engine: IRenderEngine, series: SeriesBase, smap: _IHitArea[], chart: FlexChartCore, lblAreas: _RectArea[]): any;
|
|
3460
|
-
_renderLabel(engine: IRenderEngine, map: _IHitArea, dp: _DataPoint, chart: FlexChartCore, lbl: DataLabel, series: SeriesBase, offset: number, lblAreas: _RectArea[]): any;
|
|
3461
|
-
load(): any;
|
|
3462
|
-
unload(): any;
|
|
3530
|
+
export declare class _AxisLabel {
|
|
3531
|
+
private _value;
|
|
3532
|
+
private _label;
|
|
3533
|
+
private _start;
|
|
3534
|
+
private _end;
|
|
3535
|
+
private _rect;
|
|
3536
|
+
constructor(label: string, start: number, length: number);
|
|
3537
|
+
readonly value: number;
|
|
3538
|
+
readonly label: string;
|
|
3539
|
+
readonly start: number;
|
|
3540
|
+
readonly end: number;
|
|
3541
|
+
rect: Rect;
|
|
3463
3542
|
}
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3543
|
+
declare class _AxisGroup {
|
|
3544
|
+
private _labels;
|
|
3545
|
+
private _index;
|
|
3546
|
+
private _size;
|
|
3547
|
+
private _level;
|
|
3548
|
+
private _last;
|
|
3549
|
+
constructor(level: number, last?: boolean);
|
|
3550
|
+
readonly labels: _AxisLabel[];
|
|
3551
|
+
index: number;
|
|
3552
|
+
height: number;
|
|
3553
|
+
width: number;
|
|
3554
|
+
readonly level: number;
|
|
3555
|
+
getSize(engine: IRenderEngine, className?: string, groupClass?: string): Size;
|
|
3556
|
+
render(engine: IRenderEngine, axis: Axis, value: number, className?: string, groupClass?: string): void;
|
|
3557
|
+
hitTest(point: Point): _AxisLabel;
|
|
3558
|
+
private renderLinesX;
|
|
3559
|
+
private renderLinesY;
|
|
3560
|
+
private drawLine;
|
|
3561
|
+
private _trimText;
|
|
3562
|
+
}
|
|
3563
|
+
export declare class _AxisGroups {
|
|
3564
|
+
private _groups;
|
|
3565
|
+
private _axis;
|
|
3566
|
+
private _height;
|
|
3567
|
+
private _margin;
|
|
3568
|
+
constructor(axis: Axis);
|
|
3569
|
+
readonly groups: _AxisGroup[];
|
|
3570
|
+
readonly axis: Axis;
|
|
3571
|
+
createGroups(): void;
|
|
3572
|
+
private createGroup;
|
|
3573
|
+
private layoutGroups;
|
|
3574
|
+
getHeight(engine: IRenderEngine): number;
|
|
3575
|
+
layout(): void;
|
|
3576
|
+
render(engine: IRenderEngine): void;
|
|
3577
|
+
hitTest(point: Point): _AxisLabel;
|
|
3493
3578
|
}
|
|
3494
3579
|
/**
|
|
3495
3580
|
* Area chart plotter.
|