Abstractobject responsible for animations
the default IValueFormatter that has been determined by the chart considering the provided minimum and maximum values, number of digits depends on provided chart-data
palet object used for drawing the description text in the bottom right corner of the chart
Wether to disable scroll while touching the chart. Default to true
If set to true, chart continues to scroll after touch up
Deceleration friction coefficient in [0 ; 1] interval, higher values indicate that speed will decrease slowly, for example if it set to 0, it will stop immediately. value must be < 1.0
if set to true, the marker view is drawn when a value is clicked
Extra offsets to be appended to the viewport
Wether to filter highlights by axis. Default is true
array of Highlight objects that reference the highlighted slices in the chart
Protectedjobstasks to be done after the view is setup
Gesture listener for custom callbacks when making gestures on the chart.
the view that represents the marker
The maximum distance in dp away from an entry causing it to highlight.
AbstractmaxProtectedmobject that holds all data that was originally set for the chart, before it was modified or any filtering algorithms had been applied
the object responsible for representing the description text
ProtectedmFlag that indicates if highlighting per tap (touch) is enabled
palet object for drawing the information text when there are no values in the chart
Protectedmthe legend object containing all data associated with the legend
let the chart know it does not need to compute autoScale (it can used the cached ones)
let the chart know it does not need to compute axis and legends (it can used the cached ones)
text that is displayed when the chart is empty
Protectedoffsetsflag that indicates if offsets calculation has already been done or not
object responsible for rendering the data
object that manages the bounds and drawing constraints of the chart
the object representing the labels on the x-axis
AbstractyReturns the maximum y value of the chart, regardless of zoom or translation.
AbstractyReturns the minimum y value of the chart, regardless of zoom or translation.
Returns a recyclable MPPointF instance. Returns the center polet of the chart (the whole View) in pixels.
Returns a recyclable MPPointF instance. Returns the center of the chart taking offsets under consideration. (returns the center of the content rectangle)
Returns a recyclable MPPointF instance.
Returns the bitmap that represents the chart.
Returns the rectangle that defines the borders of the chart-value surface (into which the actual values are drawn).
Returns the animator responsible for animating chart values.
Sets extra offsets (around the chart view) to be appended to the auto-calculated offsets.
Returns true if there are values to highlight, false if there are no values to highlight. Checks if the highlight array is null, has a length of zero or if the first object is null.
ProtectedlastSets the last highlighted value for the touchlistener.
Returns the Legend object of the chart. This method can be used to get an instance of the legend in order to customize the automatically generated Legend.
Returns true if the chart is empty (meaning it's data object is either null or contains no entries).
Sets the color of the no data text.
Sets the typeface to be used for the no data text.
Returns the maximum x value of the chart, regardless of zoom or translation.
Returns the minimum x value of the chart, regardless of zoom or translation.
returns the current y-max value across all DataSets
returns the current y-min value across all DataSets
Either posts a job immediately if the chart has already setup it's dimensions or adds the job to the execution queue.
Animates the rendering of the chart on the x-axis with the specified animation time. If animate(...) is called, no further calling of invalidate() is necessary to refresh the chart. ANIMATIONS ONLY WORK FOR API LEVEL 11 (Android 3.0.x) AND HIGHER.
Optionaleasing: EasingFunctiona custom easing function to be used on the animation phase
Animates the drawing / rendering of the chart on both x- and y-axis with the specified animation time. If animate(...) is called, no further calling of invalidate() is necessary to refresh the chart. ANIMATIONS ONLY WORK FOR API LEVEL 11 (Android 3.0.x) AND HIGHER.
OptionaleasingX: EasingFunctiona custom easing function to be used on the animation phase
OptionaleasingY: EasingFunctiona custom easing function to be used on the animation phase
Animates the rendering of the chart on the y-axis with the specified animation time. If animate(...) is called, no further calling of invalidate() is necessary to refresh the chart. ANIMATIONS ONLY WORK FOR API LEVEL 11 (Android 3.0.x) AND HIGHER.
Optionaleasing: EasingFunctiona custom easing function to be used on the animation phase
Protected AbstractcalcCalculates the y-min and y-max value and the y-delta and x-delta value
Protected AbstractcalculateCalculates the offsets of the chart to the border depending on the position of an eventual legend or depending on the length of the y-axis and x-axis labels and their position
Optionalforce: booleanClears the chart from all data (sets it to null) and refreshes it (by calling invalidate()).
Removes all DataSets (and thereby Entries) from the chart. Does not set the data object to null. Also refreshes the chart by calling invalidate().
disables intercept touchevents
Clean up references to the native view.
ProtecteddrawProtecteddrawDraws the description text in the bottom right corner of the chart (per default)
Protecteddrawdraws all MarkerViews on the highlighted positions
enables intercept touchevents
Returns all jobs that are scheduled to be executed after onSizeChanged(...).
ProtectedgetReturns the actual position in pixels of the MarkerView for the given Highlight object.
Highlights any y-value at the given x-value in the given DataSet. Provide -1 as the dataSetIndex to undo all highlighting.
The x-value to highlight
The y-value to highlight. Supply NaN for "any"
The dataset index to search in
OptionalcallListener: booleanShould the listener be called for this change
Highlights the values at the given indices in the given DataSets. Provide null or an empty array to undo all highlighting. This should be used to programmatically highlight values. This method will not call the listener.
Protectedinitinitialize all paints and stuff
Initializes properties/listeners of the native view.
AbstractnotifyLets the chart know its underlying data has changed and performs all necessary recalculations. It is crucial that this method is called everytime data is changed dynamically. Not calling this method can lead to crashes or unexpected behaviour.
Called from layout when this view should assign a size and position to each of its children. Derived classes with children should override this method and call layout on each of their children.
Left position, relative to parent
Top position, relative to parent
Right position, relative to parent
Bottom position, relative to parent
RESET PERFORMANCE TRACKING FIELDS
Sets extra offsets (around the chart view) to be appended to the auto-calculated offsets.
ProtectedsetupCalculates the required number of digits for the values that might be drawn in the chart (if enabled), and creates the default-value-formatter
Baseclass of all Chart-Views.