lets-plot-skia icon indicating copy to clipboard operation
lets-plot-skia copied to clipboard

Error when running ggsave

Open justinStoner opened this issue 9 months ago • 2 comments

code sample: ggsave(linePlot, filename, path=images.absolutePath)

error: java.lang.IllegalStateException: Can't export plot to raster formats: NoClassDefFoundError "Failed resolution of: Ljava/awt/Color;". Please add "lets-plot-image-export-<version>.jar" to your classpath. at org.jetbrains.letsPlot.export.GgsaveKt.exportRasterImage(ggsave.kt:138) at org.jetbrains.letsPlot.export.GgsaveKt.ggsave(ggsave.kt:91) at org.jetbrains.letsPlot.export.GgsaveKt.ggsave$default(ggsave.kt:44)

Is there a way to get export working on android?

justinStoner avatar Mar 06 '25 19:03 justinStoner

Export to SVG, HTML should work but not to raster formats. This unfortunately is not yet supported.

alshan avatar Mar 07 '25 01:03 alshan

Hello, on the windows desktop, I successfully exported the image using runtimeOnly("org.jetbrains.lets-plot:lets-plot-image-export:4.6.1").

changhexuefei avatar Mar 14 '25 01:03 changhexuefei