Skip to content

Bug with Tooltips in Swing/Batik #225

Closed
@AndreiKingsley

Description

@AndreiKingsley
image
 val plot = letsPlot(dataset) + geomLine {
        x = "stage"
        y = "value"
        color = asDiscrete("id")
    }

    val processedSpec = MonolithicCommon.processRawSpecs(plot.toSpec(), frontendOnly = false)

    val panel =  DefaultPlotPanelBatik(
        processedSpec = processedSpec,
        preserveAspectRatio = true,
        preferredSizeFromPlot = false,
        repaintDelay = 10,
    ) { messages ->
        for (message in messages) {
            println("[Example App] $message")
        }
    }


    val window = JFrame("Example App (Swing-Batik)")
    window.defaultCloseOperation = EXIT_ON_CLOSE
    window.contentPane.layout = BoxLayout(window.contentPane, BoxLayout.Y_AXIS)

    window.contentPane.add(panel)

    SwingUtilities.invokeLater {
        window.pack()
        window.size = Dimension(850, 400)
        window.setLocationRelativeTo(null)
        window.isVisible = true
    }

dataset.csv

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions