All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.render.LabelFactory.kt Maven / Gradle / Ivy

There is a newer version: 0.11.4
Show newest version
package com.juul.krayon.chart.render

/** Generator for chart labels. */
public fun interface LabelFactory {
    /** Generate a label. If this returns `null`, the label is omitted. */
    public fun createLabel(value: T): CharSequence?
}

/** Type alias of LabelFactory for documentation purposes: the value represents an index. */
public typealias IndexLabelFactory = LabelFactory




© 2015 - 2025 Weber Informatics LLC | Privacy Policy