projects/wms-framework/src/lib/datavisualization/series.ts
Line data point class
Properties |
|
Public ActualDependentValue |
Type : any
|
Decorators :
@Dependency(DataPoint.ActualDependentValueProperty)
|
Inherited from
DataPoint
|
Defined in
DataPoint:244
|
Actual dependent value |
Static Readonly ActualDependentValueProperty |
Default value : new DependencyProperty(
'ActualDependentValue',
null,
null
)
|
Inherited from
DataPoint
|
Defined in
DataPoint:158
|
Actual dependent value property |
Public ActualIndependentValue |
Type : any
|
Decorators :
@Dependency(DataPoint.ActualIndependentValueProperty)
|
Inherited from
DataPoint
|
Defined in
DataPoint:252
|
Actual independent value |
Static Readonly ActualIndependentValueProperty |
Default value : new DependencyProperty('ActualIndependentValue', null, null)
|
Inherited from
DataPoint
|
Defined in
DataPoint:169
|
Actual independent value property |
Public DependentValue |
Type : any
|
Decorators :
@Dependency(DataPoint.DependentValueProperty)
|
Inherited from
DataPoint
|
Defined in
DataPoint:260
|
Dependent value |
Static Readonly DependentValueProperty |
Default value : new DependencyProperty(
'DependentValue',
null,
null
)
|
Inherited from
DataPoint
|
Defined in
DataPoint:177
|
Dependent value property |
Public DependentValueStringFormat |
Type : string
|
Decorators :
@Dependency(DataPoint.DependentValueStringFormatProperty)
|
Inherited from
DataPoint
|
Defined in
DataPoint:268
|
Dependent value string format |
Static Readonly DependentValueStringFormatProperty |
Default value : new DependencyProperty('DependentValueStringFormat', null, null)
|
Inherited from
DataPoint
|
Defined in
DataPoint:188
|
Dependent value string format property |
Public FormattedDependentValue |
Type : string
|
Decorators :
@Dependency(DataPoint.DependentValueStringFormatProperty)
|
Inherited from
DataPoint
|
Defined in
DataPoint:276
|
Formatted dependent value |
Static Readonly FormattedDependentValueProperty |
Default value : new DependencyProperty('FormattedDependentValue', null, null)
|
Inherited from
DataPoint
|
Defined in
DataPoint:196
|
Formatted dependent value property |
Public FormattedIndependentValue |
Type : string
|
Decorators :
@Dependency(DataPoint.FormattedIndependentValueProperty)
|
Inherited from
DataPoint
|
Defined in
DataPoint:284
|
Formatted independent value |
Static Readonly FormattedIndependentValueProperty |
Default value : new DependencyProperty('FormattedIndependentValue', null, null)
|
Inherited from
DataPoint
|
Defined in
DataPoint:204
|
Formatted independent value property |
Public IndependentValue |
Type : any
|
Decorators :
@Dependency(DataPoint.IndependentValueProperty)
|
Inherited from
DataPoint
|
Defined in
DataPoint:292
|
Independent value |
Static Readonly IndependentValueProperty |
Default value : new DependencyProperty(
'IndependentValue',
null,
null
)
|
Inherited from
DataPoint
|
Defined in
DataPoint:212
|
Independent value property |
Public IndependentValueStringFormat |
Type : any
|
Decorators :
@Dependency(DataPoint.IndependentValueStringFormatProperty)
|
Inherited from
DataPoint
|
Defined in
DataPoint:300
|
Independent value string format |
Static Readonly IndependentValueStringFormatProperty |
Default value : new DependencyProperty('IndependentValueStringFormatProperty', null, null)
|
Inherited from
DataPoint
|
Defined in
DataPoint:223
|
Independent value string format property |
Protected IsHovered |
Type : boolean
|
Inherited from
DataPoint
|
Defined in
DataPoint:316
|
Is hovered |
Public IsSelectionEnabled |
Type : boolean
|
Decorators :
@Dependency(DataPoint.IsSelectionEnabledProperty)
|
Inherited from
DataPoint
|
Defined in
DataPoint:308
|
Is selection enabled |
Static Readonly IsSelectionEnabledProperty |
Default value : new DependencyProperty(
'IsSelectionEnabledProperty',
null,
null
)
|
Inherited from
DataPoint
|
Defined in
DataPoint:231
|
Is selection enabled property |
import { Control } from '../basecomponentmodel/Control';
import { Dependency } from '../basecomponentmodel/Dependency';
import { DependencyProperty } from '../basecomponentmodel/DependencyProperty';
import { RuntimeStyleInfo } from '../basecomponentmodel/RuntimeStyleInfo';
import { ObservableCollection } from '../baseframework';
import { UnitValue } from '../baseframework/UnitValue';
import { AxisOrientation, IAxisListener, ISeriesHost } from '../models';
import { AxisLocation } from '../models/enums/AxisLocation';
import { IAxis } from '../models/interfaces/IAxis';
import { ISeries } from '../models/interfaces/ISeries';
import { SubscriptionEvent } from '../utils/SubscriptionEvent';
/**
* DataPoint series class
*
* @export
* @class DataPointSeries
* @implements {ISeries}
* @wType System.Windows.Controls.DataVisualization.Charting.DataPointSeries
*/
export class DataPointSeries implements ISeries {
/**
* Legend Items
*
* @type {ObservableCollection<any>}
* @memberof DataPointSeries
* @wIgnore
*/
LegendItems: ObservableCollection<any>;
DataPointStyle: any;
/**
* Legend Item Style
*
* @type {*}
* @memberof DataPointSeries
*/
LegendItemStyle: any = null;
/**
* Items source
*
* @type {unknown}
* @memberof DataPointSeries
*/
ItemsSource: unknown;
/**
* Dependent value path
*
* @type {string}
* @memberof DataPointSeries
*/
DependentValuePath: string = null;
/**
* Independent value path
*
* @type {string}
* @memberof DataPointSeries
*/
IndependentValuePath: string = null;
/**
* Animation sequence
*
* @type {*}
* @memberof DataPointSeries
*/
AnimationSequence: any = null;
/**
* Is selection enabled
*
* @memberof DataPointSeries
*/
IsSelectionEnabled = false;
/**
* Selected item
*
* @type {*}
* @memberof DataPointSeries
*/
SelectedItem: any = null;
/**
* Selection Changed event
*
* @type {SubscriptionEvent<any>}
* @memberof DataPointSeries
*/
SelectionChanged: SubscriptionEvent<any> = new SubscriptionEvent();
/**
* Title
*
* @type {*}
* @memberof DataPointSeries
* @wIgnore
*/
Title: any = '';
}
/**
* Linear series class
*
* @export
* @class LineSeries
* @extends {DataPointSeries}
* @wType System.Windows.Controls.DataVisualization.Charting.LineSeries
*/
export class LineSeries extends DataPointSeries {}
/**
* Bar series class
*
* @export
* @class BarSeries
* @extends {DataPointSeries}
* @implements {ISeries}
* @wType System.Windows.Controls.DataVisualization.Charting.BarSeries
*/
export class BarSeries extends DataPointSeries implements ISeries {
/**
* Legend items
*
* @type {ObservableCollection<any>}
* @memberof BarSeries
* @wIgnore
*/
LegendItems: ObservableCollection<any>;
}
/**
* Data point class
*
* @export
* @class DataPoint
* @wType System.Windows.Controls.DataVisualization.Charting.DataPoint
*/
export class DataPoint {
/**
* Actual dependent value property
*
* @static
* @memberof DataPoint
*/
public static readonly ActualDependentValueProperty = new DependencyProperty(
'ActualDependentValue',
null,
null
);
/**
* Actual independent value property
*
* @static
* @memberof DataPoint
*/
public static readonly ActualIndependentValueProperty =
new DependencyProperty('ActualIndependentValue', null, null);
/**
* Dependent value property
*
* @static
* @memberof DataPoint
*/
public static readonly DependentValueProperty = new DependencyProperty(
'DependentValue',
null,
null
);
/**
* Dependent value string format property
*
* @static
* @memberof DataPoint
*/
public static readonly DependentValueStringFormatProperty =
new DependencyProperty('DependentValueStringFormat', null, null);
/**
* Formatted dependent value property
*
* @static
* @memberof DataPoint
*/
public static readonly FormattedDependentValueProperty =
new DependencyProperty('FormattedDependentValue', null, null);
/**
* Formatted independent value property
*
* @static
* @memberof DataPoint
*/
public static readonly FormattedIndependentValueProperty =
new DependencyProperty('FormattedIndependentValue', null, null);
/**
* Independent value property
*
* @static
* @memberof DataPoint
*/
public static readonly IndependentValueProperty = new DependencyProperty(
'IndependentValue',
null,
null
);
/**
* Independent value string format property
*
* @static
* @memberof DataPoint
*/
public static readonly IndependentValueStringFormatProperty =
new DependencyProperty('IndependentValueStringFormatProperty', null, null);
/**
* Is selection enabled property
*
* @static
* @memberof DataPoint
*/
public static readonly IsSelectionEnabledProperty = new DependencyProperty(
'IsSelectionEnabledProperty',
null,
null
);
/**
* Actual dependent value
*
* @type {*}
* @memberof DataPoint
*/
@Dependency(DataPoint.ActualDependentValueProperty)
public ActualDependentValue: any;
/**
* Actual independent value
*
* @type {*}
* @memberof DataPoint
*/
@Dependency(DataPoint.ActualIndependentValueProperty)
public ActualIndependentValue: any;
/**
* Dependent value
*
* @type {*}
* @memberof DataPoint
*/
@Dependency(DataPoint.DependentValueProperty)
public DependentValue: any;
/**
* Dependent value string format
*
* @type {string}
* @memberof DataPoint
*/
@Dependency(DataPoint.DependentValueStringFormatProperty)
public DependentValueStringFormat: string;
/**
* Formatted dependent value
*
* @type {string}
* @memberof DataPoint
*/
@Dependency(DataPoint.DependentValueStringFormatProperty)
public FormattedDependentValue: string;
/**
* Formatted independent value
*
* @type {string}
* @memberof DataPoint
*/
@Dependency(DataPoint.FormattedIndependentValueProperty)
public FormattedIndependentValue: string;
/**
* Independent value
*
* @type {*}
* @memberof DataPoint
*/
@Dependency(DataPoint.IndependentValueProperty)
public IndependentValue: any;
/**
* Independent value string format
*
* @type {*}
* @memberof DataPoint
*/
@Dependency(DataPoint.IndependentValueStringFormatProperty)
public IndependentValueStringFormat: any;
/**
* Is selection enabled
*
* @type {boolean}
* @memberof DataPoint
*/
@Dependency(DataPoint.IsSelectionEnabledProperty)
public IsSelectionEnabled: boolean;
/**
* Is hovered
*
* @protected
* @type {boolean}
* @memberof DataPoint
*/
protected IsHovered: boolean;
}
/**
* Line data point class
*
* @export
* @class LineDataPoint
* @extends {DataPoint}
* @wType System.Windows.Controls.DataVisualization.Charting.LineDataPoint
*/
export class LineDataPoint extends DataPoint {}
/**
* Column data point class
*
* @export
* @class ColumnDataPoint
* @extends {DataPoint}
* @wType System.Windows.Controls.DataVisualization.Charting.ColumnDataPoint
*/
export class ColumnDataPoint extends DataPoint {}
/**
* Bar data point class
*
* @export
* @class BarDataPoint
* @extends {DataPoint}
* @wType System.Windows.Controls.DataVisualization.Charting.BarDataPoint
*/
export class BarDataPoint extends DataPoint {}
/**
* Column series class
*
* @export
* @class ColumnSeries
* @extends {DataPointSeries}
* @wType System.Windows.Controls.DataVisualization.Charting.ColumnSeries
*/
export class ColumnSeries extends DataPointSeries {}
/**
* Axis class
*
* @export
* @class Axis
* @extends {Control}
* @implements {IAxis}
* @wType System.Windows.Controls.DataVisualization.Charting.Axis
*/
export class Axis extends Control implements IAxis {
/**
* Location property
*
* @static
* @memberof Axis
*/
public static readonly LocationProperty = new DependencyProperty(
'Location',
null,
null
);
/**
* Orientation property
*
* @static
* @memberof Axis
*/
public static readonly OrientationProperty = new DependencyProperty(
'OrientationProperty',
null,
null
);
/**
* Location
*
* @type {AxisLocation}
* @memberof Axis
*/
@Dependency(Axis.LocationProperty)
Location: AxisLocation;
/**
* Orientation
*
* @type {AxisOrientation}
* @memberof Axis
*/
@Dependency(Axis.OrientationProperty)
Orientation: AxisOrientation;
/**
* Dependent axes
*
* @type {ObservableCollection<IAxis>}
* @memberof Axis
*/
DependentAxes: ObservableCollection<IAxis> =
new ObservableCollection<IAxis>();
/**
* Registered Listeners
*
* @type {ObservableCollection<IAxisListener>}
* @memberof Axis
*/
RegisteredListeners: ObservableCollection<IAxisListener> =
new ObservableCollection<IAxisListener>();
/**
* Orientation changed
*
* @memberof Axis
*/
OrientationChanged: SubscriptionEvent<(a1: any, a2: any) => void>;
/**
* Can plot method
*
* @param {*} valye
* @return {*} {boolean}
* @memberof Axis
* @wNoMap
*/
CanPlot(valye: any): boolean {
throw new Error('Method not implemented.');
}
/**
* Get plot area coordinate
*
* @param {*} value
* @return {*} {UnitValue}
* @memberof Axis
* @wNoMap
*/
GetPlotAreaCoordinate(value: any): UnitValue {
throw new Error('Method not implemented.');
}
}
/**
* Display Axis class
*
* @export
* @class DisplayAxis
* @extends {Axis}
* @wType System.Windows.Controls.DataVisualization.Charting.DisplayAxis
*/
export class DisplayAxis extends Axis {
/**
* Axis label style property
*
* @static
* @memberof DisplayAxis
*/
public static readonly AxisLabelStyleProperty = new DependencyProperty(
'AxisLabelStyle',
null,
null
);
/**
* Grid line style property
*
* @static
* @memberof DisplayAxis
*/
public static readonly GridLineStyleProperty = new DependencyProperty(
'GridLineStyle',
null,
null
);
/**
* Major tick mark style property
*
* @static
* @memberof DisplayAxis
*/
public static readonly MajorTickMarkStyleProperty = new DependencyProperty(
'MajorTickMarkStyle',
null,
null
);
/**
* Show gridlines property
*
* @static
* @memberof DisplayAxis
*/
public static readonly ShowGridLinesProperty = new DependencyProperty(
'ShowGridLines',
null,
null
);
/**
* Tile property
*
* @static
* @memberof DisplayAxis
*/
public static readonly TitleProperty = new DependencyProperty(
'Title',
null,
null
);
/**
* Title style property
*
* @static
* @memberof DisplayAxis
*/
public static readonly TitleStyleProperty = new DependencyProperty(
'TitleStyle',
null,
null
);
/**
* Axis label style
*
* @type {RuntimeStyleInfo}
* @memberof DisplayAxis
*/
@Dependency(DisplayAxis.AxisLabelStyleProperty)
AxisLabelStyle: RuntimeStyleInfo;
/**
* Grid line style
*
* @type {RuntimeStyleInfo}
* @memberof DisplayAxis
*/
@Dependency(DisplayAxis.GridLineStyleProperty)
GridLineStyle: RuntimeStyleInfo;
/**
* Major tick mark style
*
* @type {RuntimeStyleInfo}
* @memberof DisplayAxis
*/
@Dependency(DisplayAxis.MajorTickMarkStyleProperty)
MajorTickMarkStyle: RuntimeStyleInfo;
/**
* Show grid lines
*
* @type {boolean}
* @memberof DisplayAxis
*/
@Dependency(DisplayAxis.ShowGridLinesProperty)
ShowGridLines: boolean;
/**
* Title
*
* @type {*}
* @memberof DisplayAxis
*/
@Dependency(DisplayAxis.TitleProperty)
Title: any;
/**
* Title style
*
* @type {RuntimeStyleInfo}
* @memberof DisplayAxis
*/
@Dependency(DisplayAxis.TitleStyleProperty)
TitleStyle: RuntimeStyleInfo;
/**
* Actual lenght
*
* @type {number}
* @memberof DisplayAxis
*/
ActualLength: number;
/**
* Series host
*
* @type {ISeriesHost}
* @memberof DisplayAxis
*/
SeriesHost: ISeriesHost;
/**
* Axis grid name
*
* @memberof DisplayAxis
*/
AxisGridName = 'AxisGrid';
/**
* Axis title name
*
* @memberof DisplayAxis
*/
AxisTitleName = 'AxisTitle';
/**
* Maximum axis inter per 2000 pixels
*
* @memberof DisplayAxis
*/
MaximumAxisIntervalsPer200Pixels = 8;
/**
* Orientation
*
* @type {AxisOrientation}
* @memberof DisplayAxis
* @wIgnore
*/
Orientation: AxisOrientation;
/**
* Orientation changed
*
* @memberof DisplayAxis
* @wIgnore
*/
OrientationChanged: SubscriptionEvent<(a1: any, a2: any) => void>;
/**
* Can plot
*
* @param {*} valye
* @return {*} {boolean}
* @memberof DisplayAxis
* @wIgnore
*/
CanPlot(valye: any): boolean {
throw new Error('Method not implemented.');
}
/**
* Get plot area coordinate
*
* @param {*} value
* @return {*} {UnitValue}
* @memberof DisplayAxis
* @wIgnore
*/
GetPlotAreaCoordinate(value: any): UnitValue {
throw new Error('Method not implemented.');
}
}
/**
* Range axis class
*
* @export
* @class RangeAxis
* @extends {DisplayAxis}
* @wType System.Windows.Controls.DataVisualization.Charting.RangeAxis
*/
export class RangeAxis extends DisplayAxis {
/**
* Minor tick mark style property
*
* @static
* @memberof RangeAxis
*/
public static readonly MinorTickMarkStyleProperty = new DependencyProperty(
'MinorTickMarkStyle',
null,
null
);
/**
* Minor tick mark style property
*
* @type {RuntimeStyleInfo}
* @memberof RangeAxis
*/
@Dependency(RangeAxis.MinorTickMarkStyleProperty)
MinorTickMarkStyle: RuntimeStyleInfo;
/**
* Actual range
*
* @type {*}
* @memberof RangeAxis
*/
ActualRange: any;
/**
* Origin
*
* @type {*}
* @memberof RangeAxis
*/
Origin: any;
/**
* Protected Maximum
*
* @type {*}
* @memberof RangeAxis
*/
ProtectedMaximum: any;
/**
* Protected Minimum
*
* @type {*}
* @memberof RangeAxis
*/
ProtectedMinimum: any;
}
/**
* Numeric Axis class
*
* @export
* @class NumericAxis
* @extends {RangeAxis}
* @wType System.Windows.Controls.DataVisualization.Charting.NumericAxis
*/
export class NumericAxis extends RangeAxis {
/**
* Actual maximum property
*
* @static
* @memberof NumericAxis
*/
public static readonly ActualMaximumProperty = new DependencyProperty(
'ActualMaximum',
null,
null
);
/**
* Actual minimum property
*
* @static
* @memberof NumericAxis
*/
public static readonly ActualMinimumProperty = new DependencyProperty(
'ActualMinimum',
null,
null
);
/**
* Extended range to origin property
*
* @static
* @memberof NumericAxis
*/
public static readonly ExtendRangeToOriginProperty = new DependencyProperty(
'ExtendRangeToOrigin',
null,
null
);
/**
* Maximum property
*
* @static
* @memberof NumericAxis
*/
public static readonly MaximumProperty = new DependencyProperty(
'Maximum',
null,
null
);
/**
* Minimum property
*
* @static
* @memberof NumericAxis
*/
public static readonly MinimumProperty = new DependencyProperty(
'Minimum',
null,
null
);
/**
* Actual maximum
*
* @type {number}
* @memberof NumericAxis
*/
@Dependency(NumericAxis.ActualMaximumProperty)
ActualMaximum: number;
/**
* Actual minimum
*
* @type {number}
* @memberof NumericAxis
*/
@Dependency(NumericAxis.ActualMinimumProperty)
ActualMinimum: number;
/**
*Extended range to origin
*
* @type {boolean}
* @memberof NumericAxis
*/
@Dependency(NumericAxis.ExtendRangeToOriginProperty)
ExtendRangeToOrigin: boolean;
/**
* Maximum
*
* @type {number}
* @memberof NumericAxis
*/
@Dependency(NumericAxis.MaximumProperty)
Maximum: number;
/**
* Minimum
*
* @type {number}
* @memberof NumericAxis
*/
@Dependency(NumericAxis.MinimumProperty)
Minimum: number;
}
/**
* Category axis class
*
* @export
* @class CategoryAxis
* @extends {DisplayAxis}
* @wType System.Windows.Controls.DataVisualization.Charting.CategoryAxis
*/
export class CategoryAxis extends DisplayAxis {}
/**
* Linear axis class
*
* @export
* @class LinearAxis
* @extends {NumericAxis}
* @wType System.Windows.Controls.DataVisualization.Charting.LinearAxis
*/
export class LinearAxis extends NumericAxis {
/**
* Actual interval property
*
* @static
* @memberof LinearAxis
*/
public static readonly ActualIntervalProperty = new DependencyProperty(
'ActualInterval',
null,
null
);
/**
* Interval property
*
* @static
* @memberof LinearAxis
*/
public static readonly IntervalProperty = new DependencyProperty(
'Interval',
null,
null
);
/**
* Actual interval
*
* @type {number}
* @memberof LinearAxis
*/
@Dependency(LinearAxis.ActualIntervalProperty)
ActualInterval: number;
/**
* Interval
*
* @type {number}
* @memberof LinearAxis
*/
@Dependency(LinearAxis.IntervalProperty)
Interval: number;
/**
* Actual double range
*
* @type {*}
* @memberof LinearAxis
*/
ActualDoubleRange: any;
}
/**
* DateTimeAxis class
*
* @export
* @class DateTimeAxis
* @extends {RangeAxis}
* @wType System.Windows.Controls.DataVisualization.Charting.DateTimeAxis
*/
export class DateTimeAxis extends RangeAxis {
/**
* Actual interval property
*
* @static
* @memberof DateTimeAxis
*/
public static readonly ActualIntervalProperty = new DependencyProperty(
'ActualInterval',
null,
null
);
/**
* Actual maximum property
*
* @static
* @memberof DateTimeAxis
*/
public static readonly ActualMaximumProperty = new DependencyProperty(
'ActualMaximum',
null,
null
);
/**
* Actual minimum property
*
* @static
* @memberof DateTimeAxis
*/
public static readonly ActualMinimumProperty = new DependencyProperty(
'ActualMinimum',
null,
null
);
/**
* Interval property
*
* @static
* @memberof DateTimeAxis
*/
public static readonly IntervalProperty = new DependencyProperty(
'Interval',
null,
null
);
/**
* Interval type property
*
* @static
* @memberof DateTimeAxis
*/
public static readonly IntervalTypeProperty = new DependencyProperty(
'IntervalType',
null,
null
);
/**
* Extended range to origin property
*
* @static
* @memberof DateTimeAxis
* @wIgnore
*/
public static readonly ExtendRangeToOriginProperty = new DependencyProperty(
'ExtendRangeToOrigin',
null,
null
);
/**
* Maximum property
*
* @static
* @memberof DateTimeAxis
*/
public static readonly MaximumProperty = new DependencyProperty(
'Maximum',
null,
null
);
/**
* Minimum property
*
* @static
* @memberof DateTimeAxis
*/
public static readonly MinimumProperty = new DependencyProperty(
'Minimum',
null,
null
);
/**
* Actual interval
*
* @type {number}
* @memberof DateTimeAxis
*/
@Dependency(DateTimeAxis.ActualIntervalProperty)
ActualInterval: number;
/**
* Actual maximum
*
* @type {Date}
* @memberof DateTimeAxis
*/
@Dependency(DateTimeAxis.ActualMaximumProperty)
ActualMaximum: Date;
/**
* Actual minimum
*
* @type {Date}
* @memberof DateTimeAxis
*/
@Dependency(DateTimeAxis.ActualMinimumProperty)
ActualMinimum: Date;
/**
* Interval
*
* @type {number}
* @memberof DateTimeAxis
*/
@Dependency(DateTimeAxis.IntervalProperty)
Interval: number;
/**
* Interval type
*
* @type {Date}
* @memberof DateTimeAxis
*/
@Dependency(DateTimeAxis.IntervalTypeProperty)
IntervalType: Date;
/**
* Maximum
*
* @type {Date}
* @memberof DateTimeAxis
*/
@Dependency(DateTimeAxis.MaximumProperty)
Maximum: Date;
/**
* Minimum
*
* @type {Date}
* @memberof DateTimeAxis
*/
@Dependency(DateTimeAxis.MinimumProperty)
Minimum: Date;
}