pm4py.vis.view_dotted_chart#
- pm4py.vis.view_dotted_chart(log: EventLog | DataFrame, format: str = 'png', attributes=None, bgcolor: str = 'white', show_legend: bool = True, graph_title: str | None = None)[source]#
Displays the dotted chart.
Each event in the log is represented as a point. Dimensions are: - X-axis: The value of the first selected attribute. - Y-axis: The value of the second selected attribute. - Color: The value of the third selected attribute.
If attributes are not provided, a default dotted chart is shown: X-axis: time Y-axis: case index (in order of occurrence) Color: activity
- Parameters:
log – Event log
format (
str) – Image formatattributes – Attributes used to construct the dotted chart. If None, the default dotted chart is used. For custom attributes, use a list of the form [x-axis attribute, y-axis attribute, color attribute].
bgcolor (
str) – Background color of the chart (default: white)show_legend (
bool) – Boolean (enables/disables the legend)graph_title – Sets the title of the visualization (if provided)
import pm4py pm4py.view_dotted_chart(dataframe, format='svg') pm4py.view_dotted_chart(dataframe, attributes=['time:timestamp', 'concept:name', 'org:resource'])