Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

e_visual_map doesn't respect color and size in e_scatter_3d simultaneously #474

Closed
XiangyunHuang opened this issue Oct 9, 2022 · 0 comments

Comments

@XiangyunHuang
Copy link

Here is a minimal example

library(echarts4r)
quakes |>
  e_charts(x = lat) |>
  e_scatter_3d(
    y = long, z = depth,
    size = mag,
    color = mag,
    bind = stations,
    coordinate_system = "cartesian3D",
    name = "Fiji"
  ) |>
  e_x_axis_3d(min = -40, max = -10, name = "Lat") |>
  e_y_axis_3d(min = 165, max = 190, name = "Long") |>
  e_z_axis_3d(name = "Depth") |>
  e_visual_map(
    serie = mag,
    type = "continuous",
    inRange = list(color = c('#4B0055', '#009B95', '#FDE333')),
    dimension = 3, # third dimension x = 0, y = 1, z = 2, color = 3, size = 4
    top = 20
  ) |>
  e_visual_map(
    serie = mag,
    type = "continuous",
    inRange = list(symbolSize = c(10, 30)),
    dimension = 4,
    bottom = 10
  )

Here is output from above code.

截屏2022-10-09 21 22 55

Sessioninfo

> sessionInfo()
R version 4.2.1 (2022-06-23)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur ... 10.16

Matrix products: default
BLAS:   /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRlapack.dylib

locale:
[1] zh_CN.UTF-8/zh_CN.UTF-8/zh_CN.UTF-8/C/zh_CN.UTF-8/zh_CN.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] echarts4r_0.4.4

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.9            magrittr_2.0.3        tidyselect_1.1.2.9000
 [4] xtable_1.8-4          R6_2.5.1              rlang_1.0.6          
 [7] fastmap_1.1.0         fansi_1.0.3           dplyr_1.0.99.9000    
[10] utf8_1.2.2            cli_3.4.1             withr_2.5.0          
[13] htmltools_0.5.3       ellipsis_0.3.2        yaml_2.3.5           
[16] digest_0.6.29         tibble_3.1.8          lifecycle_1.0.3      
[19] shiny_1.7.2           later_1.3.0           htmlwidgets_1.5.4    
[22] vctrs_0.4.2.9000      promises_1.2.0.1      glue_1.6.2           
[25] mime_0.12             compiler_4.2.1        pillar_1.8.1         
[28] generics_0.1.3        jsonlite_1.8.2        httpuv_1.6.6         
[31] pkgconfig_2.0.3      
@XiangyunHuang XiangyunHuang changed the title e_visual_map doesn't respect .color and size in e_scatter_3d simultaneously e_visual_map doesn't respect color and size in e_scatter_3d simultaneously Oct 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant