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
Highlighter
<?php //For use the component YsJQuery::useComponent(YsJQueryConstant::COMPONENT_JQPLOT); //Loading assets when the document is ready echo YsJQueryAssets::loadScriptsOnReady(array( 'jquery4php-assets/js/plugins/jqplot/plugins/jqplot.highlighter.min.js', 'jquery4php-assets/js/plugins/jqplot/plugins/jqplot.cursor.min.js', 'jquery4php-assets/js/plugins/jqplot/plugins/jqplot.dragable.min.js', 'jquery4php-assets/js/plugins/jqplot/plugins/jqplot.trendline.min.js'), // callback: ENABLE THE BUTTON YsJQuery::removeAttr('disabled')->in('#btnOpenDialog')); $plot1 = new YsPlot('plot1Id', 'Data Point Highlighting'); $serie1 = new YsPlotSerie(); $serie1->addData('23-May-08', 578.55); $serie1->addData('20-Jun-08', 566.5); $serie1->addData('25-Jul-08', 480.88); $serie1->addData('22-Aug-08', 509.84); $serie1->addData('26-Sep-08', 454.13); $serie1->addData('24-Oct-08', 379.75); $serie1->addData('21-Nov-08', 303); $serie1->addData('26-Dec-08', 308.56); $serie1->addData('23-Jan-09', 299.14); $serie1->addData('20-Feb-09', 346.51); $serie1->addData('20-Mar-09', 325.99); $serie1->addData('24-Apr-09', 386.15); $xaxis = new YsPlotAxis(); $xaxis->setRenderer(YsPlotRenderer::getDateAxisRenderer()); $rendererOptions = new YsPlotRenderer(); $rendererOptions->setTickRenderer(YsPlotRenderer::getCanvasAxisTickRenderer()); $xaxis->setRendererOptions($rendererOptions); $tickOptions = new YsPlotAxisTickOption(); $tickOptions->setFormatString('%b %#d, %Y'); $tickOptions->setFontSize('10pt'); $tickOptions->setFontFamily('Tahoma'); $tickOptions->setAngle(-30); $xaxis->setTickOptions($tickOptions); $serie1->setXaxis($xaxis); $yaxis = new YsPlotAxis(); $tickOptions = new YsPlotAxisTickOption(); $tickOptions->setFormatString('$%.2f'); $yaxis->setTickOptions($tickOptions); $serie1->setYaxis($yaxis); $plot1->setSeries($serie1); $highlighter = new YsPlotHighlighter(); $highlighter->setSizeAdjust(7.5); $highlighter->setTooltipLocation(YsLocation::$N); $cursor = new YsPlotCursor(); $cursor->setShow(true); $cursor->setShowVerticalLine(true); $cursor->setShowHorizontalLine(true); $plot1->setHighlighter($highlighter); $plot1->setCursor($cursor); ?> <button id="btnOpenDialog" disabled="disabled">Show Demo</button> <?php echo YsUIDialog::initWidget('dialogId','style="display:none" title="Basic dialog"') ?> <table width="90%"> <tr><td><?php echo $plot1->renderTemplate('style="margin-left:50px"'); ?></td></tr> <tr><td> Plugins dependencies:<br/> -jqplot.dateAxisRenderer.min.js<br/> -jqplot.canvasTextRenderer.min.js<br/> -jqplot.canvasAxisTickRenderer.min.js<br/> -jqplot.highlighter.min.js<br/> -jqplot.cursor.min.js<br/> </td></tr> </table> <?php echo YsUIDialog::endWidget() ?> <?php echo YsJQuery::newInstance() ->onClick() ->in('#btnOpenDialog') ->execute( YsUIDialog::build('#dialogId') ->_modal(true) ->_width(670) ->_height(500) ->_buttons(array( 'Ok' => new YsJsFunction('alert("Hello world")'), 'Close' => new YsJsFunction(YsUIDialog::close('this'))) ), $plot1->build() ) ?>
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
Support requests, bug reports, and off-topic comments will be deleted without warning.