Skip to content

Commit 2a95b24

Browse files
committed
Limitline color
1 parent ce2db42 commit 2a95b24

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/LineChartActivity1.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,14 @@ class LineChartActivity1 : DemoBase(), OnSeekBarChangeListener, OnChartValueSele
9494
limitLine1.labelPosition = LimitLabelPosition.RIGHT_TOP
9595
limitLine1.textSize = 10f
9696
limitLine1.typeface = tfRegular
97+
limitLine1.lineColor = Color.GREEN
9798
val limitLine2 = LimitLine(-30f, "Lower Limit")
9899
limitLine2.lineWidth = 4f
99100
limitLine2.enableDashedLine(10f, 10f, 0f)
100101
limitLine2.labelPosition = LimitLabelPosition.RIGHT_BOTTOM
101102
limitLine2.textSize = 10f
102103
limitLine2.typeface = tfRegular
104+
limitLine2.lineColor = Color.GREEN
103105

104106
// draw limit lines behind data instead of on top
105107
binding.chart1.axisLeft.setDrawLimitLinesBehindData(true)
-13 Bytes
Loading

0 commit comments

Comments
 (0)