bupaverse / processmapR

Visualize event logs using directed graphs, i.e. process maps.
https://bupaverse.github.io/processmapR/
Other
9 stars 6 forks source link

process_map rendering for use in PowerBI #40

Open paullandrepretorius opened 2 years ago

paullandrepretorius commented 2 years ago

Hi All.

Was wondering if anyone knows of a way to render a process map with pan and zoom functionality inside an R script in PowerBI? I'm currently only able to render a PNG as PowerBI does not cater for HTML:

grafik <- process_map(x, type = frequency("relative", color_scale = "Purples"), render = FALSE, rankdir = "TB", fixed_edge_width = TRUE, layout = layout_pm(fixed_positions = NULL, edge_weight = TRUE, edge_cutoff = 0))

export_graph(grafik, "result.png", file_type = "png")

I've tried the export_SVG function, but no luck yet. This would really help as the current map in PowerBI is really small and difficult to view.

gertjanssenswillen commented 2 years ago

The examples of processmaps in PowerBI that I know of all use PNG, so I don't think there is an alternative for that. Beyond that, I'm not sure what the possibilities are for zooming in etc on png's in PowerBi. Mabye you have a higher chance of asking this in a PowerBi community somewhere?

Sorry for not being able to help.

koureasstavros commented 9 months ago

You can print the process_map object using html widgets and this is going to export the GrViz html code, but with the current version of R into PowerBI Service, the controls like pan and zoom are not supported. This can only be done into PowerBI desktop using R4.2 and latest packages of libraries.