Graph::without_legend

fn without_legend(
    self: Graph
) -> Graph

Removes the legend from the graph.

Examples

Before:

graph()
    .add("Allocations", allocations())
    .save();

After:

graph()
    .add("Allocations", allocations())
    .without_legend()
    .save();