ASP.NET MVC Controls
Fibonacci Class
File
wijmo.chart.finance.analytics.js
Module
wijmo.chart.finance.analytics
Base Class
SeriesBase

Represents a Fibonacci Retracements tool for the FinancialChart. The tool enables the calculation and plotting of various alert levels that are useful in financial charts.

To add Fibonacci tool to a FinancialChart control, create an instance of the Fibonacci and add it to the series collection of the chart. For example:

// create chart
var chart = new wijmo.chart.finance.FinancialChart('#chartElement');

// create Fibonacci tool
var ftool = new wijmo.chart.finance.analytics.Fibonacci();
chart.series.push(ftool);

Constructor

Properties

Methods

Events

Constructor

constructor

constructor(options?): Fibonacci

Initializes a new instance of the Fibonacci class.

Parameters
Returns
Fibonacci

Properties

altStyle

Gets or sets the alternative style for the series. The values from this property will be used for negative values in Bar, Column, and Scatter charts; and for rising values in financial chart types like Candlestick, LineBreak, EquiVolume etc.

If no value is provided, the default styles will be used.

Inherited From
SeriesBase
Type
any

axisX

Gets or sets the x-axis for the series.

Inherited From
SeriesBase
Type
Axis

axisY

Gets or sets the y-axis for the series.

Inherited From
SeriesBase
Type
Axis

binding

Gets or sets the name of the property that contains Y values for the series.

Inherited From
SeriesBase
Type
string

bindingX

Gets or sets the name of the property that contains X values for the series.

Inherited From
SeriesBase
Type
string

chart

Gets the FlexChart object that owns this series.

Inherited From
SeriesBase
Type
FlexChartCore

collectionView

Gets the ICollectionView object that contains the data for this series.

Inherited From
SeriesBase
Type
ICollectionView

cssClass

Gets or sets the series CSS class.

Inherited From
SeriesBase
Type
string

high

Gets or sets the high value of Fibonacci tool.

If not specified, the high value is caclulated based on data values provided by the itemsSource.

Type
number

hostElement

Gets the series host element.

Inherited From
SeriesBase
Type
SVGGElement

itemsSource

Gets or sets the array or ICollectionView object that contains the series data.

Inherited From
SeriesBase
Type
any

labelPosition

Gets or sets the label position for levels in Fibonacci tool.

Type
LabelPosition

legendElement

Gets the series element in the legend.

Inherited From
SeriesBase
Type
SVGGElement

levels

Gets or sets the array of levels for plotting.

Default value is [0, 23.6, 38.2, 50, 61.8, 100].

Type
number[]

low

Gets or sets the low value of Fibonacci tool.

If not specified, the low value is calculated based on data values provided by itemsSource.

Type
number

maxX

Gets or sets the x maximum value of the Fibonacci tool.

If not specified, current maximum of x-axis is used. The value can be specified as a number or Date object.

Type
any

minX

Gets or sets the x minimal value of the Fibonacci tool.

If not specified, current minimum of x-axis is used. The value can be specified as a number or Date object.

Type
any

name

Gets or sets the series name.

The series name is displayed in the chart legend. Any series without a name does not appear in the legend.

Inherited From
SeriesBase
Type
string

style

Gets or sets the series style.

Inherited From
SeriesBase
Type
any

symbolMarker

Gets or sets the shape of marker to use for each data point in the series. Applies to Scatter, LineSymbols, and SplineSymbols chart types.

Inherited From
SeriesBase
Type
Marker

symbolSize

Gets or sets the size(in pixels) of the symbols used to render this Series. Applies to Scatter, LineSymbols, and SplineSymbols chart types.

Inherited From
SeriesBase
Type
number

symbolStyle

Gets or sets the series symbol style. Applies to Scatter, LineSymbols, and SplineSymbols chart types.

Inherited From
SeriesBase
Type
any

uptrend

Gets or sets a value indicating whether to create uptrending Fibonacci tool.

Default value is true(uptrend). If the value is false, the downtrending levels are plotted.

Type
boolean

visibility

Gets or sets an enumerated value indicating whether and where the series appears.

Inherited From
SeriesBase
Type
SeriesVisibility

Methods

drawLegendItem

drawLegendItem(engine: IRenderEngine, rect: Rect, index: number): void

Draw a legend item at the specified position.

Parameters
  • engine: IRenderEngine

    The rendering engine to use.

  • rect: Rect

    The position of the legend item.

  • index: number

    Index of legend item(for series with multiple legend items).

Inherited From
SeriesBase
Returns
void

getDataRect

getDataRect(currentRect?: Rect, calculatedRect?: Rect): Rect

Returns series bounding rectangle in data coordinates.

If getDataRect() returns null, the limits are calculated automatically based on the data values.

Parameters
  • currentRect: Rect Optional

    The current rectangle of chart. This parameter is optional.

  • calculatedRect: Rect Optional

    The calculated rectangle of chart. This parameter is optional.

Inherited From
SeriesBase
Returns
Rect

getPlotElement

getPlotElement(pointIndex: number): any

Gets the plot element that corresponds to the specified point index.

Parameters
  • pointIndex: number

    The index of the data point.

Inherited From
SeriesBase
Returns
any

hitTest

hitTest(pt: any, y?: number): HitTestInfo

Gets a HitTestInfo object with information about the specified point.

Parameters
  • pt: any

    The point to investigate, in window coordinates.

  • y: number Optional

    The Y coordinate of the point (if the first parameter is a number).

Inherited From
SeriesBase
Returns
HitTestInfo

legendItemLength

legendItemLength(): number

Returns number of series items in the legend.

Inherited From
SeriesBase
Returns
number

measureLegendItem

measureLegendItem(engine: IRenderEngine, index: number): Size

Measures height and width of the legend item.

Parameters
  • engine: IRenderEngine

    The rendering engine to use.

  • index: number

    Index of legend item(for series with multiple legend items).

Inherited From
SeriesBase
Returns
Size

onRendered

onRendered(engine: IRenderEngine): void

Raises the rendered event.

Parameters
Inherited From
SeriesBase
Returns
void

onRendering

onRendering(engine: IRenderEngine, index: number, count: number): boolean

Raises the rendering event.

Parameters
Inherited From
SeriesBase
Returns
boolean

Events

rendered

Occurs when series is rendered.

Inherited From
SeriesBase
Arguments
IRenderEngine

rendering

Occurs when series is rendering.

Inherited From
SeriesBase
Arguments
EventArgs

 

 


Copyright © GrapeCity, inc. All rights reserved.

Product Support Forum |  Documentation Feedback