CFXCompactFormulas Class Reference
Inherits from | |
Conforms to | |
Framework | |
Availability |
Available in iOS 5.0 and later.
|
Companion guide | |
Declared in |
ChartFX.h
|
Overview
Provides developers with access to the compacting features.
Properties
average
Returns the average points set by the compactedBy property.
Discussion
For example, if you want to compact data based on the average for a chart containing 1000 points and the CompactedBy property has a value of 2, the resulting plotted data will consist of 500 points. Each point in the new data will be the result of the average value of two adjacent datapoints from the original dataset.
Declared In
ChartFX.h
first
Returns the first points set by the compactedBy property.
Discussion
For example, if you want to compact data based on the first for a chart containing 1000 points and the CompactedBy property has a value of 2, the resulting plotted data will consist of 500 points. Each point in the new data will be the result of the first value of two adjacent datapoints from the original dataset.
Declared In
ChartFX.h
hiLowClose
Returns the high, low, and close points set by the compactedBy property.
Discussion
This is particularly useful when you want to compact data for a HighLowClose Chart.
For example, if you want to compact data based on the high, low, and close of a chart containing 1000 points and the CompactedBy property has a value of 2, the resulting plotted data will consist of 500 points. Each point in the new data will be the result of the high, low, and close values of two adjacent datapoints from the original dataset.
Declared In
ChartFX.h
last
Returns the last points set by the compactedBy property.
Discussion
For example, if you want to compact data based on the last for a chart containing 1000 points and the CompactedBy property has a value of 2, the resulting plotted data will consist of 500 points. Each point in the new data will be the result of the last value of two adjacent datapoints from the original dataset.
Declared In
ChartFX.h
max
Returns the max points set by the compactedBy property.
Discussion
For example, if you want to compact data based on the max for a chart containing 1000 points and the CompactedBy property has a value of 2, the resulting plotted data will consist of 500 points. Each point in the new data will be the result of the maximum value of two adjacent datapoints from the original dataset.
Declared In
ChartFX.h
min
Returns the min points set by the compactedBy property.
Discussion
For example, if you want to compact data based on the min for a chart containing 1000 points and the CompactedBy property has a value of 2, the resulting plotted data will consist of 500 points. Each point in the new data will be the result of the minimum value of two adjacent datapoints from the original dataset.
Declared In
ChartFX.h
openHiLowClose
Returns the open, high, low, and close points set by the compactedBy property.
Discussion
This is particularly useful when you want to compact data for a OpenHighLowClose Chart.
For example, if you want to compact data based on the open, high, low, and close of a chart containing 1000 points and the CompactedBy property has a value of 2, the resulting plotted data will consist of 500 points. Each point in the new data will be the result of the open, high, low, and close values of two adjacent datapoints from the original dataset.
Declared In
ChartFX.h