<?xml version="1.0" encoding="UTF-8"?>
<action-sequence>
<title>Grafico indicador cobertura pre-natal</title>
<version>1</version>
<logging-level>ERROR</logging-level>
<documentation>
<author>Geotech Ltda</author>
<description>Cria o gráfico de barras contendo a porcentagem de cobertura de pré-natal.</description>
<help/>
<result-type/>
<icon/>
</documentation>
<inputs/>
<outputs>
<grafico type="string"/>
</outputs>
<resources>
<catalog>
<solution-file>
<location>/gestacao.xml</location>
<mime-type>text/plain</mime-type>
</solution-file>
</catalog>
</resources>
<actions>
<action-definition>
<component-name>MDXLookupRule</component-name>
<action-type>getData</action-type>
<action-resources>
<catalog type="resource"/>
</action-resources>
<action-outputs>
<query-results type="result-set" mapping="resultado"/>
</action-outputs>
<component-definition>
<jndi><![CDATA[gestacao]]></jndi>
<location><![CDATA[mondrian]]></location>
<query><![CDATA[select NON EMPTY {[Measures].[porc_cons_prenatal]} ON COLUMNS,
NON EMPTY ([exercicio].[All exercicios].Children) ON ROWS
from [Cobertura Pre Natal]]]></query>
</component-definition>
</action-definition>
<action-definition>
<component-name>ChartComponent</component-name>
<action-type>Bar Chart</action-type>
<action-inputs>
<chart-data type="result-set" mapping="resultado"/>
</action-inputs>
<action-outputs>
<image-tag type="string" mapping="grafico"/>
</action-outputs>
<component-definition>
<chart-attributes>
<chart-type>BarChart</chart-type>
<border-visible>false</border-visible>
<title-font>
<size>12</size>
<is-bold>true</is-bold>
</title-font>
<expression name="field_nameChart" class="org.pentaho.plugin.jfreereport.reportcharts .BarChartExpression">
<properties>
<property name="itemsLabelVisible">true</property>
</properties>
</expression>
<url-template>javascript
:barChartClicked("{exercicio}") ;</url-template>
<paramName>exercicio</paramName>
<domain-title>Exercícios</domain-title>
<domain-title-font>
<font-family>Arial</font-family>
<size>14</size>
<is-bold>false</is-bold>
</domain-title-font>
<range-title>Porcentagem (%)</range-title>
<range-title-font>
<font-family>Arial</font-family>
<size>14</size>
<is-bold>false</is-bold>
</range-title-font>
<range-minimum>0</range-minimum>
<range-maximum>100</range-maximum>
<max-bar-width>0.15</max-bar-width>
<width>300</width>
<height>300</height>
<title>% cobertura de pré-natal</title>
<is-3D>false</is-3D>
</chart-attributes>
</component-definition>
</action-definition>
</actions>
</action-sequence>