Bug 159514 BPS66 - Chart Simple API
This project aims to simplify the chart model API and make it accessible from scripting. It will only expose a set of clear interfaces that determine what can be changed using scripting.
chart/org.eclipse.birt.chart.reportitem/src/org/eclipse/birt/chart/reportitem/ChartReportItemImpl.java
{
			return cm.getLegend( ).getAnchor( ).getName( );
		}
		else if ( propName.equals( "chart.dimension" ) ) 
		{
			return cm.getDimension( ).getName( );
		}
		else if ( propName.equals( "plot.transposed" ) ) 
		{
			return new Boolean( ( cm instanceof ChartWithAxes ) ? ( (ChartWithAxes) cm ).isTransposed( )
					: false );
		}
		else if ( propName.equals( "script" ) ) 
		{
			String script = cm.getScript( );
			if ( script == null || script.length( ) == 0 )
			{
				script = ScriptHandler.DEFAULT_JAVASCRIPT;
			}
			return script;
		}
		else if ( propName.equals( "chart.instance" ) ) 
		{
			return cm;
		}
		return null;
	}
	/*
	 * (non-Javadoc)
	 *