holgerbrandl / kravis

A {K}otlin g{ra}mmar for data {vis}ualization
BSD 2-Clause "Simplified" License
183 stars 12 forks source link

Exceptions when I calling .show() or .save() #22

Closed fiddleatwork closed 4 years ago

fiddleatwork commented 4 years ago

I would like to be able to show a popup window with the chart like I do in Python.

I pasted the data class example into my spring boot application and when I run I get:

Caused by: java.awt.HeadlessException: null

If I comment the .show() and call .save() I get:

java.lang.IllegalArgumentException: No enum constant kravis.render.PlotFormat.

Please tell me if I'm missing something.

Thanks, Michael

fiddleatwork commented 4 years ago

To solve the headless exception, I used:

-Djava.awt.headless=false