jqplot jqplot

  1. Documentation
  2. Change Log

This extension is jqplot

alt "标题"

Documentation

Requirements
  • Yii 1.0 or above
Installation
  • Extract the release file under protected/extensions
Usage

See the following code example:

$this->widget('application.extensions.jqplot.JqplotGraphWidget', 
    array(
        'data'=>array(
    		array(array(2006, 4),array(2008, 9),array(2009, 16)),
    		array(array(2006, 3),array(2007, 7),array(2008, 6),),
    		array(array(2006, 5),array(2007, 1),array(2008, 3),array(2009, 7),),
    		array(array(2006, 2),array(2007, 5),array(2008, 4),array(2009, 9),)
        ),
        'options'=>array(
    			'seriesDefaults'=>array(
    				'renderer'=>'js:$.jqplot.BarRenderer',
    				'rendererOptions'=>array('barPadding'=>10,'barMargin'=>10)
    			),
    			'legend'=>array('show'=>'true','location'=>'nw'),
                'title'=>'Exponential Line',
                'axes'=>array(
    				'xaxis'=>array('renderer'=>'js:$.jqplot.CategoryAxisRenderer'),
                	'yaxis'=>array('min'=>-10, 'max'=>240,'numberTicks'=>6)
    			),
        ),
        'htmlOptions'=>array(
               'style'=>'width:400px;height:300px;'
        ),
        'pluginScriptFile'=>array(
			'jqplot.dateAxisRenderer.js',
			'jqplot.barRenderer.js',
			'jqplot.categoryAxisRenderer.js')
    )
);

指南:http://blog.csdn.net/gaoyusi4964238/archive/2009/07/25/4378459.aspx

Usage Documentation: http://www.jqplot.com/docs/files/usage-txt.html

Change Log

June 9, 2010
  • Initial release.
4 0
10 followers
2 619 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Tags:
Developed by: sharehua
Created on: Jun 9, 2010
Last updated: 7 years ago

Downloads

show all