package

com.shinobicontrols.charts

A high-performance charting framework for the Android platform.

Add a ChartView or ChartFragment to your app either in XML or programmatically. Retrieve it in code and obtain a ShinobiChart from it using the getShinobiChart() method. From here you can add axes and series to your chart, and data to your series via a DataAdapter. You can also customize the visual style of the various chart components by modifying their style object.

For more information, see the User Guide supplied with the download bundle (index.html in the docs folder).

Interfaces

Animation.Listener<T> Provides a means of being informed about changes to the progress value of an Animation
AnimationRunner.Listener<T> Provides a means of being informed about certain events during the course of an Animation
Axis.OnRangeChangeListener Interface definition for a callback to be invoked when the axis range changes  
Data<Tx, Ty> Defines a data point for a Series on a chart. 
DataAdapter.OnDataChangedListener Callback interface for listening to changes in the data held by a DataAdapter
DataValueInterpolator<Tx, Ty> Responsible for providing a modified copy of a given List of Data items. 
Evaluator<T> Maps a proportion of an animated quantity to an appropriate value. 
MultiValueData<T> Defines a data point that can be used with OHLC, Candlestick or Band series. 
SelectableData Defines a data point that can have a selection state set before it is loaded into the chart. 
SeriesAnimationCreator<T, U> Defines how to create entry and exit Animations for a Series
SeriesAnimator.Listener Provides an opportunity to be notified at the beginning and end of the Animation that is run as a result of any operation performed by the SeriesAnimator, such as the adding, removing, hiding and showing of a Series
SeriesStyleProvider<T extends SeriesStyle> Provides a concrete SeriesStyle implementation based on the properties of a given Data and Series, allowing individual point styling of a Series
ShinobiChart Displays data arranged in either CartesianSeries or PieDonutSeries
ShinobiChart.OnAxisMotionStateChangeListener Interface definition for a callback to be invoked when the motion state of an axis changes  
ShinobiChart.OnAxisRangeChangeListener This interface is deprecated. as of version 1.10.0, replaced by Axis.OnRangeChangeListener  
ShinobiChart.OnCrosshairActivationStateChangedListener Interface definition for a callback to be invoked when the Crosshair activation state changes. 
ShinobiChart.OnCrosshairDrawListener Interface definition for a callback to be invoked when a crosshair is about to be drawn. 
ShinobiChart.OnGestureListener Interface definition for callbacks to be invoked when the user makes touch gestures. 
ShinobiChart.OnInternalLayoutListener Interface definition for a callback to be invoked when the internal layout of the chart is complete  
ShinobiChart.OnPieDonutSliceLabelDrawListener Interface definition for a callback to be invoked when a pie or donut series label is about to be drawn. 
ShinobiChart.OnPieDonutSliceUpdateListener Interface definition for a callback to be invoked after a pie or donut slice has been created. 
ShinobiChart.OnSeriesAnimationListener This interface is deprecated. as of version 1.9.1, replaced by AnimationRunner.Listener when running animations with the AnimationRunner or SeriesAnimator.Listener when running animations with the SeriesAnimator  
ShinobiChart.OnSeriesSelectionListener Interface definition for a callback to be invoked when a series or point is selected or deselected. 
ShinobiChart.OnSnapshotDoneListener Interface definition for a callback to be invoked when a snapshot has been taken and is ready for use. 
ShinobiChart.OnTickMarkDrawListener Interface definition for a callback to be invoked when a tick mark is about to be drawn. 
ShinobiChart.OnTickMarkUpdateListener Interface definition for a callback to be invoked after a tick mark has been created. 
ShinobiChart.OnTrackingInfoChangedForCrosshairListener Interface definition for a callback to be invoked when the current series and data point tracking information has changed as a result of a user gesture. 
ShinobiChart.OnTrackingInfoChangedForTooltipListener Interface definition for a callback to be invoked when the current series and data point tracking information has changed as a result of a user gesture. 

Classes

