Skip to content

Commit 753c500

Browse files
committed
ILineScatterCandleRadarDataSet in Kotlin
1 parent 0dbfcf5 commit 753c500

File tree

3 files changed

+31
-36
lines changed

3 files changed

+31
-36
lines changed

MPChartLib/src/main/java/com/github/mikephil/charting/interfaces/datasets/ILineScatterCandleRadarDataSet.java

Lines changed: 0 additions & 35 deletions
This file was deleted.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
package com.github.mikephil.charting.interfaces.datasets
2+
3+
import android.graphics.DashPathEffect
4+
import com.github.mikephil.charting.data.Entry
5+
6+
interface ILineScatterCandleRadarDataSet<T : Entry> : IBarLineScatterCandleBubbleDataSet<T> {
7+
/**
8+
* Returns true if vertical highlight indicator lines are enabled (drawn)
9+
* @return
10+
*/
11+
val isVerticalHighlightIndicatorEnabled: Boolean
12+
13+
/**
14+
* Returns true if vertical highlight indicator lines are enabled (drawn)
15+
* @return
16+
*/
17+
val isHorizontalHighlightIndicatorEnabled: Boolean
18+
19+
/**
20+
* Returns the line-width in which highlight lines are to be drawn.
21+
* @return
22+
*/
23+
val highlightLineWidth: Float
24+
25+
/**
26+
* Returns the DashPathEffect that is used for highlighting.
27+
* @return
28+
*/
29+
val dashPathEffectHighlight: DashPathEffect?
30+
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ open class BarChartRenderer(
515515
paintHighlight.color = set.highLightColor
516516
paintHighlight.alpha = set.highLightAlpha
517517

518-
val isStack = if (high.stackIndex >= 0 && e.isStacked) true else false
518+
val isStack = high.stackIndex >= 0 && e.isStacked
519519

520520
val y1: Float
521521
val y2: Float

0 commit comments

Comments
 (0)