Are there any best practices for adding additional legends to a PHPlot chart without colors?

When adding additional legends to a PHPlot chart without colors, it is important to provide clear and descriptive labels for each item in the legend. One approach is to use symbols or markers in the legend to represent each item, along with a text label. This can help users differentiate between the items in the legend without relying on color cues.

// Create a PHPlot object
$plot = new PHPlot(800, 600);

// Add a legend with symbols and labels
$plot->SetLegend(array('Item 1' => array('shape' => 'diamond'),
                       'Item 2' => array('shape' => 'triangle'),
                       'Item 3' => array('shape' => 'square')));

// Add data and plot the chart
$data = array(
    array('Label 1', 10),
    array('Label 2', 20),
    array('Label 3', 30)
);
$plot->SetDataValues($data);
$plot->DrawGraph();