To add a line series to the chart, you do:
$series = new ScatterSeries();
$series->Name = "Product F";
$series->LabelsAppearance->DataFormatString = "{1} / $ {0}";
$series->TooltipsAppearance->DataFormatString = "{1} / $ {0}";
$series->AddItem(new ScatterItem(24,20));
$chart->PlotArea->AddSeries($series);
span style="color: #808080; font-style: italic;">/*
* This file is ready to run as standalone example. However, please do:
* 1. Add tags <html><head><body> to make a complete page
* 2. Change relative path in $KoolControlFolder variable to correctly point to KoolControls folder
*/
$KoolControlsFolder = "../../../../KoolControls";//Relative path to "KoolPHPSuite/KoolControls" folder
"/KoolChart/koolchart.php""chart");
$chart->scriptFolder=$KoolControlsFolder."/KoolChart";
$chart->Width = 770;
$chart->Height = 480;
$chart->Title->Text = "Sales and Profits";
$chart->PlotArea->XAxis->Title = "Profits (millions)""$ {0}";
$chart->PlotArea->YAxis->Title = "Sales ( 000's)""Product A""{1} / $ {0}""{1} / $ {0}""Product B""{1} / $ {0}""{1} / $ {0}""Product C""{1} / $ {0}""{1} / $ {0}""Product D""{1} / $ {0}""{1} / $ {0}""Product E""{1} / $ {0}""{1} / $ {0}""Product F""{1} / $ {0}""{1} / $ {0}""form1" method="post""color:#B8305E;" target="_blank" href="http://codegen.koolphp.net/generate_koolchart.php"