<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:rs="urn:schemas-microsoft-com:rowset" 
xmlns:z="#RowsetSchema">
<xsl:template match="rs:data">


<chart plotFillRatio='0' caption='Integrated LEI by State' 
xaxisname="State" yAxisName='I-LEI(%)' showValues='0' numbersuffix='%'  showlabels='0' rotateLabels='1' labelDisplay='WRAP' yAxisMaxValue="100">
<trendLines>
<line color='FF0000' valueOnRight='1' showOnTop='1' displayvalue="Average">
 <xsl:attribute name="startValue">
 			<xsl:value-of select="100*(sum(z:row/@*[2]) div count(z:row))"/>
 </xsl:attribute>
 </line>
</trendLines>
<categories>
<xsl:for-each select="z:row">
			<category>
			<xsl:attribute name="label">
			<xsl:value-of select="@ows_State"/>
			</xsl:attribute>
			</category>
      </xsl:for-each>
</categories>

<dataset seriesname=''>
	<xsl:for-each select="z:row">
		<set>
			<xsl:attribute name="value">
			<xsl:value-of select="@*[2] * 100"/>
			</xsl:attribute>
	</set>
  </xsl:for-each>
</dataset>



</chart>
</xsl:template>
</xsl:stylesheet>