public class ChartView
| Modifier and Type | Class and Description |
|---|---|
static class |
ChartView.Companion |
| Modifier and Type | Field and Description |
|---|---|
static ChartView.Companion |
Companion |
static int |
FLING_DURATION_MILLIS |
static int |
MIN_PLOT_UNIT_PX
There is a possible case that the scale is so small that thousands/millions of data points are covered
by the active range. There is no point for us in trying to draw edges between every to points then.
We choose only subset of points which are distant enough from each other then.
|
| Constructor and Description |
|---|
ChartView(android.content.Context context,
android.util.AttributeSet attributes,
int defaultStyle) |
ChartView(android.content.Context context,
android.util.AttributeSet attributes) |
ChartView(android.content.Context context) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(ChartConfig config) |
void |
apply(ChartModel chartModel,
java.lang.Object dataAnchor) |
java.lang.Object |
getDataAnchor() |
protected void |
onDraw(android.graphics.Canvas canvas) |
protected void |
onMeasure(int widthMeasureSpec,
int heightMeasureSpec) |
boolean |
onTouchEvent(android.view.MotionEvent event) |
public static int MIN_PLOT_UNIT_PX
There is a possible case that the scale is so small that thousands/millions of data points are covered by the active range. There is no point for us in trying to draw edges between every to points then. We choose only subset of points which are distant enough from each other then.
Current constant defines minimum interested visual length to use during that.
public static int FLING_DURATION_MILLIS
public static ChartView.Companion Companion
@JvmOverloads
public ChartView(@NotNull
android.content.Context context,
@Nullable
android.util.AttributeSet attributes,
int defaultStyle)
@JvmOverloads
public ChartView(@NotNull
android.content.Context context,
@Nullable
android.util.AttributeSet attributes)
@JvmOverloads
public ChartView(@NotNull
android.content.Context context)
@NotNull public java.lang.Object getDataAnchor()
public void apply(@NotNull
ChartConfig config)
public void apply(@NotNull
ChartModel chartModel,
@Nullable
java.lang.Object dataAnchor)
protected void onMeasure(int widthMeasureSpec,
int heightMeasureSpec)
protected void onDraw(@NotNull
android.graphics.Canvas canvas)
public boolean onTouchEvent(@NotNull
android.view.MotionEvent event)