Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Basic Draw
<?php //For use the component YsJQuery::useComponent(YsJQueryConstant::COMPONENT_JQPLOT); /* New Plot * The first argument is the Plot Id * The second argument is the Plot Title */ $plot = new YsPlot('chartdiv', 'Exponential Line'); /* * The first serie * The first argument is the value of the label in legend (optional) */ $serie1 = new YsPlotSerie("Serie Number 1"); // Adding data to the serie $serie1->addData(1,2); $serie1->addData(3,5.12); $serie1->addData(5,13.1); $serie1->addData(7,33.6); $serie1->addData(9,85.9); $serie1->addData(11,219.9); // Adding style to the serie $marker = new YsPlotMarker(); $marker->setStyle(YsPlotMarker::$STYLE_DIAMOND); $serie1->setShowLine(false); $serie1->setMarkerOptions($marker); /* * The second serie */ $serie2 = new YsPlotSerie(); // The label in the legend $serie2->setLabel("Serie Number 2"); // Adding style to the serie $serie2->addData(1,219.9); $serie2->addData(3,85.9); $serie2->addData(5,33.6); $serie2->addData(7,13.1); $serie2->addData(9,5.12); $serie2->addData(11,2); // The legend for the graphic $legend = new YsPlotLegend(YsLocation::$N); $legend->setShow(true); //adding the series and the legend $plot->setSeries($serie1, $serie2); $plot->setLegend($legend); // draw the plot // Recommended only if the build of the YsPlot does not depend on events echo $plot->draw(); ?>
Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQuerySintax.php on line 52
Exponential Line
-1
0
1
2
3
4
5
6
7
8
9
10
11
12
-50
0
50
100
150
200
250
Serie Number 1 | |
Serie Number 2 |
Support requests, bug reports, and off-topic comments will be deleted without warning.