Generic function that converts an S7 object to a plain named list matching the ECharts JSON option structure.
Examples
to_list(LineStyle(color = "#16a085", width = 2))#> $color
#> [1] "#16a085"
#>
#> $width
#> [1] 2
#> Generic function that converts an S7 object to a plain named list matching the ECharts JSON option structure.
to_list(LineStyle(color = "#16a085", width = 2))#> $color
#> [1] "#16a085"
#>
#> $width
#> [1] 2
#>