Skip to content

Commit

Permalink
Minor fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilJay committed Oct 30, 2014
1 parent 3a1abec commit b98781e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Binary file modified MPChartExample/libs/mpandroidchartlibrary-1-7-3.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
tvX.setText("" + (mSeekBarX.getProgress() + 1));
tvY.setText("" + (mSeekBarY.getProgress()));

setData(mSeekBarX.getProgress() + 1, mSeekBarY.getProgress());
setData(mSeekBarX.getProgress() + 1, mSeekBarY.getProgress() - 100);

// redraw
mChart.invalidate();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ else if (j == points.size() - 1) {
// if filled is enabled, close the path
if (dataSet.isDrawFilledEnabled()) {

float fillMin = dataSet.getYMin() >= 0 ? mYChartMin : 0;
float fillMin = mFillFormatter
.getFillLinePosition(dataSet, mOriginalData, mYChartMax, mYChartMin);

spline.lineTo((entries.size() - 1) * mPhaseX, fillMin);
spline.lineTo(0, fillMin);
Expand Down

0 comments on commit b98781e

Please sign in to comment.