Percentile/Legend error on Pie Chart in BIRT 2.5.1 [message #502261] |
Mon, 07 December 2009 13:54 |
Missing name Missing name Messages: 94 Registered: November 2009 |
Member |
|
|
Hi,
Following this thread, I downloaded and tried BIRT 2.5.1 designer and runtime. This solved my problem of the crosstab but when I open another report that contains a pie-chart I get the following error:
java.lang.ClassCastException: org.eclipse.birt.chart.computation.LegendItemHints cannot be cast to org.eclipse.birt.chart.computation.DataPointHints
at org.eclipse.birt.chart.device.svg.SVGInteractiveRenderer.add JSCodeOnElement(SVGInteractiveRenderer.java:1583)
at org.eclipse.birt.chart.device.svg.SVGInteractiveRenderer.add ActionJSCode(SVGInteractiveRenderer.java:618)
at org.eclipse.birt.chart.device.svg.SVGInteractiveRenderer.add EventHandling(SVGInteractiveRenderer.java:574)
WARNING: Exception
java.lang.ClassCastException: org.eclipse.birt.chart.computation.LegendItemHints cannot be cast to org.eclipse.birt.chart.computation.DataPointHints
at org.eclipse.birt.chart.device.svg.SVGInteractiveRenderer.add JSCodeOnElement(SVGInteractiveRenderer.java:1583)
at org.eclipse.birt.chart.device.svg.SVGInteractiveRenderer.add ActionJSCode(SVGInteractiveRenderer.java:618)
at org.eclipse.birt.chart.device.svg.SVGInteractiveRenderer.add EventHandling(SVGInteractiveRenderer.java:574)
at org.eclipse.birt.chart.device.svg.SVGInteractiveRenderer.add Interactivity(SVGInteractiveRenderer.java:498)
at org.eclipse.birt.chart.device.svg.SVGRendererImpl.after(SVGR endererImpl.java:231)
at org.eclipse.birt.chart.factory.Generator.render(Generator.ja va:1299)
at org.eclipse.birt.chart.reportitem.ChartReportItemPresentatio nBase.renderToImageFile(ChartReportItemPresentationBase.java :967)
at org.eclipse.birt.chart.reportitem.ChartReportItemPresentatio nBase.onRowSets(ChartReportItemPresentationBase.java:802)
at org.eclipse.birt.chart.reportitem.ChartReportItemPresentatio nProxy.onRowSets(ChartReportItemPresentationProxy.java:116)
at org.eclipse.birt.report.engine.presentation.LocalizedContent Visitor.processExtendedContent(LocalizedContentVisitor.java: 964)
at org.eclipse.birt.report.engine.presentation.LocalizedContent Visitor.localizeForeign(LocalizedContentVisitor.java:553)
at org.eclipse.birt.report.engine.presentation.LocalizedContent Visitor.localize(LocalizedContentVisitor.java:161)
at org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportItemExecutor.execute(LocalizedReportItemExecutor.ja va:37)
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStacking LM.layoutNodes(HTMLBlockStackingLM.java:65)
at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.la youtChildren(HTMLStackingLM.java:26)
at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.la yout(HTMLAbstractLM.java:137)
at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackin gLM.resumeLayout(HTMLInlineStackingLM.java:111)
at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackin gLM.layoutNodes(HTMLInlineStackingLM.java:160)
at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.la youtChildren(HTMLStackingLM.java:26)
at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.la yout(HTMLAbstractLM.java:137)
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStacking LM.layoutNodes(HTMLBlockStackingLM.java:70)
at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.la youtChildren(HTMLStackingLM.java:26)
at org.eclipse.birt.report.engine.layout.html.HTMLTableLM.layou tChildren(HTMLTableLM.java:132)
at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.la yout(HTMLAbstractLM.java:137)
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStacking LM.layoutNodes(HTMLBlockStackingLM.java:70)
at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout (HTMLPageLM.java:90)
at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutE ngine.layout(HTMLReportLayoutEngine.java:99)
at org.eclipse.birt.report.engine.api.impl.RenderTask$PageRange Render.render(RenderTask.java:600)
at org.eclipse.birt.report.engine.api.impl.RenderTask.render(Re nderTask.java:221)
at com.fineos.reporting.birt.BirtReportManager.renderReport(Bir tReportManager.java:907)
at com.fineos.reporting.birt.BirtReportManager.renderReportAsUR L(BirtReportManager.java:944)
at com.fineos.reporting.birt.BIRTReportsProvider.renderReportHT ML(BIRTReportsProvider.java:127)
at com.fineos.reporting.services.serviceskeleton.ReportingServi cesSkeleton.getHTMLAsUrl(ReportingServicesSkeleton.java:231)
at com.fineos.reports.operationtypes.ReportingServicesMessageRe ceiverInOut.invokeBusinessLogic(ReportingServicesMessageRece iverInOut.java:79)
at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invo keBusinessLogic(AbstractInOutMessageReceiver.java:40)
at org.apache.axis2.receivers.AbstractMessageReceiver.receive(A bstractMessageReceiver.java:100)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:1 76)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHT TPPostRequest(HTTPTransportUtils.java:275)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServl et.java:131)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
This report works fine in Tomcat with BIRT runtime 2.3.1 and also runs in the RCP designer 2.5.1 but doesnt run when dropped into Tomcat with BIRT 2.5.1 runtime
Does this ring any bells with anyone?
Thanks
[Updated on: Wed, 09 December 2009 15:26] Report message to a moderator
|
|
|
Re: Pie Chart error following 2.5.1 upgrade [message #502267 is a reply to message #502261] |
Mon, 07 December 2009 14:29 |
Missing name Missing name Messages: 94 Registered: November 2009 |
Member |
|
|
It appears to be caused by the following snippet in SVGInteractiveRenderer
private void addJSCodeOnElement(StructureSource src, Trigger tg, Element elm, String scriptEvent, int type, boolean bDblClick)
{
Series seRT = (Series)getElementFromSource(src, StructureType.SERIES);
if(seRT != null)
{
Series seDT = null;
String groupIdentifier = null;
if(isColoredByCategories())
{
seDT = findCategorySeries(seRT);
int baseIndex = ((DataPointHints)src.getSource()).getIndex();
...
}
Does anyone know what its trying to do here, or why it crashes on 2.5.1. Having looked at the code on 2.3.1 the exact same line is there......
[Updated on: Mon, 07 December 2009 14:54] Report message to a moderator
|
|
|
|
|
Re: Percentile Value Data error on Pie Chart in BIRT 2.5.1 [message #502732 is a reply to message #502261] |
Wed, 09 December 2009 15:08 |
Missing name Missing name Messages: 94 Registered: November 2009 |
Member |
|
|
Hi Jason,
I have reproduced this using the sample DB.
I used the exact same chart/table definitions but changed the datasource to the sample. I also changed the tables used in the query to be those from the sample, but the query structure hasn't changed. As a result the the logic of the query is prob doesn't make any sense, but it does return data which is all I wanted
Can you have a look, it runs fine in the designer but I get the same error in tomcat;
Caused by: java.lang.ClassCastException: org.eclipse.birt.chart.computation.LegendItemHints cannot be cast to org.eclipse.birt.chart.computation.DataP
ointHints
at org.eclipse.birt.chart.device.svg.SVGInteractiveRenderer.add JSCodeOnElement(SVGInteractiveRenderer.java:1583)
If I hide the legend it generates the pie chart (but without a legend obviously) so it must be something in the legend code...
**it appears attach of a document doesnt work so I have pasted the report showing the error on the sample DB below
thanks
Trevor
<?xml version="1.0" encoding="UTF-8"?>
<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.20" id="1">
<property name="createdBy">Eclipse BIRT Designer Version 2.5.1.v20090903 Build <2.5.1.v20090922-0630></property>
<property name="units">in</property>
<text-property name="title">new report</text-property>
<text-property name="displayName">new report</text-property>
<property name="iconFile">/templates/blank_report.gif</property>
<property name="bidiLayoutOrientation">ltr</property>
<parameters>
<scalar-parameter name="FINEOS_CURRENT_USER" id="128">
<text-property name="promptText">A param</text-property>
<property name="valueType">static</property>
<property name="dataType">integer</property>
<property name="distinct">true</property>
<simple-property-list name="defaultValue">
<value type="constant">123</value>
</simple-property-list>
<property name="paramType">simple</property>
<property name="controlType">text-box</property>
<structure name="format">
<property name="category">Unformatted</property>
</structure>
</scalar-parameter>
</parameters>
<data-sources>
<oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc" name="Data Source" id="127">
<property name="odaDriverClass">org.eclipse.birt.report.data.oda.sampledb.Driver </property>
<property name="odaURL">jdbc:classicmodels:sampledb</property>
<property name="odaUser">ClassicModels</property>
</oda-data-source>
</data-sources>
<data-sets>
<oda-data-set extensionID="org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet " name="my_data_set" id="53">
<list-property name="columnHints">
<structure>
<property name="columnName">C</property>
<text-property name="displayName">C</text-property>
</structure>
<structure>
<property name="columnName">I</property>
<text-property name="displayName">I</text-property>
</structure>
<structure>
<property name="columnName">NAME</property>
<text-property name="displayName">NAME</text-property>
</structure>
<structure>
<property name="columnName">DESCRIPTION</property>
<text-property name="displayName">DESCRIPTION</text-property>
</structure>
<structure>
<property name="columnName">VOLUME</property>
<text-property name="displayName">VOLUME</text-property>
</structure>
</list-property>
<structure name="cachedMetaData">
<list-property name="resultSet">
<structure>
<property name="position">1</property>
<property name="name">C</property>
<property name="dataType">float</property>
</structure>
<structure>
<property name="position">2</property>
<property name="name">I</property>
<property name="dataType">integer</property>
</structure>
<structure>
<property name="position">3</property>
<property name="name">NAME</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">4</property>
<property name="name">DESCRIPTION</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">5</property>
<property name="name">VOLUME</property>
<property name="dataType">integer</property>
</structure>
</list-property>
</structure>
<property name="dataSource">Data Source</property>
<list-property name="resultSet">
<structure>
<property name="position">1</property>
<property name="name">C</property>
<property name="nativeName">C</property>
<property name="dataType">float</property>
<property name="nativeDataType">8</property>
</structure>
<structure>
<property name="position">2</property>
<property name="name">I</property>
<property name="nativeName">I</property>
<property name="dataType">integer</property>
<property name="nativeDataType">4</property>
</structure>
<structure>
<property name="position">3</property>
<property name="name">NAME</property>
<property name="nativeName">NAME</property>
<property name="dataType">string</property>
<property name="nativeDataType">12</property>
</structure>
<structure>
<property name="position">4</property>
<property name="name">DESCRIPTION</property>
<property name="nativeName">DESCRIPTION</property>
<property name="dataType">string</property>
<property name="nativeDataType">12</property>
</structure>
<structure>
<property name="position">5</property>
<property name="name">VOLUME</property>
<property name="nativeName">VOLUME</property>
<property name="dataType">integer</property>
<property name="nativeDataType">4</property>
</structure>
</list-property>
<xml-property name="queryText"><![CDATA[select
cust.creditlimit C,
cust.customernumber I,
cust.customername Name,
cust.phone DESCRIPTION,
count(cust.customernumber) as VOLUME
from orders o,
customers cust
where cust.customernumber = o.customernumber
group by
cust.creditlimit,
cust.customernumber,
cust.customername,
cust.phone
order by volume desc]]></xml-property>
</oda-data-set>
</data-sets>
<styles>
<style name="report" id="4">
<property name="fontFamily">sans-serif</property>
<property name="fontSize">10pt</property>
</style>
<style name="crosstab-cell" id="5">
<property name="borderBottomColor">#CCCCCC</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">1pt</property>
<property name="borderLeftColor">#CCCCCC</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1pt</property>
<property name="borderRightColor">#CCCCCC</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1pt</property>
<property name="borderTopColor">#CCCCCC</property>
<property name="borderTopStyle">solid</property>
<property name="borderTopWidth">1pt</property>
</style>
<style name="crosstab" id="6">
<property name="borderBottomColor">#CCCCCC</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">1pt</property>
<property name="borderLeftColor">#CCCCCC</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1pt</property>
<property name="borderRightColor">#CCCCCC</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1pt</property>
<property name="borderTopColor">#CCCCCC</property>
<property name="borderTopStyle">solid</property>
<property name="borderTopWidth">1pt</property>
</style>
</styles>
<page-setup>
<simple-master-page name="Simple MasterPage" id="2">
<page-footer>
<text id="3">
<property name="contentType">html</property>
<text-property name="content"><![CDATA[<value-of>new Date()</value-of>]]></text-property>
</text>
</page-footer>
</simple-master-page>
</page-setup>
<body>
<extended-item extensionName="Chart" name="ClaimsByCaseTypeChart" id="37">
<xml-property name="xmlRepresentation"><![CDATA[<model:ChartWithoutAxes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:attribute="http://www.birt.eclipse.org/ChartModelAttribute" xmlns:layout="http://www.birt.eclipse.org/ChartModelLayout" xmlns:model="http://www.birt.eclipse.org/ChartModel" xmlns:type="http://www.birt.eclipse.org/ChartModelType">
<Type>Pie Chart</Type>
<SubType>Standard Pie Chart</SubType>
<Description>
<Value></Value>
<Font>
<Alignment/>
</Font>
</Description>
<Block>
<Children xsi:type="layout:TitleBlock">
<Bounds>
<Left>0.0</Left>
<Top>0.0</Top>
<Width>0.0</Width>
<Height>0.0</Height>
</Bounds>
<Insets>
<Top>3.0</Top>
<Left>3.0</Left>
<Bottom>3.0</Bottom>
<Right>3.0</Right>
</Insets>
<Row>-1</Row>
<Column>-1</Column>
<Rowspan>-1</Rowspan>
<Columnspan>-1</Columnspan>
<Outline>
<Style>Solid</Style>
<Thickness>1</Thickness>
<Color>
<Transparency>255</Transparency>
<Red>0</Red>
<Green>0</Green>
<Blue>0</Blue>
</Color>
<Visible>false</Visible>
</Outline>
<Visible>true</Visible>
<Label>
<Caption>
<Value></Value>
<Font>
<Name>Arial</Name>
<Size>16.0</Size>
<Bold>true</Bold>
<Alignment>
<horizontalAlignment>Center</horizontalAlignment>
<verticalAlignment>Center</verticalAlignment>
</Alignment>
</Font>
</Caption>
<Background xsi:type="attribute:ColorDefinition">
<Transparency>0</Transparency>
<Red>255</Red>
<Green>255</Green>
<Blue>255</Blue>
</Background>
<Outline>
<Style>Solid</Style>
<Thickness>1</Thickness>
<Color>
<Transparency>255</Transparency>
<Red>0</Red>
<Green>0</Green>
<Blue>0</Blue>
</Color>
<Visible>false</Visible>
</Outline>
<Insets>
<Top>0.0</Top>
<Left>2.0</Left>
<Bottom>0.0</Bottom>
<Right>3.0</Right>
</Insets>
<Visible>true</Visible>
</Label>
</Children>
<Children xsi:type="layout:Plot">
<Bounds>
<Left>0.0</Left>
<Top>0.0</Top>
<Width>0.0</Width>
<Height>0.0</Height>
</Bounds>
<Insets>
<Top>3.0</Top>
<Left>3.0</Left>
<Bottom>3.0</Bottom>
<Right>3.0</Right>
</Insets>
<Row>-1</Row>
<Column>-1</Column>
<Rowspan>-1</Rowspan>
<Columnspan>-1</Columnspan>
<Outline>
<Style>Solid</Style>
<Thickness>1</Thickness>
<Color>
<Transparency>255</Transparency>
<Red>0</Red>
<Green>0</Green>
<Blue>0</Blue>
</Color>
<Visible>false</Visible>
</Outline>
<Visible>true</Visible>
<HorizontalSpacing>10</HorizontalSpacing>
<VerticalSpacing>10</VerticalSpacing>
<ClientArea>
<Background xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>255</Red>
<Green>255</Green>
<Blue>255</Blue>
</Background>
<Outline>
<Style>Solid</Style>
<Thickness>0</Thickness>
<Color>
<Transparency>255</Transparency>
<Red>0</Red>
<Green>0</Green>
<Blue>0</Blue>
</Color>
<Visible>false</Visible>
</Outline>
<Insets>
<Top>0.0</Top>
<Left>0.0</Left>
<Bottom>0.0</Bottom>
<Right>0.0</Right>
</Insets>
</ClientArea>
</Children>
<Children xsi:type="layout:Legend">
<Bounds>
<Left>0.0</Left>
<Top>0.0</Top>
<Width>0.0</Width>
<Height>0.0</Height>
</Bounds>
<Insets>
<Top>3.0</Top>
<Left>3.0</Left>
<Bottom>3.0</Bottom>
<Right>3.0</Right>
</Insets>
<Row>-1</Row>
<Column>-1</Column>
<Rowspan>-1</Rowspan>
<Columnspan>-1</Columnspan>
<Outline>
<Style>Solid</Style>
<Thickness>1</Thickness>
<Color>
<Transparency>255</Transparency>
<Red>0</Red>
<Green>0</Green>
<Blue>0</Blue>
</Color>
<Visible>false</Visible>
</Outline>
<Visible>true</Visible>
<Triggers>
<Condition>onmouseover</Condition>
<Action>
<Type>Highlight</Type>
<Value xsi:type="attribute:SeriesValue">
<Name></Name>
</Value>
</Action>
</Triggers>
<ClientArea>
<Background xsi:type="attribute:ColorDefinition">
<Transparency>0</Transparency>
<Red>255</Red>
<Green>255</Green>
<Blue>255</Blue>
</Background>
<Outline>
<Style>Solid</Style>
<Thickness>0</Thickness>
<Color>
<Transparency>255</Transparency>
<Red>0</Red>
<Green>0</Green>
<Blue>0</Blue>
</Color>
<Visible>true</Visible>
</Outline>
<Insets>
<Top>2.0</Top>
<Left>2.0</Left>
<Bottom>2.0</Bottom>
<Right>2.0</Right>
</Insets>
</ClientArea>
<Text>
<Value><undefined></Value>
<Font>
<Name>Arial</Name>
<Alignment/>
</Font>
</Text>
<Orientation>Vertical</Orientation>
<Direction>Top_Bottom</Direction>
<Separator>
<Style>Solid</Style>
<Thickness>1</Thickness>
<Color>
<Transparency>255</Transparency>
<Red>0</Red>
<Green>0</Green>
<Blue>0</Blue>
</Color>
<Visible>true</Visible>
</Separator>
<Position>Right</Position>
<ItemType>Categories</ItemType>
<Title>
<Caption>
<Value>Case types</Value>
<Font>
<Name>Arial</Name>
<Size>12.0</Size>
<Alignment/>
</Font>
</Caption>
<Background xsi:type="attribute:ColorDefinition">
<Transparency>0</Transparency>
<Red>255</Red>
<Green>255</Green>
<Blue>255</Blue>
</Background>
<Outline>
<Style>Solid</Style>
<Thickness>1</Thickness>
<Color>
<Transparency>255</Transparency>
<Red>0</Red>
<Green>0</Green>
<Blue>0</Blue>
</Color>
<Visible>false</Visible>
</Outline>
<Insets>
<Top>0.0</Top>
<Left>2.0</Left>
<Bottom>0.0</Bottom>
<Right>3.0</Right>
</Insets>
<Visible>true</Visible>
</Title>
<TitlePosition>Above</TitlePosition>
</Children>
<Bounds>
<Left>0.0</Left>
<Top>0.0</Top>
<Width>492.75</Width>
<Height>375.0</Height>
</Bounds>
<Insets>
<Top>3.0</Top>
<Left>3.0</Left>
<Bottom>3.0</Bottom>
<Right>3.0</Right>
</Insets>
<Row>-1</Row>
<Column>-1</Column>
<Rowspan>-1</Rowspan>
<Columnspan>-1</Columnspan>
<Outline>
<Style>Solid</Style>
<Thickness>1</Thickness>
<Color>
<Transparency>255</Transparency>
<Red>0</Red>
<Green>0</Green>
<Blue>0</Blue>
</Color>
<Visible>false</Visible>
</Outline>
<Background xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>255</Red>
<Green>255</Green>
<Blue>255</Blue>
</Background>
<Visible>true</Visible>
</Block>
<Dimension>Two_Dimensional</Dimension>
<Units>Points</Units>
<SeriesThickness>10.0</SeriesThickness>
<GridColumnCount>1</GridColumnCount>
<SampleData>
<BaseSampleData>
<DataSetRepresentation>'A','B','C'</DataSetRepresentation>
</BaseSampleData>
<OrthogonalSampleData>
<DataSetRepresentation>5.0,4.0,12.0</DataSetRepresentation >
<SeriesDefinitionIndex>0</SeriesDefinitionIndex>
</OrthogonalSampleData>
<AncillarySampleData>
<DataSetRepresentation>Series 1</DataSetRepresentation>
</AncillarySampleData>
</SampleData>
<Interactivity>
<Enable>true</Enable>
<LegendBehavior>HighlightSerie</LegendBehavior>
</Interactivity>
<EmptyMessage>
<Caption>
<Value></Value>
<Font>
<Alignment/>
</Font>
</Caption>
<Background xsi:type="attribute:ColorDefinition">
<Transparency>0</Transparency>
<Red>255</Red>
<Green>255</Green>
<Blue>255</Blue>
</Background>
<Outline>
<Style>Solid</Style>
<Thickness>1</Thickness>
<Color>
<Transparency>255</Transparency>
<Red>0</Red>
<Green>0</Green>
<Blue>0</Blue>
</Color>
</Outline>
<Insets>
<Top>0.0</Top>
<Left>2.0</Left>
<Bottom>0.0</Bottom>
<Right>3.0</Right>
</Insets>
<Visible>false</Visible>
</EmptyMessage>
<SeriesDefinitions>
<Query>
<Definition></Definition>
</Query>
<SeriesPalette>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>80</Red>
<Green>166</Green>
<Blue>218</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>242</Red>
<Green>88</Green>
<Blue>106</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>232</Red>
<Green>172</Green>
<Blue>57</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>128</Red>
<Green>255</Green>
<Blue>128</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>64</Red>
<Green>128</Green>
<Blue>128</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>128</Red>
<Green>128</Green>
<Blue>192</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>170</Red>
<Green>85</Green>
<Blue>85</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>128</Red>
<Green>128</Green>
<Blue>0</Blue>
</Entries>
</SeriesPalette>
<SeriesDefinitions>
<Query>
<Definition></Definition>
</Query>
<SeriesPalette>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>80</Red>
<Green>166</Green>
<Blue>218</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>242</Red>
<Green>88</Green>
<Blue>106</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>232</Red>
<Green>172</Green>
<Blue>57</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>128</Red>
<Green>255</Green>
<Blue>128</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>64</Red>
<Green>128</Green>
<Blue>128</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>128</Red>
<Green>128</Green>
<Blue>192</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>170</Red>
<Green>85</Green>
<Blue>85</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>128</Red>
<Green>128</Green>
<Blue>0</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>192</Red>
<Green>192</Green>
<Blue>192</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>255</Red>
<Green>255</Green>
<Blue>128</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>128</Red>
<Green>192</Green>
<Blue>128</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>7</Red>
<Green>146</Green>
<Blue>94</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>0</Red>
<Green>128</Green>
<Blue>255</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>255</Red>
<Green>128</Green>
<Blue>192</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>0</Red>
<Green>255</Green>
<Blue>255</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>255</Red>
<Green>128</Green>
<Blue>128</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>0</Red>
<Green>128</Green>
<Blue>192</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>128</Red>
<Green>128</Green>
<Blue>192</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>255</Red>
<Green>0</Green>
<Blue>255</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>128</Red>
<Green>64</Green>
<Blue>64</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>255</Red>
<Green>128</Green>
<Blue>64</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>80</Red>
<Green>240</Green>
<Blue>120</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>0</Red>
<Green>64</Green>
<Blue>128</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>128</Red>
<Green>0</Green>
<Blue>64</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>255</Red>
<Green>0</Green>
<Blue>128</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>128</Red>
<Green>128</Green>
<Blue>64</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>128</Red>
<Green>128</Green>
<Blue>128</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>255</Red>
<Green>128</Green>
<Blue>255</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>0</Red>
<Green>64</Green>
<Blue>0</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>0</Red>
<Green>0</Green>
<Blue>0</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>255</Red>
<Green>255</Green>
<Blue>255</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>255</Red>
<Green>128</Green>
<Blue>0</Blue>
</Entries>
</SeriesPalette>
<Series xsi:type="type:PieSeries">
<Visible>true</Visible>
<Label>
<Caption>
<Value><undefined></Value>
<Font>
<Name>Arial</Name>
<Alignment/>
</Font>
</Caption>
<Background xsi:type="attribute:ColorDefinition">
<Transparency>0</Transparency>
<Red>255</Red>
<Green>255</Green>
<Blue>255</Blue>
</Background>
<Outline>
<Style>Solid</Style>
<Thickness>1</Thickness>
<Color>
<Transparency>255</Transparency>
<Red>0</Red>
<Green>0</Green>
<Blue>0</Blue>
</Color>
<Visible>false</Visible>
</Outline>
<Insets>
<Top>0.0</Top>
<Left>2.0</Left>
<Bottom>0.0</Bottom>
<Right>3.0</Right>
</Insets>
<Visible>true</Visible>
</Label>
<DataDefinition>
<Definition>row["VOLUME"]</Definition>
</DataDefinition>
<SeriesIdentifier></SeriesIdentifier>
<DataPoint>
<Components>
<Type>Percentile_Orthogonal_Value</Type>
<FormatSpecifier xsi:type="attribute:JavaNumberFormatSpecifier">
<Pattern>##.##%</Pattern>
</FormatSpecifier>
</Components>
<Separator>, </Separator>
</DataPoint>
<LabelPosition>Outside</LabelPosition>
<Stacked>false</Stacked>
<Triggers>
<Condition>onmouseover</Condition>
<Action>
<Type>Show_Tooltip</Type>
<Value xsi:type="attribute:TooltipValue">
<Text>row["DESCRIPTION"]</Text>
<Delay>200</Delay>
</Value>
</Action>
</Triggers>
<Explosion>0</Explosion>
<ExplosionExpression></ExplosionExpression>
<Title>
<Caption>
<Value></Value>
<Font>
<Size>16.0</Size>
<Bold>true</Bold>
<Alignment/>
</Font>
</Caption>
<Background xsi:type="attribute:ColorDefinition">
<Transparency>0</Transparency>
<Red>255</Red>
<Green>255</Green>
<Blue>255</Blue>
</Background>
<Outline>
<Style>Solid</Style>
<Thickness>1</Thickness>
<Color>
<Transparency>255</Transparency>
<Red>0</Red>
<Green>0</Green>
<Blue>0</Blue>
</Color>
</Outline>
<Insets>
<Top>0.0</Top>
<Left>2.0</Left>
<Bottom>0.0</Bottom>
<Right>3.0</Right>
</Insets>
<Visible>true</Visible>
</Title>
<TitlePosition>Below</TitlePosition>
<LeaderLineAttributes>
<Style>Solid</Style>
<Thickness>1</Thickness>
<Color>
<Transparency>255</Transparency>
<Red>0</Red>
<Green>0</Green>
<Blue>0</Blue>
</Color>
<Visible>true</Visible>
</LeaderLineAttributes>
<LeaderLineStyle>Fixed_Length</LeaderLineStyle>
<LeaderLineLength>10.0</LeaderLineLength>
</Series>
<Grouping>
<Enabled>false</Enabled>
<GroupingInterval>2.0</GroupingInterval>
<GroupType>Text</GroupType>
<AggregateExpression>Sum</AggregateExpression>
</Grouping>
<Sorting>Descending</Sorting>
</SeriesDefinitions>
<Series>
<Visible>true</Visible>
<Label>
<Caption>
<Value><undefined></Value>
<Font>
<Alignment/>
</Font>
</Caption>
<Background xsi:type="attribute:ColorDefinition">
<Transparency>0</Transparency>
<Red>255</Red>
<Green>255</Green>
<Blue>255</Blue>
</Background>
<Outline>
<Style>Solid</Style>
<Thickness>1</Thickness>
<Color>
<Transparency>255</Transparency>
<Red>0</Red>
<Green>0</Green>
<Blue>0</Blue>
</Color>
<Visible>false</Visible>
</Outline>
<Insets>
<Top>0.0</Top>
<Left>2.0</Left>
<Bottom>0.0</Bottom>
<Right>3.0</Right>
</Insets>
<Visible>false</Visible>
</Label>
<DataDefinition>
<Definition>row["NAME"]</Definition>
</DataDefinition>
<SeriesIdentifier></SeriesIdentifier>
<DataPoint>
<Components>
<Type>Orthogonal_Value</Type>
</Components>
<Separator>, </Separator>
</DataPoint>
<LabelPosition>Outside</LabelPosition>
<Stacked>false</Stacked>
</Series>
<Grouping>
<Enabled>false</Enabled>
<GroupingInterval>2.0</GroupingInterval>
<GroupType>Text</GroupType>
<AggregateExpression>Sum</AggregateExpression>
</Grouping>
</SeriesDefinitions>
<MinSlice>2.0</MinSlice>
<MinSlicePercent>true</MinSlicePercent>
<MinSliceLabel>Others</MinSliceLabel>
</model:ChartWithoutAxes>
]]></xml-property>
<property name="outputFormat">SVG</property>
<structure name="action">
<property name="targetWindow">_self</property>
<property name="linkType">hyperlink</property>
<property name="targetFileType">report-design</property>
<expression name="uri">" runReport?report=claimsVolumeByCaseType.rptdesign&ca seType_C= "+ row["C"] + "&caseType_I=" + row["I"] + "&caseTypeDesc=" + row["NAME"]</expression>
</structure>
<property name="display">block</property>
<property name="dataSet">my_data_set</property>
<property name="height">500px</property>
<property name="width">6.84375in</property>
<list-property name="boundDataColumns">
<structure>
<property name="name">C</property>
<expression name="expression">dataSetRow["C"]</expression>
<property name="dataType">decimal</property>
</structure>
<structure>
<property name="name">I</property>
<expression name="expression">dataSetRow["I"]</expression>
<property name="dataType">decimal</property>
</structure>
<structure>
<property name="name">NAME</property>
<expression name="expression">dataSetRow["NAME"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">DESCRIPTION</property>
<expression name="expression">dataSetRow["DESCRIPTION"]</expression >
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">VOLUME</property>
<expression name="expression">dataSetRow["VOLUME"]</expression>
<property name="dataType">decimal</property>
</structure>
</list-property>
</extended-item>
</body>
</report>
[Updated on: Wed, 09 December 2009 15:25] Report message to a moderator
|
|
|
Re: Percentile Value Data error on Pie Chart in BIRT 2.5.1 [message #502759 is a reply to message #502732] |
Wed, 09 December 2009 16:04 |
|
Trevor,
It does not look like the whole report came through.
Can you email it to me at jasonweathersby at windstream dot net.
Jason
TREVOR.HIGGINS@FINEOS.COM wrote:
> Hi Jason,
> I have reproduced this using the sample DB.
> I used the exact same chart/table definitions but changed the datasource
> to the sample. I also changed the tables used in the query to be those
> from the sample, but the query structure hasn't changed. As a result the
> the logic of the query is prob doesn't make any sense, but it does
> return data which is all I wanted
>
> Can you have a look, it runs fine in the designer but I get the same
> error in tomcat;
>
> Caused by: java.lang.ClassCastException:
> org.eclipse.birt.chart.computation.LegendItemHints cannot be cast to
> org.eclipse.birt.chart.computation.DataP
> ointHints
> at org.eclipse.birt.chart.device.svg.SVGInteractiveRenderer.add
> JSCodeOnElement(SVGInteractiveRenderer.java:1583)
>
> **it appears attach of a document doesnt work so I have pasted the
> report showing the error on the sample DB below
>
> thanks
> Trevor
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.20"
> id="1">
> <property name="author">Allwyn D'souza</property>
> <property name="createdBy">Eclipse BIRT Designer Version
> 2.5.1.v20090903 Build <2.5.1.v20090922-0630></property>
> <property name="units">in</property>
> <text-property name="title">Test Sample DB</text-property>
> <property name="comments">Copyright (c) 2008 Fineos</property>
> <html-property name="description">Displays a chart lifted from my app
> with the dataset changed to the BIRT sample DB</html-property>
> <list-property name="userProperties">
> <structure>
> <property name="name">FINEOS_SecuredAction</property>
> <property name="type">string</property>
> <property name="isVisible">true</property>
> </structure>
> <structure>
> <property name="name">FINEOS_JSPPage</property>
> <property name="type">string</property>
> <property name="isVisible">true</property>
> </structure>
> <structure>
> <property name="name">FINEOS_WorkType</property>
> <property name="type">string</property>
> <property name="isVisible">true</property>
> </structure>
> <structure>
> <property name="name">FINEOS_BackgroundRunOnly</property>
> <property name="type">boolean</property>
> <property name="isVisible">true</property>
> </structure>
> <structure>
> <property name="name">FINEOS_NumDisplayColumns</property>
> <property name="type">integer</property>
> <property name="isVisible">true</property>
> </structure>
> </list-property>
> <property name="FINEOS_BackgroundRunOnly">false</property>
> <text-property name="displayName">Test Sample DB</text-property>
> <property name="layoutPreference">auto layout</property>
> <parameters>
> <scalar-parameter name="FINEOS_CURRENT_USER" id="128">
> <text-property name="promptText">A param</text-property>
> <property name="valueType">static</property>
> <property name="dataType">integer</property>
> <property name="distinct">true</property>
> <simple-property-list name="defaultValue">
> <value type="constant">123</value>
> </simple-property-list>
> <property name="paramType">simple</property>
> <property name="controlType">text-box</property>
> <structure name="format">
> <property name="category">Unformatted</property>
> </structure>
> </scalar-parameter>
> </parameters>
> <data-sources>
> <oda-data-source
> extensionID="org.eclipse.birt.report.data.oda.jdbc" name="Data Source"
> id="127">
> <property
> name="odaDriverClass">org.eclipse.birt.report.data.oda.sampledb.Driver
> </property>
> <property name="odaURL">jdbc:classicmodels:sampledb</property>
> <property name="odaUser">ClassicModels</property>
> </oda-data-source>
> </data-sources>
> <data-sets>
> <oda-data-set
> extensionID="org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet "
> name="fineosClaimsByCaseType" id="53">
> <list-property name="columnHints">
> <structure>
> <property name="columnName">C</property>
> <text-property name="displayName">C</text-property>
> </structure>
> <structure>
> <property name="columnName">I</property>
> <text-property name="displayName">I</text-property>
> </structure>
> <structure>
> <property name="columnName">NAME</property>
> <text-property name="displayName">NAME</text-property>
> </structure>
> <structure>
> <property name="columnName">DESCRIPTION</property>
> <text-property
> name="displayName">DESCRIPTION</text-property>
> </structure>
> <structure>
> <property name="columnName">VOLUME</property>
> <text-property name="displayName">VOLUME</text-property>
> </structure>
> </list-property>
> <structure name="cachedMetaData">
> <list-property name="resultSet">
> <structure>
> <property name="position">1</property>
> <property name="name">C</property>
> <property name="dataType">float</property>
> </structure>
> <structure>
> <property name="position">2</property>
> <property name="name">I</property>
> <property name="dataType">integer</property>
> </structure>
> <structure>
> <property name="position">3</property>
> <property name="name">NAME</property>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="position">4</property>
> <property name="name">DESCRIPTION</property>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="position">5</property>
> <property name="name">VOLUME</property>
> <property name="dataType">integer</property>
> </structure>
> </list-property>
> </structure>
> <property name="dataSource">Data Source</property>
> <list-property name="resultSet">
> <structure>
> <property name="position">1</property>
> <property name="name">C</property>
> <property name="nativeName">C</property>
> <property name="dataType">float</property>
> <property name="nativeDataType">8</property>
> </structure>
> <structure>
> <property name="position">2</property>
> <property name="name">I</property>
> <property name="nativeName">I</property>
> <property name="dataType">integer</property>
> <property name="nativeDataType">4</property>
> </structure>
> <structure>
> <property name="position">3</property>
> <property name="name">NAME</property>
> <property name="nativeName">NAME</property>
> <property name="dataType">string</property>
> <property name="nativeDataType">12</property>
> </structure>
> <structure>
> <property name="position">4</property>
> <property name="name">DESCRIPTION</property>
> <property name="nativeName">DESCRIPTION</property>
> <property name="dataType">string</property>
> <property name="nativeDataType">12</property>
> </structure>
> <structure>
> <property name="position">5</property>
> <property name="name">VOLUME</property>
> <property name="nativeName">VOLUME</property>
> <property name="dataType">integer</property>
> <property name="nativeDataType">4</property>
> </structure>
> </list-property>
> <xml-property name="queryText"><![CDATA[select
> cust.creditlimit C,
> cust.customernumber I,
> cust.customername Name,
> cust.phone DESCRIPTION,
> count(cust.customernumber) as VOLUME
> from orders o, customers cust
> where cust.customernumber = o.customernumber
> group by cust.creditlimit, cust.customernumber, cust.customername,
> cust.phone
> order by volume desc]]></xml-property>
> </oda-data-set>
> </data-sets>
> <page-setup>
> <simple-master-page name="Simple MasterPage" id="2">
> <property name="type">a4</property>
> <property name="topMargin">1in</property>
> <property name="leftMargin">0.3854166667in</property>
> <property name="bottomMargin">1in</property>
> <property name="rightMargin">0.4791666667in</property>
> <property name="fontFamily">serif</property>
> <property name="fontSize">medium</property>
> <property name="fontWeight">normal</property>
> <property name="fontStyle">normal</property>
> <property name="fontVariant">normal</property>
> <page-footer>
> <text id="11">
> <property name="fontFamily">"Arial"</property>
> <property name="fontSize">10pt</property>
> <property name="marginTop">0pt</property>
> <property name="textAlign">center</property>
> <property name="contentType">html</property>
> <text-property name="content"><![CDATA[Report
> generated on <value-of>new Date()</value-of>]]></text-property>
> </text>
> </page-footer>
> </simple-master-page>
> </page-setup>
> <body>
> <grid id="112">
> <property name="backgroundColor">white</property>
> <property name="marginTop">0pt</property>
> <property name="marginBottom">20pt</property>
> <property name="textAlign">center</property>
> <property name="width">100%</property>
> <column id="113"/>
> <row id="114">
> <property name="canShrink">false</property>
> <cell id="115">
> <extended-item extensionName="Chart"
> name="ClaimsByCaseTypeChart" id="37">
> <xml-property
> name="xmlRepresentation"><![CDATA[<model:ChartWithoutAxes
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:attribute="http://www.birt.eclipse.org/ChartModelAttribute"
> xmlns:layout="http://www.birt.eclipse.org/ChartModelLayout"
> xmlns:model="http://www.birt.eclipse.org/ChartModel"
> xmlns:type="http://www.birt.eclipse.org/ChartModelType">
> <Type>Pie Chart</Type>
> <SubType>Standard Pie Chart</SubType>
> <Description>
> <Value></Value>
> <Font>
> <Alignment/>
> </Font>
> </Description>
> <Block>
> <Children xsi:type="layout:TitleBlock">
> <Bounds>
> <Left>0.0</Left>
> <Top>0.0</Top>
> <Width>0.0</Width>
> <Height>0.0</Height>
> </Bounds>
> <Insets>
> <Top>3.0</Top>
> <Left>3.0</Left>
> <Bottom>3.0</Bottom>
> <Right>3.0</Right>
> </Insets>
> <Row>-1</Row>
> <Column>-1</Column>
> <Rowspan>-1</Rowspan>
> <Columnspan>-1</Columnspan>
> <Outline>
> <Style>Solid</Style>
> <Thickness>1</Thickness>
> <Color>
> <Transparency>255</Transparency>
> <Red>0</Red>
> <Green>0</Green>
> <Blue>0</Blue>
> </Color>
> <Visible>false</Visible>
> </Outline>
> <Visible>true</Visible>
> <Label>
> <Caption>
> <Value></Value>
> <Font>
> <Name>Arial</Name>
> <Size>16.0</Size>
> <Bold>true</Bold>
> <Alignment>
> <horizontalAlignment>Center</horizontalAlignment>
> <verticalAlignment>Center</verticalAlignment>
> </Alignment>
> </Font>
> </Caption>
> <Background xsi:type="attribute:ColorDefinition">
> <Transparency>0</Transparency>
> <Red>255</Red>
> <Green>255</Green>
> <Blue>255</Blue>
> </Background>
> <Outline>
> <Style>Solid</Style>
> <Thickness>1</Thickness>
> <Color>
> <Transparency>255</Transparency>
> <Red>0</Red>
> <Green>0</Green>
> <Blue>0</Blue>
> </Color>
> <Visible>false</Visible>
> </Outline>
> <Insets>
> <Top>0.0</Top>
> <Left>2.0</Left>
> <Bottom>0.0</Bottom>
> <Right>3.0</Right>
> </Insets>
> <Visible>true</Visible>
> </Label>
> </Children>
> <Children xsi:type="layout:Plot">
> <Bounds>
> <Left>0.0</Left>
> <Top>0.0</Top>
> <Width>0.0</Width>
> <Height>0.0</Height>
> </Bounds>
> <Insets>
> <Top>3.0</Top>
> <Left>3.0</Left>
> <Bottom>3.0</Bottom>
> <Right>3.0</Right>
> </Insets>
> <Row>-1</Row>
> <Column>-1</Column>
> <Rowspan>-1</Rowspan>
> <Columnspan>-1</Columnspan>
> <Outline>
> <Style>Solid</Style>
> <Thickness>1</Thickness>
> <Color>
> <Transparency>255</Transparency>
> <Red>0</Red>
> <Green>0</Green>
> <Blue>0</Blue>
> </Color>
> <Visible>false</Visible>
> </Outline>
> <Visible>true</Visible>
> <HorizontalSpacing>10</HorizontalSpacing>
> <VerticalSpacing>10</VerticalSpacing>
> <ClientArea>
> <Background xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>255</Red>
> <Green>255</Green>
> <Blue>255</Blue>
> </Background>
> <Outline>
> <Style>Solid</Style>
> <Thickness>0</Thickness>
> <Color>
> <Transparency>255</Transparency>
> <Red>0</Red>
> <Green>0</Green>
> <Blue>0</Blue>
> </Color>
> <Visible>false</Visible>
> </Outline>
> <Insets>
> <Top>0.0</Top>
> <Left>0.0</Left>
> <Bottom>0.0</Bottom>
> <Right>0.0</Right>
> </Insets>
> </ClientArea>
> </Children>
> <Children xsi:type="layout:Legend">
> <Bounds>
> <Left>0.0</Left>
> <Top>0.0</Top>
> <Width>0.0</Width>
> <Height>0.0</Height>
> </Bounds>
> <Insets>
> <Top>3.0</Top>
> <Left>3.0</Left>
> <Bottom>3.0</Bottom>
> <Right>3.0</Right>
> </Insets>
> <Row>-1</Row>
> <Column>-1</Column>
> <Rowspan>-1</Rowspan>
> <Columnspan>-1</Columnspan>
> <Outline>
> <Style>Solid</Style>
> <Thickness>1</Thickness>
> <Color>
> <Transparency>255</Transparency>
> <Red>0</Red>
> <Green>0</Green>
> <Blue>0</Blue>
> </Color>
> <Visible>false</Visible>
> </Outline>
> <Visible>true</Visible>
> <Triggers>
> <Condition>onmouseover</Condition>
> <Action>
> <Type>Highlight</Type>
> <Value xsi:type="attribute:SeriesValue">
> <Name></Name>
> </Value>
> </Action>
> </Triggers>
> <ClientArea>
> <Background xsi:type="attribute:ColorDefinition">
> <Transparency>0</Transparency>
> <Red>255</Red>
> <Green>255</Green>
> <Blue>255</Blue>
> </Background>
> <Outline>
> <Style>Solid</Style>
> <Thickness>0</Thickness>
> <Color>
> <Transparency>255</Transparency>
> <Red>0</Red>
> <Green>0</Green>
> <Blue>0</Blue>
> </Color>
> <Visible>true</Visible>
> </Outline>
> <Insets>
> <Top>2.0</Top>
> <Left>2.0</Left>
> <Bottom>2.0</Bottom>
> <Right>2.0</Right>
> </Insets>
> </ClientArea>
> <Text>
> <Value><undefined></Value>
> <Font>
> <Name>Arial</Name>
> <Alignment/>
> </Font>
> </Text>
> <Orientation>Vertical</Orientation>
> <Direction>Top_Bottom</Direction>
> <Separator>
> <Style>Solid</Style>
> <Thickness>1</Thickness>
> <Color>
> <Transparency>255</Transparency>
> <Red>0</Red>
> <Green>0</Green>
> <Blue>0</Blue>
> </Color>
> <Visible>true</Visible>
> </Separator>
> <Position>Right</Position>
> <ItemType>Categories</ItemType>
> <Title>
> <Caption>
> <Value>Case types</Value>
> <Font>
> <Name>Arial</Name>
> <Size>12.0</Size>
> <Alignment/>
> </Font>
> </Caption>
> <Background xsi:type="attribute:ColorDefinition">
> <Transparency>0</Transparency>
> <Red>255</Red>
> <Green>255</Green>
> <Blue>255</Blue>
> </Background>
> <Outline>
> <Style>Solid</Style>
> <Thickness>1</Thickness>
> <Color>
> <Transparency>255</Transparency>
> <Red>0</Red>
> <Green>0</Green>
> <Blue>0</Blue>
> </Color>
> <Visible>false</Visible>
> </Outline>
> <Insets>
> <Top>0.0</Top>
> <Left>2.0</Left>
> <Bottom>0.0</Bottom>
> <Right>3.0</Right>
> </Insets>
> <Visible>true</Visible>
> </Title>
> <TitlePosition>Above</TitlePosition>
> </Children>
> <Bounds>
> <Left>0.0</Left>
> <Top>0.0</Top>
> <Width>492.75</Width>
> <Height>375.0</Height>
> </Bounds>
> <Insets>
> <Top>3.0</Top>
> <Left>3.0</Left>
> <Bottom>3.0</Bottom>
> <Right>3.0</Right>
> </Insets>
> <Row>-1</Row>
> <Column>-1</Column>
> <Rowspan>-1</Rowspan>
> <Columnspan>-1</Columnspan>
> <Outline>
> <Style>Solid</Style>
> <Thickness>1</Thickness>
> <Color>
> <Transparency>255</Transparency>
> <Red>0</Red>
> <Green>0</Green>
> <Blue>0</Blue>
> </Color>
> <Visible>false</Visible>
> </Outline>
> <Background xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>255</Red>
> <Green>255</Green>
> <Blue>255</Blue>
> </Background>
> <Visible>true</Visible>
> </Block>
> <Dimension>Two_Dimensional</Dimension>
> <Units>Points</Units>
> <SeriesThickness>10.0</SeriesThickness>
> <GridColumnCount>1</GridColumnCount>
> <SampleData>
> <BaseSampleData>
> <DataSetRepresentation>'A','B','C'</DataSetRepresentation>
> </BaseSampleData>
> <OrthogonalSampleData>
> <DataSetRepresentation>5.0,4.0,12.0</DataSetRepresentation >
> <SeriesDefinitionIndex>0</SeriesDefinitionIndex>
> </OrthogonalSampleData>
> <AncillarySampleData>
> <DataSetRepresentation>Series 1</DataSetRepresentation>
> </AncillarySampleData>
> </SampleData>
> <Interactivity>
> <Enable>true</Enable>
> <LegendBehavior>HighlightSerie</LegendBehavior>
> </Interactivity>
> <EmptyMessage>
> <Caption>
> <Value></Value>
> <Font>
> <Alignment/>
> </Font>
> </Caption>
> <Background xsi:type="attribute:ColorDefinition">
> <Transparency>0</Transparency>
> <Red>255</Red>
> <Green>255</Green>
> <Blue>255</Blue>
> </Background>
> <Outline>
> <Style>Solid</Style>
> <Thickness>1</Thickness>
> <Color>
> <Transparency>255</Transparency>
> <Red>0</Red>
> <Green>0</Green>
> <Blue>0</Blue>
> </Color>
> </Outline>
> <Insets>
> <Top>0.0</Top>
> <Left>2.0</Left>
> <Bottom>0.0</Bottom>
> <Right>3.0</Right>
> </Insets>
> <Visible>false</Visible>
> </EmptyMessage>
> <SeriesDefinitions>
> <Query>
> <Definition></Definition>
> </Query>
> <SeriesPalette>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>80</Red>
> <Green>166</Green>
> <Blue>218</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>242</Red>
> <Green>88</Green>
> <Blue>106</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>232</Red>
> <Green>172</Green>
> <Blue>57</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>128</Red>
> <Green>255</Green>
> <Blue>128</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>64</Red>
> <Green>128</Green>
> <Blue>128</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>128</Red>
> <Green>128</Green>
> <Blue>192</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>170</Red>
> <Green>85</Green>
> <Blue>85</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>128</Red>
> <Green>128</Green>
> <Blue>0</Blue>
> </Entries>
> </SeriesPalette>
> <SeriesDefinitions>
> <Query>
> <Definition></Definition>
> </Query>
> <SeriesPalette>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>80</Red>
> <Green>166</Green>
> <Blue>218</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>242</Red>
> <Green>88</Green>
> <Blue>106</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>232</Red>
> <Green>172</Green>
> <Blue>57</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>128</Red>
> <Green>255</Green>
> <Blue>128</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>64</Red>
> <Green>128</Green>
> <Blue>128</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>128</Red>
> <Green>128</Green>
> <Blue>192</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>170</Red>
> <Green>85</Green>
> <Blue>85</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>128</Red>
> <Green>128</Green>
> <Blue>0</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>192</Red>
> <Green>192</Green>
> <Blue>192</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>255</Red>
> <Green>255</Green>
> <Blue>128</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>128</Red>
> <Green>192</Green>
> <Blue>128</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>7</Red>
> <Green>146</Green>
> <Blue>94</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>0</Red>
> <Green>128</Green>
> <Blue>255</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>255</Red>
> <Green>128</Green>
> <Blue>192</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>0</Red>
> <Green>255</Green>
> <Blue>255</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>255</Red>
> <Green>128</Green>
> <Blue>128</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>0</Red>
> <Green>128</Green>
> <Blue>192</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>128</Red>
> <Green>128</Green>
> <Blue>192</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>255</Red>
> <Green>0</Green>
> <Blue>255</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>128</Red>
> <Green>64</Green>
> <Blue>64</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>255</Red>
> <Green>128</Green>
> <Blue>64</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>80</Red>
> <Green>240</Green>
> <Blue>120</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>0</Red>
> <Green>64</Green>
> <Blue>128</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>128</Red>
> <Green>0</Green>
> <Blue>64</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>255</Red>
> <Green>0</Green>
> <Blue>128</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>128</Red>
> <Green>128</Green>
> <Blue>64</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>128</Red>
> <Green>128</Green>
> <Blue>128</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>255</Red>
> <Green>128</Green>
> <Blue>255</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>0</Red>
> <Green>64</Green>
> <Blue>0</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>0</Red>
> <Green>0</Green>
> <Blue>0</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>255</Red>
> <Green>255</Green>
> <Blue>255</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>255</Red>
> <Green>128</Green>
> <Blue>0</Blue>
> </Entries>
> </SeriesPalette>
> <Series xsi:type="type:PieSeries">
> <Visible>true</Visible>
> <Label>
> <Caption>
> <Value><undefined></Value>
> <Font>
> <Name>Arial</Name>
> <Alignment/>
> </Font>
> </Caption>
> <Background xsi:type="attribute:ColorDefinition">
> <Transparency>0</Transparency>
> <Red>255</Red>
> <Green>255</Green>
> <Blue>255</Blue>
> </Background>
> <Outline>
> <Style>Solid</Style>
> <Thickness>1</Thickness>
> <Color>
> <Transparency>255</Transparency>
> <Red>0</Red>
> <Green>0</Green>
> <Blue>0</Blue>
> </Color>
> <Visible>false</Visible>
> </Outline>
> <Insets>
> <Top>0.0</Top>
> <Left>2.0</Left>
> <Bottom>0.0</Bottom>
> <Right>3.0</Right>
> </Insets>
> <Visible>true</Visible>
> </Label>
> <DataDefinition>
> <Definition>row["VOLUME"]</Definition>
> </DataDefinition>
> <SeriesIdentifier></SeriesIdentifier>
> <DataPoint>
> <Components>
> <Type>Percentile_Orthogonal_Value</Type>
> <FormatSpecifier xsi:type="attribute:JavaNumberFormatSpecifier">
> <Pattern>##.##%</Pattern>
> </FormatSpecifier>
> </Components>
> <Separator>, </Separator>
> </DataPoint>
> <LabelPosition>Outside</LabelPosition>
> <Stacked>false</Stacked>
> <Triggers>
> <Condition>onmouseover</Condition>
> <Action>
> <Type>Show_Tooltip</Type>
> <Value xsi:type="attribute:TooltipValue">
> <Text>row["DESCRIPTION"]</Text>
> <Delay>200</Delay>
> </Value>
> </Action>
> </Triggers>
> <Explosion>0</Explosion>
> <ExplosionExpression></ExplosionExpression>
> <Title>
> <Caption>
> <Value></Value>
> <Font>
> <Size>16.0</Size>
> <Bold>true</Bold>
> <Alignment/>
> </Font>
> </Caption>
> <Background xsi:type="attribute:ColorDefinition">
> <Transparency>0</Transparency>
> <Red>255</Red>
> <Green>255</Green>
> <Blue>255</Blue>
> </Background>
> <Outline>
> <Style>Solid</Style>
> <Thickness>1</Thickness>
> <Color>
> <Transparency>255</Transparency>
> <Red>0</Red>
> <Green>0</Green>
> <Blue>0</Blue>
> </Color>
> </Outline>
> <Insets>
> <Top>0.0</Top>
> <Left>2.0</Left>
> <Bottom>0.0</Bottom>
> <Right>3.0</Right>
> </Insets>
> <Visible>true</Visible>
> </Title>
> <TitlePosition>Below</TitlePosition>
> <LeaderLineAttributes>
> <Style>Solid</Style>
> <Thickness>1</Thickness>
> <Color>
> <Transparency>255</Transparency>
> <Red>0</Red>
> <Green>0</Green>
> <Blue>0</Blue>
> </Color>
> <Visible>true</Visible>
> </LeaderLineAttributes>
> <LeaderLineStyle>Fixed_Length</LeaderLineStyle>
> <LeaderLineLength>10.0</LeaderLineLength>
> </Series>
> <Grouping>
> <Enabled>false</Enabled>
> <GroupingInterval>2.0</GroupingInterval>
> <GroupType>Text</GroupType>
> <AggregateExpression>Sum</AggregateExpression>
> </Grouping>
> <Sorting>Descending</Sorting>
> </SeriesDefinitions>
> <Series>
> <Visible>true</Visible>
> <Label>
> <Caption>
> <Value><undefined></Value>
> <Font>
> <Alignment/>
> </Font>
> </Caption>
> <Background xsi:type="attribute:ColorDefinition">
> <Transparency>0</Transparency>
> <Red>255</Red>
> <Green>255</Green>
> <Blue>255</Blue>
> </Background>
> <Outline>
> <Style>Solid</Style>
> <Thickness>1</Thickness>
> <Color>
> <Transparency>255</Transparency>
> <Red>0</Red>
> <Green>0</Green>
> <Blue>0</Blue>
> </Color>
> <Visible>false</Visible>
> </Outline>
> <Insets>
> <Top>0.0</Top>
> <Left>2.0</Left>
> <Bottom>0.0</Bottom>
> <Right>3.0</Right>
> </Insets>
> <Visible>false</Visible>
> </Label>
> <DataDefinition>
> <Definition>row["NAME"]</Definition>
> </DataDefinition>
> <SeriesIdentifier></SeriesIdentifier>
> <DataPoint>
> <Components>
> <Type>Orthogonal_Value</Type>
> </Components>
> <Separator>, </Separator>
> </DataPoint>
> <LabelPosition>Outside</LabelPosition>
> <Stacked>false</Stacked>
> </Series>
> <Grouping>
> <Enabled>false</Enabled>
> <GroupingInterval>2.0</GroupingInterval>
> <GroupType>Text</GroupType>
> <AggregateExpression>Sum</AggregateExpression>
> </Grouping>
> </SeriesDefinitions>
> <MinSlice>2.0</MinSlice>
> <MinSlicePercent>true</MinSlicePercent>
> <MinSliceLabel>Others</MinSliceLabel>
> </model:ChartWithoutAxes>
> ]]></xml-property>
> <property name="outputFormat">SVG</property>
> <structure name="action">
> <property name="targetWindow">_self</property>
> <property name="linkType">hyperlink</property>
> <property
> name="targetFileType">report-design</property>
> <expression name="uri">"
> runReport?report=claimsVolumeByCaseType.rptdesign&ca seType_C= "+
> row["C"] + "&caseType_I=" + row["I"] + "&caseTypeDesc=" +
> row["NAME"]</expression>
> </structure>
> <property name="display">block</property>
> <property
> name="dataSet">fineosClaimsByCaseType</property>
> <property name="height">500px</property>
> <property name="width">6.84375in</property>
> <list-property name="boundDataColumns">
> <structure>
> <property name="name">C</property>
> <expression
> name="expression">dataSetRow["C"]</expression>
> <property name="dataType">decimal</property>
> </structure>
> <structure>
> <property name="name">I</property>
> <expression
> name="expression">dataSetRow["I"]</expression>
> <property name="dataType">decimal</property>
> </structure>
> <structure>
> <property name="name">NAME</property>
> <expression
> name="expression">dataSetRow["NAME"]</expression>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="name">DESCRIPTION</property>
> <expression
> name="expression">dataSetRow["DESCRIPTION"]</expression >
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="name">VOLUME</property>
> <expression
> name="expression">dataSetRow["VOLUME"]</expression>
> <property name="dataType">decimal</property>
> </structure>
> </list-property>
> </extended-item>
> </cell>
> </row>
> <row id="116">
> <cell id="117">
> <table name="ClaimsByCaseTypeTable" id="55">
> <property name="fontFamily">"Arial"</property>
> <property name="fontSize">medium</property>
> <property name="color">black</property>
> <property name="marginTop">0pt</property>
> <property name="canShrink">true</property>
> <property name="width">95%</property>
> <property
> name="dataSet">fineosClaimsByCaseType</property>
> <list-property name="boundDataColumns">
> <structure>
> <property name="name">NAME</property>
> <expression
> name="expression">dataSetRow["NAME"]</expression>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="name">DESCRIPTION</property>
> <expression
> name="expression">dataSetRow["DESCRIPTION"]</expression >
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="name">VOLUME</property>
> <expression
> name="expression">dataSetRow["VOLUME"]</expression>
> <property name="dataType">integer</property>
> </structure>
> <structure>
> <property name="name">totalVolume</property>
> <expression
> name="expression">Total.sum(row["VOLUME"])</expression>
> <property name="dataType">integer</property>
> </structure>
> <structure>
> <property name="name">CaseType</property>
> <text-property name="displayName">Case
> Type</text-property>
> <expression
> name="expression">dataSetRow["NAME"]</expression>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="name">IValue</property>
> <text-property name="displayName">Case I
> Value</text-property>
> <expression
> name="expression">dataSetRow["I"]</expression>
> <property name="dataType">integer</property>
> </structure>
> </list-property>
> <property name="pageBreakInterval">50</property>
> <column id="68">
> <property name="width">40%</property>
> </column>
> <column id="69">
> <property name="width
|
|
|
|
Re: Percentile Value Data error on Pie Chart in BIRT 2.5.1 [message #502844 is a reply to message #502769] |
Wed, 09 December 2009 22:16 |
|
Trevor,
There error you are seeing is a bug in 2.5.1. It has been fixed in
2.5.2. The reason you are not seeing it in the designer is because you
do not have the Chart SVG viewer enabled in the preferences.
Report Design->Preview->Enable SVG Chart.
The error is on either highlight or visibility interactivity on the
legend. So if you disable the mouse over event you have on the legend
the error will go away. This has already been fixed in the 2.5.2
branch. If you have to have it you could mod the code to check
final int baseIndex = ( (DataPointHints) src.getSource( ) ).getIndex( );
the src class type as LegendItemHints or DataPointHints. This is line
1583 in the SVGInteractiveRenderer class.
Jason
TREVOR.HIGGINS@FINEOS.COM wrote:
> Just sent it there, let me know if it arrives....thanks
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03920 seconds