mirror of
https://github.com/dzeiocom/charts.git
synced 2025-07-23 13:29:54 +00:00
feat: Allow to clear every horizontal lines (#52)
This commit is contained in:
@ -237,6 +237,10 @@ class YAxis(
|
||||
lines.remove(y)
|
||||
}
|
||||
|
||||
override fun clearLines() {
|
||||
lines.clear()
|
||||
}
|
||||
|
||||
@Deprecated("use the new global function", ReplaceWith("YAxisInterface.addLine"))
|
||||
override fun setGoalLine(height: Float?) {
|
||||
if (height != null) {
|
||||
|
@ -121,6 +121,11 @@ sealed interface YAxisInterface {
|
||||
*/
|
||||
fun removeLine(y: Float)
|
||||
|
||||
/**
|
||||
* Remove every lines
|
||||
*/
|
||||
fun clearLines()
|
||||
|
||||
/**
|
||||
* get the position of an [entry] Y position in the [drawableSpace]
|
||||
*
|
||||
|
Reference in New Issue
Block a user