1 Reply Latest reply on Sep 6, 2013 11:25 AM by communityUser

    Labels missing on Y-axis in Bar graph with graphType="BAR_HORIZ_STACK"

    communityUser

      Hi All,

       

      The generated Bar graph I am talking about contains 10 labels on Y-axis which are being displayed alternately. i.e. alternate labels are being skipped but the bar and the corresponding value on the right hand side is present. Just the label on the left hand side is missing(alternately).

      The problem occurs only when this count increases 5, else it is being displayed correctly.

      Also this happens when my labels are of length 4 characters or more. For ex. "PP01", "PP02" and so on.

      They are being displayed correctly when i change the labels to single character values.

      I think the issue is with width of the Y-axis or the area that is reserved for bar graph, but I am unable to find the attribute related to this property.

      I have tried various combinations of axisMinAutoScaled="false" axisMinValue="0" axisMaxAutoScaled="false" axisMaxValue"".

       

      Any help would be greatly appreciated.

       

      Thanks.

        • 1. Re: Labels missing on Y-axis in Bar graph with graphType="BAR_HORIZ_STACK"
          communityUser

          Some more info in the context.

          The xslt I am using for the bar graph in question is -

           

          <Graph seriesEffect="SE_AUTO_GRADIENT" graphType="BAR_HORIZ_STACK">

          <Title text="Cumulative Provider Comparison" visible="true" horizontalAlignment="CENTER">

          <GraphFont bold="false" italic="false" underline="false" />

          </Title>

          <O1Title text="Providers" visible="true" />

          <Y1Axis axisMinAutoScaled="false" axisMinValue="0" axisMaxAutoScaled="false" axisMaxValue="{(xdoxslt:max(xdoxslt:get_variable($_XDOCTX, t ),current-group()/MET_INST_THR_VAL))*1.2}" />

          <Y1Title text="{current-group()/MET_UM_NAME}" visible="true" />

          <LegendArea visible="true" />

          <SeriesItems>

          <Series id="0" markerType="MT_BAR" />

          <Series id="1" markerType="MT_BAR" />

          <Series id="2" markerType="MT_MARKER" lineWidth="0" transparent="true" />

          </SeriesItems>

          <LocalGridData colCount="{count(xdoxslt:group(current-group(),  'PROV_UNIQUE_CD'))}" rowCount="3">

          <RowLabels>

          <xsl:if test="current-group()/MET_THR_RNG_VAL='&gt;='" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

          <Label>Meets Institutional Threshold</Label>

          <Label>Below Institutional Threshold</Label>

          </xsl:if>

          <xsl:if test="current-group()/MET_THR_RNG_VAL='&lt;='" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

          <Label>Meets Institutional Threshold</Label>

          <Label>Above Institutional Threshold</Label>

          </xsl:if>

          </RowLabels>

          <ColLabels>

          <xsl:for-each-group select="current-group()" group-by="PROV_UNIQUE_CD" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

          <xsl:sort select="current-group()/PROV_UNIQUE_CD" />

          <Label>

          <xsl:value-of select="current-group()/PROV_UNIQUE" />

          </Label>

          </xsl:for-each-group>

          </ColLabels>

          <DataValues>

          <xsl:if test="current-group()/MET_THR_RNG_VAL='&lt;='" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

          <RowData>

          <xsl:for-each-group select="current-group()" group-by="PROV_UNIQUE_CD">

          <xsl:sort select="current-group()/PROV_UNIQUE_CD" />

          <Cell>

          <xsl:variable name="Fcnt">

          <xsl:value-of select="xdoxslt:round(sum(current-group()/PROV_MET_DATA_MAP_FIELD_VAL[.!='']) ,current-group()/MET_CALC_PRC_VAL)" />

          </xsl:variable>

          <xsl:if test="number($Fcnt) &lt;= number(current-group()/MET_INST_THR_VAL)">

          <xsl:value-of select="xdoxslt:round(sum(current-group()/PROV_MET_DATA_MAP_FIELD_VAL[.!='']) ,current-group()/MET_CALC_PRC_VAL)" />

          </xsl:if>

          </Cell>

          </xsl:for-each-group>

          </RowData>

          <RowData>

          <xsl:for-each-group select="current-group()" group-by="PROV_UNIQUE_CD">

          <xsl:sort select="current-group()/PROV_UNIQUE_CD" />

          <Cell>

          <xsl:variable name="Fcnt1">

          <xsl:value-of select="xdoxslt:round(sum(current-group()/PROV_MET_DATA_MAP_FIELD_VAL[.!='']) ,current-group()/MET_CALC_PRC_VAL)" />

          </xsl:variable>

          <xsl:if test="number($Fcnt1) &gt; number(current-group()/MET_INST_THR_VAL)">

          <xsl:value-of select="xdoxslt:round(sum(current-group()/PROV_MET_DATA_MAP_FIELD_VAL[.!='']) ,current-group()/MET_CALC_PRC_VAL)" />

          </xsl:if>

          </Cell>

          </xsl:for-each-group>

          </RowData>

          <RowData>

          <xsl:for-each-group select="current-group()" group-by="PROV_UNIQUE_CD">

          <xsl:sort select="current-group()/PROV_UNIQUE_CD" />

          <xsl:if test="sum(current-group()/PROV_MET_DATA_MAP_FIELD_VAL[.!=''])!=0">

          <xsl:variable name="Fcnt2">

          <xsl:value-of select="xdoxslt:round(sum(current-group()/PROV_MET_DATA_MAP_FIELD_VAL[.!='']) ,current-group()/MET_CALC_PRC_VAL)" />

          </xsl:variable>

          <Cell>

          <xsl:value-of select="xdoxslt:ifelse($Fcnt2!=0,'','0')" />

          </Cell>

          </xsl:if>

          </xsl:for-each-group>

          </RowData>

          </xsl:if>

          <xsl:if test="current-group()/MET_THR_RNG_VAL='&gt;='" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

          <RowData>

          <xsl:for-each-group select="current-group()" group-by="PROV_UNIQUE_CD">

          <xsl:sort select="current-group()/PROV_UNIQUE_CD" />

          <Cell>

          <xsl:variable name="Fcnt">

          <xsl:value-of select="xdoxslt:round(sum(current-group()/PROV_MET_DATA_MAP_FIELD_VAL[.!='']) ,current-group()/MET_CALC_PRC_VAL)" />

          </xsl:variable>

          <xsl:if test="number($Fcnt) &gt;= number(current-group()/MET_INST_THR_VAL)">

          <xsl:value-of select="xdoxslt:round(sum(current-group()/PROV_MET_DATA_MAP_FIELD_VAL[.!='']) ,current-group()/MET_CALC_PRC_VAL)" />

          </xsl:if>

          </Cell>

          </xsl:for-each-group>

          </RowData>

          <RowData>

          <xsl:for-each-group select="current-group()" group-by="PROV_UNIQUE_CD">

          <xsl:sort select="current-group()/PROV_UNIQUE_CD" />

          <Cell>

          <xsl:variable name="Fcnt1">

          <xsl:value-of select="xdoxslt:round(sum(current-group()/PROV_MET_DATA_MAP_FIELD_VAL[.!='']) ,current-group()/MET_CALC_PRC_VAL)" />

          </xsl:variable>

          <xsl:if test="number($Fcnt1) &lt; number(current-group()/MET_INST_THR_VAL)">

          <xsl:value-of select="xdoxslt:round(sum(current-group()/PROV_MET_DATA_MAP_FIELD_VAL[.!='']) ,current-group()/MET_CALC_PRC_VAL)" />

          </xsl:if>

          </Cell>

          </xsl:for-each-group>

          </RowData>

          <RowData>

          <xsl:for-each-group select="current-group()" group-by="PROV_UNIQUE_CD">

          <xsl:sort select="current-group()/PROV_UNIQUE_CD" />

          <xsl:if test="sum(current-group()/PROV_MET_DATA_MAP_FIELD_VAL[.!=''])!=0">

          <xsl:variable name="Fcnt2">

          <xsl:value-of select="xdoxslt:round(sum(current-group()/PROV_MET_DATA_MAP_FIELD_VAL[.!='']) ,current-group()/MET_CALC_PRC_VAL)" />

          </xsl:variable>

          <Cell>

          <xsl:value-of select="xdoxslt:ifelse($Fcnt2!=0,'','0')" />

          </Cell>

          </xsl:if>

          </xsl:for-each-group>

          </RowData>

          </xsl:if>

          </DataValues>

          </LocalGridData>

          <MarkerText visible="true">

          <Y1ViewFormat>

          <ViewFormat decimalDigit="{current-group()/MET_CALC_PRC_VAL}" decimalDigitUsed="true" decimalSeparatorUsed="true" numberType="percent" />

          </Y1ViewFormat>

          </MarkerText>

          <Y1ReferenceLine>

          <ReferenceLine index="0" visible="true" lineWidth="1" lineStyle="LS_DASH" text="Institutional Threshold ({xdoxslt:format_number(MET_INST_THR_VAL, MET_CALC_PRC_VAL, '')} {current-group()/MET_UM_NAME})" value="{current-group()/MET_INST_THR_VAL}" displayedInLegend="true" lineColor="#3366ff" />

          </Y1ReferenceLine>

          </Graph>

           

           

          Thanks.