100, "Feb" => 200, "Mar" => 150, "Apr" => 300, "May" => 400, "Jun" => 250); $data2 = array("Jan" => 25, "Feb" => 50, "Mar" => 75, "Apr" => 100, "May" => 125, "Jun" => 150); $graph->addY2($data2); $graph->addData($data); $graph->setTitle("Sales Report"); $graph->setLegend(true); $graph->setLegendTitle("Sales Data", "Profit Data"); $graph->setDataValues(true); $graph->setBarColor('blue', 'red'); $graph->createGraph(); ?>In this example, we create a line graph that plots the sales data on the primary Y-axis and the profit data on the secondary Y-axis. The `addY2` function is used to add the second Y-axis to the graph, and the `$data2` array is passed as a parameter. We then add the sales data to the graph using the `addData` function, and set various formatting options using the other functions such as `setTitle`, `setLegend`, and `setBarColor`. This feature is part of the PHPGraphLib package library, which is a PHP graphing library that provides an easy way to create various kinds of graphs, including line graphs, bar graphs, and pie charts.