Thread: How to show static line?

This question is answered.


Permlink Replies: 2 - Pages: 1 - Last Post: Aug 19, 2009 11:34 AM Last Post By: Tim Dexter
Benito Camelas

Posts: 78
Registered: 04/15/09
How to show static line?
Posted: Aug 19, 2009 4:28 AM
 
Click to report abuse...   Click to reply to this thread Reply
Hi all, I try to put Two Vertical Bar and One fixes line = value 500



chart:
<Graph graphType="BAR_VERT_CLUST2Y" depthAngle="50" depthRadius="8" pieDepth="30" pieTilt="20" seriesEffect="SE_AUTO_GRADIENT"><LegendArea visible="true"/>
<SeriesItems>
<Series id="0" markerType="MT_BAR" color="#ff0000"/>
<Series id="1" markerType=" MT_BAR" color="#99ccff"/>
<Series id="2" markerType="MT_MARKER" color="#ff0000" lineStyle="LS_SOLID"/>
</SeriesItems>
<PlotArea fillColor="#ffff33"/>
<LegendArea position="LAP_TOP"/>
<LegendText>
<GraphFont name="Arial" fontColor="#000000" size="14" />
</LegendText>
<Title text="" visible="true" horizontalAlignment="CENTER"/>
<LocalGridData colCount="{count(xdoxslt:group(.//ROW, 'saw_2'))}" rowCount="2">
<RowLabels><Label>Valor Obtenido</Label><Label>Valor Previsto</Label></RowLabels>
<ColLabels>
<xsl:for-each-group xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select=".//ROW" group-by="saw_2">
<xsl:sort select="current-group()/saw_2"/>
<Label>
<xsl:value-of select="current-group()/saw_2"/>
</Label>
</xsl:for-each-group>
</ColLabels>
<DataValues>
<RowData>
<xsl:for-each-group xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select=".//ROW" group-by="saw_2">
<xsl:sort select="current-group()/saw_2"/>
<Cell>
<xsl:value-of select="sum(current-group()/saw_3)"/>
</Cell>
</xsl:for-each-group>
</RowData>
<RowData>
<xsl:for-each-group xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select=".//ROW" group-by="saw_2">
<xsl:sort select="current-group()/saw_2"/>
<Cell>
<xsl:value-of select="sum(current-group()/saw_4)"/>
</Cell>
</xsl:for-each-group>
</RowData>
<RowData>
<xsl:for-each-group xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select=".//ROW" group-by="saw_2">
<xsl:sort select="current-group()/saw_2"/>
<Cell>
500
</Cell>
</xsl:for-each-group>
</RowData>
</DataValues>
</LocalGridData>
</Graph>

thanks for request
Vetsrini

Posts: 2,612
Registered: 07/24/06
Re: How to show static line?
Posted: Aug 19, 2009 10:08 AM   in response to: Benito Camelas in response to: Benito Camelas
Correct
Click to report abuse...   Click to reply to this thread Reply
add the following


Your code is this 
<SeriesItems>
<Series id="0" markerType="MT_BAR" color="#ff0000"/>
<Series id="1" markerType=" MT_BAR" color="#99ccff"/>
<Series id="2" markerType="MT_MARKER" color="#ff0000" lineStyle="LS_SOLID"/>
</SeriesItems>
 
Add the following after this 
 
<Y1ReferenceLine>
<ReferenceLine index="0" visible="true" lineWidth="2" text="ref line " value="500.0" displayedInLegend="true" lineColor="#ff11"/>
</Y1ReferenceLine>
 
again your code
Tim Dexter

Posts: 2,263
Registered: 01/10/01
Re: How to show static line?
Posted: Aug 19, 2009 10:12 AM   in response to: Benito Camelas in response to: Benito Camelas
 
Click to report abuse...   Click to reply to this thread Reply
<Y1ReferenceLine>
<ReferenceLine index="0" visible="true" lineWidth="2" text="My Ref Line" value="550.0" displayedInLegend="true" lineColor="#3366ff"/>
</Y1ReferenceLine>

Edited by: Tim Dexter on Aug 19, 2009 11:12 AM
Legend
Guru Guru : 2500 - 1000000 pts
Expert Expert : 1000 - 2499 pts
Pro Pro : 500 - 999 pts
Journeyman Journeyman : 200 - 499 pts
Newbie Newbie : 0 - 199 pts
Oracle ACE Director
Oracle ACE Member
Oracle Employee ACE
Helpful Answer (5 pts)
Correct Answer (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums