Skip to main content

FibonacciCirclesAnnotation

FibonacciCirclesAnnotationšŸ“˜ draws concentric Fibonacci circles or ovals from two placed points. The points are opposite corners of the rectangle that contains the threshold 1 oval; every other threshold scales that oval from the same center.

sciChartSurface.annotations.add(
new FibonacciCirclesAnnotation({
// The two points are opposite corners of the threshold 1 oval.
points: [
{ x: 4, y: 4 },
{ x: 6, y: 6 },
],
thresholds: [
0, 0.618, 1, 1.618, 2.618, 3.618, 4.236
],
regionColors: [
"rgb(223,72,76)", // used for both strokes & fills of this annotation
"rgb(231,147,46)",
"rgb(68,151,130)",
"rgb(128,128,128)",
"rgb(214,56,101)",
"rgb(56,97,246)",
],
fillOpacity: 0.20,
strokeThickness: 2,
fibonacciLabelPlacement: EFibonacciLabelPlacement.Top,
// fibonacciLabelColorMode: EFibonacciLabelColorMode.SingleColor,
// fibonacciLabelColor: "#000000", // only important if `fibonacciLabelColorMode` is `Single`
fibonacciLabelLinePadding: 0,
formatFibonacciLabel: ({ thresholdLabel }) => thresholdLabel + "%",
isEditable: true,
gripVisibility: EAnnotationVisibilityMode.Always
})
);

Use this variant when the key relationship is distance around a central consolidation or swing. The shared thresholdsšŸ“˜, regionColorsšŸ“˜, fillOpacityšŸ“˜ and Fibonacci label properties are inherited from FibonacciAnnotationBase.

See Also​