Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ import kotlin.math.sqrt
*/
@Suppress("MemberVisibilityCanBePrivate")
class BarLineChartTouchListener(
chart: BarLineChartBase<out BarLineScatterCandleBubbleData<out IBarLineScatterCandleBubbleDataSet<out Entry>>>,
chart: BarLineChartBase<out BarLineScatterCandleBubbleData<IBarLineScatterCandleBubbleDataSet<out Entry>>>,
touchMatrix: Matrix,
dragTriggerDistance: Float
) :
ChartTouchListener<BarLineChartBase<out BarLineScatterCandleBubbleData<out IBarLineScatterCandleBubbleDataSet<out Entry>>>>(chart) {
ChartTouchListener<BarLineChartBase<out BarLineScatterCandleBubbleData<IBarLineScatterCandleBubbleDataSet<out Entry>>>>(chart) {
/**
* the original touch-matrix from the chart
*/
Expand Down Expand Up @@ -501,10 +501,8 @@ class BarLineChartTouchListener(

chart.zoom(scaleX, scaleY, trans.x, trans.y)

if (chart.isLogEnabled) Log.i(
"BarlineChartTouch", ("Double-Tap, Zooming In, x: " + trans.x + ", y: "
+ trans.y)
)
if (chart.isLogEnabled)
Log.i("BarlineChartTouch", "Double-Tap, Zooming In, x: ${trans.x} y: ${trans.y}")

onChartGestureListener?.onChartScale(e, scaleX, scaleY)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface OnDrawListener {
fun onEntryAdded(entry: Entry)

/**
* Called whenever an entry is moved by the user after beeing highlighted
* Called whenever an entry is moved by the user after being highlighted
*/
fun onEntryMoved(entry: Entry)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,7 @@ open class BarChartRenderer(
}

if (!isSingleColor) {
// Set the color for the currently drawn value. If the index
// is out of bounds, reuse colors.
// Set the color for the currently drawn value. If the index is out of bounds, reuse colors.
paintRender.color = dataSet.getColorByIndex(pos)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,7 @@ open class LineChartRenderer(

if (!viewPortHandler.isInBoundsRight(firstCoordinateX)) break

// make sure the lines don't do shitty things outside
// bounds
// make sure the lines don't do shitty things outside bounds
if (!viewPortHandler.isInBoundsLeft(lastCoordinateX) || !viewPortHandler.isInBoundsTop(
max(
firstCoordinateY.toDouble(),
Expand Down
Loading