Skip to content

Commit 627a3a1

Browse files
committed
Cosmetic
1 parent 2415dc0 commit 627a3a1

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

MPChartLib/src/main/java/com/github/mikephil/charting/renderer/YAxisRenderer.kt

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -278,21 +278,21 @@ open class YAxisRenderer(viewPortHandler: ViewPortHandler, @JvmField protected v
278278
limitLinePath.reset()
279279

280280
for (i in limitLines.indices) {
281-
val l = limitLines[i]
281+
val limitLine = limitLines[i]
282282

283-
if (!l.isEnabled) continue
283+
if (!limitLine.isEnabled) continue
284284

285285
c.withSave {
286286
limitLineClippingRect.set(viewPortHandler.contentRect)
287-
limitLineClippingRect.inset(0f, -l.lineWidth)
287+
limitLineClippingRect.inset(0f, -limitLine.lineWidth)
288288
c.clipRect(limitLineClippingRect)
289289

290290
limitLinePaint.style = Paint.Style.STROKE
291-
limitLinePaint.color = l.lineColor
292-
limitLinePaint.strokeWidth = l.lineWidth
293-
limitLinePaint.setPathEffect(l.dashPathEffect)
291+
limitLinePaint.color = limitLine.lineColor
292+
limitLinePaint.strokeWidth = limitLine.lineWidth
293+
limitLinePaint.setPathEffect(limitLine.dashPathEffect)
294294

295-
pts[1] = l.limit
295+
pts[1] = limitLine.limit
296296

297297
transformer?.pointValuesToPixel(pts)
298298

@@ -303,22 +303,22 @@ open class YAxisRenderer(viewPortHandler: ViewPortHandler, @JvmField protected v
303303
limitLinePath.reset()
304304

305305
// c.drawLines(pts, mLimitLinePaint);
306-
val label = l.label
306+
val label = limitLine.label
307307

308308
// if drawing the limit-value label is enabled
309309
if (label != null && label != "") {
310-
limitLinePaint.style = l.textStyle
310+
limitLinePaint.style = limitLine.textStyle
311311
limitLinePaint.setPathEffect(null)
312-
limitLinePaint.color = l.textColor
313-
limitLinePaint.setTypeface(l.typeface)
312+
limitLinePaint.color = limitLine.textColor
313+
limitLinePaint.setTypeface(limitLine.typeface)
314314
limitLinePaint.strokeWidth = 0.5f
315-
limitLinePaint.textSize = l.textSize
315+
limitLinePaint.textSize = limitLine.textSize
316316

317317
val labelLineHeight = Utils.calcTextHeight(limitLinePaint, label).toFloat()
318-
val xOffset = Utils.convertDpToPixel(4f) + l.xOffset
319-
val yOffset = l.lineWidth + labelLineHeight + l.yOffset
318+
val xOffset = Utils.convertDpToPixel(4f) + limitLine.xOffset
319+
val yOffset = limitLine.lineWidth + labelLineHeight + limitLine.yOffset
320320

321-
val position = l.labelPosition
321+
val position = limitLine.labelPosition
322322

323323
when (position) {
324324
LimitLabelPosition.RIGHT_TOP -> {

0 commit comments

Comments
 (0)