Eflot Multiple Axes

Hi,

I’m not sure how to set up a second axis to the right of the graph with the EFlot extension.

If I use y2axis position to the right, both data sets are not displaying anymore.

By the way, if I leave out yaxis in the option, both data sets are displaying correctly.

Can someone look at the code below and see what I do wrong?


$this->widget('application.extensions.EFlot.EFlotGraphWidget', 

	    array(

	        'data'=>array(

	            array(

	                'label'=> 'data_set1', 

	                'data'=>$data_set1,

	                'lines'=>array('show'=>true,'lineWidth'=>2),

	                'points'=>array('show'=>false),

	                'shadowSize'=>0,

	                'color'=>'#1696d8',

	                'yaxis' => 1,

	            ),

	           	array(

	                'label'=> 'data_set2', 

	                'data'=>$data_set2,

	                'lines'=>array('show'=>true,'lineWidth'=>1),

	                'points'=>array('show'=>false),

	                'shadowSize'=>0,

	                'color'=>'#1696d8',

	                'yaxis' => 2,

	            ),

	        ),

	        'options'=>array(

	                'legend'=>array(

	                    'position'=>'nw',

	                    'show'=>true,

	                    'margin'=>10,

	                    'backgroundOpacity'=> 0.5,

	                    ),

	               	'y2axis'=>array(

	               		'position'=>'right'

	               	),

	        ),

	        'htmlOptions'=>array(

	               'style'=>'width:450px;height:400px;'

	        )

	        

	    )

	);

Instead of y2axis use


'yaxes'=>array(array('position'=>"left"),array('position'=>"right")),