You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would love a way to register Gson custom TypeAdapters so I can stick closer to my domain model for the data in the charts and don't require all types of transformations. Perhaps this is already possible, but couldn't find it in the documentation.
For example (I use Kotlin), Gson by default doesn't handle Pair, Triple, Instant and my own custom types.
BTW, I use the engine.renderJsonOption(chart) before sending it to the browser.
The text was updated successfully, but these errors were encountered:
Great, then I can use the EChartsSerializer which is a bit cleaner then doing my own serialisation (since I noticed ECharts-Java also has some own Adapters for more advanced chart types)
Would love a way to register Gson custom TypeAdapters so I can stick closer to my domain model for the data in the charts and don't require all types of transformations. Perhaps this is already possible, but couldn't find it in the documentation.
For example (I use Kotlin), Gson by default doesn't handle
Pair
,Triple
,Instant
and my own custom types.BTW, I use the
engine.renderJsonOption(chart)
before sending it to the browser.The text was updated successfully, but these errors were encountered: