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

graph nodes are broken #545

Closed
munoztd0 opened this issue Jun 13, 2023 · 1 comment
Closed

graph nodes are broken #545

munoztd0 opened this issue Jun 13, 2023 · 1 comment
Assignees

Comments

@munoztd0
Copy link
Collaborator

library(echarts4r)

les <- jsonlite::fromJSON("https://gist.githubusercontent.com/tylerlittlefield/0d7a53f2a1f55cb3c6ffe22c67618267/raw/0684a839c3e49dac1157721ddd906eff8f9491d4/les-miserables.json")


e_charts() |> 
  e_graph(
    layout = "circular", 
    circular = list(
      rotateLabel = TRUE
    ),
    roam = TRUE,
    lineStyle = list(
      color = "source",
      curveness = 0.3
    ),
    label = list(
      position = "right",
      formatter = "{b}"
    )
  ) |>
  e_graph_nodes(
    nodes = les$nodes, 
    names = name, 
    value = value, 
    size = size, 
    category = grp
  ) |> 
  e_graph_edges(
    edges = les$edges, 
    source = from,
    target = to
  ) |>
  e_tooltip()
#> Error in eval(expr, envir, enclos): object 'library(echarts4r)\n\nles <- jsonlite::fromJSON("https://gist.githubusercontent.com/tylerlittlefield/0d7a53f2a1f55cb3c6ffe22c67618267/raw/0684a839c3e49dac1157721ddd906eff8f9491d4/les-miserables.json")\n\n\ne_charts() |> \n  e_graph(\n    layout = "circular", \n    circular = list(\n      rotateLabel = TRUE\n    ),\n    roam = TRUE,\n    lineStyle = list(\n      color = "source",\n      curveness = 0.3\n    ),\n    label = list(\n      position = "right",\n      formatter = "{b}"\n    )\n  ) |>\n  e_graph_nodes(\n    nodes = les$nodes, \n    names = name, \n    value = value, \n    size = size, \n    category = grp\n  ) |> \n  e_graph_edges(\n    edges = les$edges, \n    source = from,\n    target = to\n  ) |>\n  e_tooltip()' not found

Created on 2023-06-13 with reprex v2.0.2.9000

Expects (v-0.4.4)
image

But gets (v-0.4.5)

image

@munoztd0 munoztd0 self-assigned this Jun 13, 2023
@munoztd0
Copy link
Collaborator Author

fixed with #547

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