Cleanup
This commit is contained in:
parent
073b477811
commit
33fbf34a7c
3 changed files with 5 additions and 11 deletions
|
@ -146,7 +146,7 @@ public class RealtimeLineChartActivity extends DemoBase implements
|
|||
// mChart.setVisibleYRange(30, AxisDependency.LEFT);
|
||||
|
||||
// move to the latest entry
|
||||
mChart.moveViewToX(data.getEntryCount() - 121);
|
||||
mChart.moveViewToX(data.getEntryCount());
|
||||
|
||||
// this automatically refreshes the chart (calls invalidate())
|
||||
// mChart.moveViewTo(data.getXValCount()-7, 55f,
|
||||
|
@ -175,14 +175,14 @@ public class RealtimeLineChartActivity extends DemoBase implements
|
|||
|
||||
private void feedMultiple() {
|
||||
|
||||
if(thread != null)
|
||||
if (thread != null)
|
||||
thread.interrupt();
|
||||
|
||||
thread = new Thread(new Runnable() {
|
||||
thread = new Thread(new Runnable() {
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
for(int i = 0; i < 1000; i++) {
|
||||
for (int i = 0; i < 1000; i++) {
|
||||
|
||||
runOnUiThread(new Runnable() {
|
||||
|
||||
|
@ -219,7 +219,7 @@ public class RealtimeLineChartActivity extends DemoBase implements
|
|||
protected void onPause() {
|
||||
super.onPause();
|
||||
|
||||
if(thread != null) {
|
||||
if (thread != null) {
|
||||
thread.interrupt();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -357,10 +357,6 @@ public abstract class BarLineChartBase<T extends BarLineScatterCandleBubbleData<
|
|||
if (mAutoScaleMinMaxEnabled)
|
||||
mData.calcMinMax();
|
||||
|
||||
// // calculate / set x-axis range
|
||||
// mXAxis.mAxisMaximum = mData.getXVals().size() - 1;
|
||||
// mXAxis.mAxisRange = Math.abs(mXAxis.mAxisMaximum - mXAxis.mAxisMinimum);
|
||||
|
||||
mXAxis.calculate(mData.getXMin(), mData.getXMax());
|
||||
|
||||
// calculate axis range (min / max) according to provided data
|
||||
|
|
|
@ -168,8 +168,6 @@ public class ChartHighlighter<T extends BarLineScatterCandleBubbleDataProvider>
|
|||
SelectionDetail closest = null;
|
||||
float distance = minSelectionDistance;
|
||||
|
||||
System.out.println(distance);
|
||||
|
||||
for (int i = 0; i < valsAtIndex.size(); i++) {
|
||||
|
||||
SelectionDetail sel = valsAtIndex.get(i);
|
||||
|
|
Loading…
Add table
Reference in a new issue