Animation<T> Provides a flexible means of animating arbitrary properties. 
AnimationCurve An AnimationCurve defines how the proportion of an animated quantity varies with the progress through an Animation
AnimationRunner<T> Drives an Animation based on time. 
AnimationSet<T> Holds a set of Animation objects allowing them to all be updated together as one group. 
Annotation An annotation allows a android.view.View to be displayed on the plot area of a chart. 
AnnotationsManager The annotations manager handles the creation, addition and removal of Annotation objects on behalf of the ShinobiChart
AnnotationStyle Visual style properties for annotations attached to the chart. 
Axis<T extends Comparable<T>, U> Responsible for managing the coordinate space of the chart. 
AxisStyle Visual style properties for the Axis
AxisTitleStyle Controls the look and feel for the axis title. 
BandSeries Displays a band series on the chart. 
BandSeriesStyle Visual style properties for BandSeries If you make any styling changes after the chart has been displayed, you should call chart.redrawChart(). 
BarSeries Displays a BarSeries on the chart. 
BarSeriesStyle Style properties specific to BarSeries that manage its look and feel. 
BounceAnimationCurve This AnimationCurve describes a curve where the value starts at 0.0, climbs past 1.0 and passes it, then returns to 1.0, creating a bounce effect. 
BounceDelayAnimationCurve This AnimationCurve describes a curve similar to that of the BounceAnimationCurve but where the bounce occurs over a shorter proportion of the progress (50%). 
BuildConfig  
CandlestickSeries Displays a candlestick series on the chart. 
CandlestickSeriesStyle Visual style properties for CandlestickSeries
CartesianSeries<T extends SeriesStyle> Abstract base class for cartesian series. 
CategoryAxis A CategoryAxis is a subclass of NumberAxis designed to work with discrete data points with no linear correlation between values. 
ChartFragment Allows a chart to be placed inside an Android android.app.Fragment. 
ChartStyle Visual style properties for ShinobiChart
ChartUtils Utility class to provide useful helper methods for drawing and updating the chart elements. 
ChartView Allows a chart to be placed inside an Android android.view.View. 
ColumnSeries Displays a ColumnSeries on the chart. 
ColumnSeriesStyle Style properties specific to ColumnSeries that manage its look and feel. 
Crosshair The Crosshair provides a small circle target with lines that extend to the axis. 
CrosshairStyle Visual style properties for a chart's Crosshair
DataAdapter<Tx, Ty> Abstract base class for an ordered collection of Data objects which it holds for, and provides to, a Series
DataPoint<Tx, Ty> Represents a simple XY data point for a Series on a ShinobiChart
DateFrequency A date/time frequency, expressed as a quantity of time units. 
DateRange Subclass of Range that is specific to Date; each element is represented by a Date. 
DateTimeAxis Subclass of Axis that is designed to work with date/time data points. 
DefaultSeriesAnimationCreatorFactory A factory class which can be used to create a SeriesAnimationCreator of the default type, applicable to the type of Series being used. 
DefaultTooltipView The android.view.View used by default by the Tooltip to present information to the user in response to a tracking gesture, such as a long press to activate the Crosshair or a swipe while the crosshair is active to move it. 
DelayBounceAnimationCurve This AnimationCurve describes a curve similar to that of the BounceAnimationCurve but at the start the curve is constant at 0.0. 
DelayBounceWithMinimumAnimationCurve This AnimationCurve describes a curve similar to that of the BounceAnimationCurve but at the start the curve is constant at 0.1. 
DonutSeries A Donut Series displays magnitude data on the chart - the larger the value of the datapoint, the larger the slice representing that datapoint. 
DonutSeriesStyle Visual style properties for DonutSeries
DoubleEvaluator Uses linear interpolation to find a Double value based on a given proportion and the specified startValue and endValue
EaseInAnimationCurve This AnimationCurve starts off slowly at 0.0, creating a gentle initial phase, then accelerates past 0.5 to reach 1.0. 
EaseInOutAnimationCurve This AnimationCurve starts off slowly at 0.0, creating a slow initial phase. 
EaseOutAnimationCurve This AnimationCurve starts off steadily at 0.0, passes 0.5 then decelerates to reach 1.0, creating a slow exit phase. 
FadeAnimationCreator Creates Animation objects that animate the getAlpha() property of a Series
FlatAnimationCurve This AnimationCurve returns 1.0 for all values of progress. 
FloatEvaluator Uses linear interpolation to find a Float value based on a given proportion and the specified startValue and endValue
GridlineStyle Visual style properties for a set of axis gridlines. 
GridStripeStyle Visual style properties for a set of axis grid stripes. 
GrowAnimationCreator Creates Animation objects that animate the getScaleX() and getScaleY() properties of a Series
GrowHorizontalAnimationCreator Creates Animation objects that animate the getScaleX() property of a Series
GrowVerticalAnimationCreator Creates Animation objects that animate the getScaleY() property of a Series
HorizontalTelevisionAnimationCreator Creates Animation objects that animate the getScaleX() and getScaleY() properties of a Series, incorporating a delay element. 
IntEvaluator Uses linear interpolation to find an Integer value based on a given proportion and the specified startValue and endValue
Legend Series data can be displayed in a legend on a ShinobiChart
LegendStyle Visual style properties for the chart's Legend
LinearAnimationCurve This AnimationCurve progresses at a constant rate from 0.0 to 1.0. 
LineSeries LineSeries is a type of Series that uses the data points to construct a line series. 
LineSeriesStyle Visual style properties for LineSeries If you make any styling changes after the chart has been displayed, you should call redrawChart()
MainTitleStyle Visual style properties relating to the ShinobiChart title. 
MultiValueDataPoint<Tx, Tv> A concrete data point class that can be used with OHLC, Candlestick or Band series. 
NumberAxis Subclass of Axis that is designed to work with numerical data points. 
NumberRange Subclass of Range that is specific to Double; each element is represented by a Double. 
OHLCSeries Displays an OHLC series on the chart. 
OHLCSeriesStyle Visual style properties for OHLCSeries
PieDonutSeries<T extends PieDonutSeriesStyle> Abstract base class for pie or donut series. 
PieDonutSlice A single slice of a pie or donut series. 
PieSeries A Pie Series displays magnitude data on the chart - the larger the value of the datapoint, the larger the slice representing that datapoint. 
PieSeriesStyle Visual style properties for PieSeries
PointStyle Visual style properties for data points within chart series. 
R  
R.attr  
R.bool  
R.color  
R.dimen  
R.string  
R.style  
R.styleable  
Range<T extends Comparable<T>> Base class for several range types. 
RepeatedTimePeriod Represents a repeating period of time. 
Series<T extends SeriesStyle> Abstract base class that represents series displayed on a chart. 
SeriesAlphaAnimationListener A Animation.Listener implementation which will set the alpha value of the associated Series upon each invocation of the onProgressChanged(Animation) method. 
SeriesAnimation This class is deprecated. as of version 1.9.1, use Animation with suitable Animation.Listeners or utilize helper classes such as SeriesAnimator, SeriesAnimationCreator and DefaultSeriesAnimationCreatorFactory  
SeriesAnimator Helper class for showing, hiding, adding and removing Series to and from the ShinobiChart with time-based animations. 
SeriesScaleXAnimationListener A Animation.Listener implementation which will set the scaleX value of the associated Series upon each invocation of the onProgressChanged(Animation) method. 
SeriesScaleYAnimationListener A Animation.Listener implementation which will set the scaleY value of the associated Series upon each invocation of the onProgressChanged(Animation) method. 
SeriesStyle Common visual style properties for a Series
SimpleDataAdapter<Tx, Ty> An ordered collection of Data objects which it holds for, and provides to, a Series
StackingToken Used to group CartesianSeries so they can be stacked together. 
SupportChartFragment Allows a chart to be placed inside an Android android.support.v4.app.Fragment. 
TickMark A single tick mark on an axis. 
TickStyle Visual style properties for a set of axis tick marks. 
Title A title object used by the chart and chart axes to display a android.widget.TextView with appropriate text. 
TitleStyle Visual style properties for a title. 
Tooltip Presents information to the user when a tracking gesture is performed, such as a long press to activate the Crosshair or a swipe while the crosshair is active to move it. 
VerticalTelevisionAnimationCreator Creates Animation objects that animate the getScaleX() and getScaleY() properties of a Series, incorporating a delay element. 

Enums

Annotation.Position Defines whether the annotation is positioned into front of or behind the data on the chart's plot area. 
Axis.DoubleTapBehavior Describes the behavior of the axis when the chart receives a double tap gesture. 
Axis.MotionState States describing internally generated axis range changes. 
Axis.Orientation The orientation of the axis. 
Axis.Position The position of the axis on the chart. 
Crosshair.DrawLinesBehavior The behavior of the crosshair with respect to how it draws its lines. 
Crosshair.Mode The behavior mode for the crosshair when tracking series. 
Crosshair.OutOfRangeBehavior The behavior of the crosshair when it is moved out of the visible range. 
DateFrequency.Denomination The unit of time: second, minute, hour, day, week, month, year. 
Legend.Placement How the legend is placed on its chart relative to the chart's plot area. 
Legend.Position The position of the legend relative to its chart. 
Legend.SymbolAlignment The alignment of the symbols representing a Series in the Legend, in relation to the text label for the series title. 
PieDonutSeries.DrawDirection Identifies the order, starting at the initial rotation as specified in PieSeries or DonutSeries, in which slices are drawn. 
PieDonutSeries.RadialEffect A textured effect to apply to each slice. 
Series.GestureSelectionMode What should be selected when the user taps the chart. 
Series.Orientation The orientation of a series  
Series.SelectionMode This enum is deprecated. as of version 1.8.3, replaced by Series.GestureSelectionMode  
SeriesStyle.FillStyle The style for filled areas. 
TickMark.ClippingMode The clipping mode of the tick marks. 
TickMark.Orientation The orientation of the tick mark label. 
Title.CentersOn Determines what the title is centered on. 
Title.Orientation Determines the orientation of the title is positioned, horizontal or vertical. 
Title.Position Determines where the title is positioned, relative to the chart or axis. 

Exceptions

InvalidTrialKeyException Thrown when, in the shinobicharts Trial Version, a ShinobiChart tries to render and a valid trial key has not been set on the chart (via setTrialKey(String)).