Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » getGlobalVariable() problem in Chart script
getGlobalVariable() problem in Chart script [message #186615] Tue, 22 August 2006 23:30 Go to next message
Tomomi is currently offline TomomiFriend
Messages: 28
Registered: July 2009
Junior Member
Inside the chart script, I would like to use the global variable which is
set in the report.

I used getGlobalVariable() or getPersistentGlobalVariable() but this
function does not return anything
while getParameterValue() works well.

Here are my code;
gTest is set in report.initialize area and I attempted to get this variable.
It does not work.

repCtx = context.getExternalContext();
objRef = repCtx.getObject();
param = objRef.getGlobalVariable("gVar");

If I obtain a report parameter, it works.
repCtx = context.getExternalContext();
objRef = repCtx.getObject();
param = objRef.getParameterValue("param");

Is this bug???
By the way, I tested on BIRT 2.0 and 2.1.
Re: getGlobalVariable() problem in Chart script [message #186624 is a reply to message #186615] Tue, 22 August 2006 23:49 Go to previous messageGo to next message
Tomomi is currently offline TomomiFriend
Messages: 28
Registered: July 2009
Junior Member
> gTest is set in report.initialize area and I attempted to get this
> variable.

mistake. not gTest. "gVar" is set in ....


"Tomomi" <tomoino@netzero.net> wrote in message
news:ecg423$5pb$1@utils.eclipse.org...
> Inside the chart script, I would like to use the global variable which is
> set in the report.
>
> I used getGlobalVariable() or getPersistentGlobalVariable() but this
> function does not return anything
> while getParameterValue() works well.
>
> Here are my code;
> gTest is set in report.initialize area and I attempted to get this
> variable. It does not work.
>
> repCtx = context.getExternalContext();
> objRef = repCtx.getObject();
> param = objRef.getGlobalVariable("gVar");
>
> If I obtain a report parameter, it works.
> repCtx = context.getExternalContext();
> objRef = repCtx.getObject();
> param = objRef.getParameterValue("param");
>
> Is this bug???
> By the way, I tested on BIRT 2.0 and 2.1.
>
Re: getGlobalVariable() problem in Chart script [message #186801 is a reply to message #186624] Thu, 24 August 2006 16:19 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Try,

context.getExternalContext().getScriptable().getGlobalVariab le

Jason

"Tomomi" <tomoino@netzero.net> wrote in message
news:ecg56a$fot$1@utils.eclipse.org...
>> gTest is set in report.initialize area and I attempted to get this
>> variable.
>
> mistake. not gTest. "gVar" is set in ....
>
>
> "Tomomi" <tomoino@netzero.net> wrote in message
> news:ecg423$5pb$1@utils.eclipse.org...
>> Inside the chart script, I would like to use the global variable which
>> is set in the report.
>>
>> I used getGlobalVariable() or getPersistentGlobalVariable() but this
>> function does not return anything
>> while getParameterValue() works well.
>>
>> Here are my code;
>> gTest is set in report.initialize area and I attempted to get this
>> variable. It does not work.
>>
>> repCtx = context.getExternalContext();
>> objRef = repCtx.getObject();
>> param = objRef.getGlobalVariable("gVar");
>>
>> If I obtain a report parameter, it works.
>> repCtx = context.getExternalContext();
>> objRef = repCtx.getObject();
>> param = objRef.getParameterValue("param");
>>
>> Is this bug???
>> By the way, I tested on BIRT 2.0 and 2.1.
>>
>
>
Re: getGlobalVariable() problem in Chart script [message #187640 is a reply to message #186801] Mon, 28 August 2006 18:08 Go to previous messageGo to next message
Tomomi is currently offline TomomiFriend
Messages: 28
Registered: July 2009
Junior Member
I have tried with
context.getExternalContext().getScriptable().getGlobalVariab le
But this also returns "null".
Do you know any other way?

Actually, what I want to do is that I want to change the y-axis max and step
dynamically
depending on the result from dataset.
I want to hold the biggest number of y-axis data as global value,
and read this number from chart script and determin the max and step and
change the scale on runtime.

I cannot find the way of reading the value on report from chart script.

Does anyone know about this or have any other better idea?

Thank you!!



"Jason Weathersby" <jweathersby@actuate.com> wrote in message
news:eckjhs$tiv$1@utils.eclipse.org...
> Try,
>
> context.getExternalContext().getScriptable().getGlobalVariab le
>
> Jason
>
> "Tomomi" <tomoino@netzero.net> wrote in message
> news:ecg56a$fot$1@utils.eclipse.org...
>>> gTest is set in report.initialize area and I attempted to get this
>>> variable.
>>
>> mistake. not gTest. "gVar" is set in ....
>>
>>
>> "Tomomi" <tomoino@netzero.net> wrote in message
>> news:ecg423$5pb$1@utils.eclipse.org...
>>> Inside the chart script, I would like to use the global variable which
>>> is set in the report.
>>>
>>> I used getGlobalVariable() or getPersistentGlobalVariable() but this
>>> function does not return anything
>>> while getParameterValue() works well.
>>>
>>> Here are my code;
>>> gTest is set in report.initialize area and I attempted to get this
>>> variable. It does not work.
>>>
>>> repCtx = context.getExternalContext();
>>> objRef = repCtx.getObject();
>>> param = objRef.getGlobalVariable("gVar");
>>>
>>> If I obtain a report parameter, it works.
>>> repCtx = context.getExternalContext();
>>> objRef = repCtx.getObject();
>>> param = objRef.getParameterValue("param");
>>>
>>> Is this bug???
>>> By the way, I tested on BIRT 2.0 and 2.1.
>>>
>>
>>
>
>
Re: getGlobalVariable() problem in Chart script [message #187888 is a reply to message #187640] Tue, 29 August 2006 16:29 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

You need to do this in the beforegeneration script like:

function beforeGeneration( chart, context ){

importPackage(Packages.org.eclipse.birt.chart.model.attribut e);

importPackage(Packages.org.eclipse.birt.chart.model.data.imp l);

chrmax =
context.getExternalContext().getScriptable().getGlobalVariab le( "cmax");

xaxis = chart.getPrimaryBaseAxes( )[0];

yaxis = chart.getPrimaryOrthogonalAxis( xaxis );

yaxis.getScale().setStep(200000);

yaxis.getScale().setMax( NumberDataElementImpl.create( chrmax ));

}


Attached is an example report. Look in the initialize method to set how
cmax is set.

Jason

<?xml version="1.0" encoding="UTF-8"?>

<!-- Written by Eclipse BIRT 2.0 -->

<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.2"
id="1">

<property name="author">Mark Coggins</property>

<property name="createdBy">Eclipse BIRT Designer Version 1.0.0 Build
&lt;20050601-0809></property>

<property name="units">in</property>

<text-property name="title">Top Classic Models Inc. Customers by
Revenue</text-property>

<method name="initialize"><![CDATA[reportContext.setGlobalVariable( "cmax",
1000000);]]></method>

<list-property name="configVars">

<structure>

<property name="name">Top Count</property>

<property name="value">5</property>

</structure>

<structure>

<property name="name">Top Percentage</property>

<property name="value">25</property>

</structure>

</list-property>

<parameters>

<scalar-parameter name="Top Count" id="87">

<text-property name="helpText">Enter the number of customers you wish
included in the top "N" graph of the report</text-property>

<property name="valueType">static</property>

<property name="dataType">decimal</property>

<text-property name="promptText">Number of Customers for Top "N"
Chart</text-property>

<property name="allowBlank">false</property>

<property name="allowNull">false</property>

<property name="controlType">text-box</property>

<property name="defaultValue">5</property>

<structure name="format">

<property name="category">Unformatted</property>

<property name="pattern">Unformatted</property>

</structure>

</scalar-parameter>

<scalar-parameter name="Top Percentage" id="88">

<text-property name="helpText">Enter the percentage of customers you wish
included in the top N% listing of the report</text-property>

<property name="valueType">static</property>

<property name="dataType">decimal</property>

<text-property name="promptText">Percentage of Customers for Top N%
Listing</text-property>

<property name="allowBlank">false</property>

<property name="controlType">text-box</property>

<property name="defaultValue">25</property>

<structure name="format">

<property name="category">Unformatted</property>

<property name="pattern">Unformatted</property>

</structure>

</scalar-parameter>

</parameters>

<data-sources>

<oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc"
name="Classic Models" id="59">

<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="Customer Sales" id="60">

<structure name="cachedMetaData">

<list-property name="resultSet">

<structure>

<property name="position">1</property>

<property name="name">CUSTOMERNAME</property>

<property name="dataType">string</property>

</structure>

<structure>

<property name="position">2</property>

<property name="name">CUSTOMERNUMBER</property>

<property name="dataType">integer</property>

</structure>

<structure>

<property name="position">3</property>

<property name="name">CUSTOMERTOTAL</property>

<property name="dataType">float</property>

</structure>

</list-property>

</structure>

<property name="dataSource">Classic Models</property>

<property name="queryText">select CUSTOMERS.CUSTOMERNAME,

CUSTOMERS.CUSTOMERNUMBER,

sum(ORDERDETAILS.QUANTITYORDERED *

ORDERDETAILS.PRICEEACH) as CUSTOMERTOTAL

from CUSTOMERS, ORDERS, ORDERDETAILS

where CUSTOMERS.CUSTOMERNUMBER = ORDERS.CUSTOMERNUMBER

and ORDERS.ORDERNUMBER = ORDERDETAILS.ORDERNUMBER

group by CUSTOMERS.CUSTOMERNAME, CUSTOMERS.CUSTOMERNUMBER

order by CUSTOMERTOTAL</property>

</oda-data-set>

</data-sets>

<styles>

<style name="BackgroundLightGray" id="2">

<property name="backgroundColor">#EAEAEA</property>

</style>

<style name="BackgroundBlue" id="3">

<property name="backgroundColor">#4B6987</property>

</style>

<style name="BackgroundYellow" id="4">

<property name="backgroundColor">#FAD764</property>

</style>

</styles>

<page-setup>

<simple-master-page name="Simple MasterPage" id="8">

<page-footer>

<grid id="141">

<property name="width">100%</property>

<column id="143">

<property name="width">80%</property>

</column>

<column id="144">

<property name="width">20%</property>

<property name="textAlign">right</property>

</column>

<row id="152">

<property name="height">0.2in</property>

<cell id="153"/>

<cell id="154"/>

</row>

<row id="145">

<cell id="148">

<text id="149">

<property name="fontSize">10pt</property>

<property name="fontStyle">italic</property>

<property name="paddingLeft">5pt</property>

<property name="contentType">html</property>

<text-property name="content"><![CDATA[Top <VALUE-OF>params["Top
Count"]</VALUE-OF> / Top <VALUE-OF>params["Top Percentage"]</VALUE-OF>%
Customers by Revenue]]></text-property>

</text>

</cell>

<cell id="150">

<text id="151">

<property name="fontSize">10pt</property>

<property name="fontStyle">italic</property>

<property name="paddingRight">5pt</property>

<property name="contentType">html</property>

<text-property name="content"><![CDATA[Page:
<value-of>pageNumber</value-of>]]></text-property>

</text>

</cell>

</row>

</grid>

</page-footer>

</simple-master-page>

</page-setup>

<body>

<grid id="10">

<property name="width">100%</property>

<column id="11">

<property name="width">2.8in</property>

</column>

<column id="12">

<property name="width">3.2in</property>

</column>

<row id="13">

<property name="style">BackgroundLightGray</property>

<cell id="14">

<property name="style">BackgroundLightGray</property>

<property name="paddingRight">10pt</property>

<image id="15">

<property name="borderBottomColor">#808080</property>

<property name="borderBottomStyle">solid</property>

<property name="borderBottomWidth">thin</property>

<property name="borderLeftColor">#808080</property>

<property name="borderLeftStyle">solid</property>

<property name="borderLeftWidth">thin</property>

<property name="borderRightColor">#808080</property>

<property name="borderRightStyle">solid</property>

<property name="borderRightWidth">thin</property>

<property name="borderTopColor">#808080</property>

<property name="borderTopStyle">solid</property>

<property name="borderTopWidth">thin</property>

<property name="imageName">C:\Documents and Settings\pclenahan\My
Documents\ClassicModels\logos\Classic-Models-Full-M.jpg</property >

</image>

</cell>

<cell id="16">

<property name="style">BackgroundLightGray</property>

<property name="verticalAlign">middle</property>

<label id="17">

<property name="fontFamily">sans-serif</property>

<property name="fontSize">20pt</property>

<property name="fontWeight">bold</property>

<property name="color">#000080</property>

<text-property name="text">Classic Models, Inc.</text-property>

</label>

<text id="18">

<property name="fontFamily">sans-serif</property>

<property name="fontSize">12pt</property>

<property name="paddingTop">5pt</property>

<property name="paddingBottom">5pt</property>

<property name="contentType">html</property>

<text-property name="content"><![CDATA[701 Gateway Boulevard, San Francisco,
CA 94107]]></text-property>

</text>

<text id="90">

<property name="fontFamily">sans-serif</property>

<property name="fontSize">16pt</property>

<property name="fontWeight">bold</property>

<property name="contentType">html</property>

<text-property name="content"><![CDATA[Top <VALUE-OF>params["Top
Count"]</VALUE-OF> / Top <VALUE-OF>params["Top Percentage"]</VALUE-OF>%
Customers by Revenue]]></text-property>

</text>

</cell>

</row>

<row id="20">

<property name="height">0.25in</property>

<cell id="21"/>

<cell id="22"/>

</row>

</grid>

<grid id="23">

<property name="width">100%</property>

<column id="24"/>

<row id="25">

<property name="height">0.1in</property>

<property name="style">BackgroundBlue</property>

<cell id="26"/>

</row>

<row id="27">

<cell id="28">

<text id="91">

<property name="fontFamily">sans-serif</property>

<property name="fontSize">16pt</property>

<property name="paddingTop">5pt</property>

<property name="contentType">html</property>

<text-property name="content"><![CDATA[Top <VALUE-OF>params["Top
Count"]</VALUE-OF> Customers]]></text-property>

</text>

</cell>

</row>

<row id="30">

<cell id="31">

<extended-item extensionName="Chart" id="32">

<property name="height">250pt</property>

<property name="width">400pt</property>

<property name="dataSet">Customer Sales</property>

<list-property name="boundDataColumns">

<structure>

<property name="name">CUSTOMERTOTAL</property>

<expression name="expression">dataSetRow["CUSTOMERTOTAL"]</expression >

</structure>

<structure>

<property name="name">CUSTOMERNAME</property>

<expression name="expression">dataSetRow["CUSTOMERNAME"]</expression >

</structure>

</list-property>

<xml-property name="xmlRepresentation"><![CDATA[<model:ChartWithAxes
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:attribute="http://www.birt.eclipse.org/ChartModelAttribute"
xmlns:data="http://www.birt.eclipse.org/ChartModelData"
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>Bar Chart</Type>

<SubType>Side-by-side</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>false</Visible>

<Label>

<Caption>

<Value>Bar Chart Title</Value>

<Font>

<Name>SansSerif</Name>

<Size>24.0</Size>

<Bold>false</Bold>

<Italic>false</Italic>

<Strikethrough>false</Strikethrough>

<Underline>false</Underline>

<Alignment>

<horizontalAlignment>Left</horizontalAlignment>

<verticalAlignment>Top</verticalAlignment>

</Alignment>

<Rotation>0.0</Rotation>

</Font>

<Color>

<Transparency>255</Transparency>

<Red>0</Red>

<Green>0</Green>

<Blue>0</Blue>

</Color>

</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>

</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>5</HorizontalSpacing>

<VerticalSpacing>5</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>false</Visible>

<ClientArea>

<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>2.0</Top>

<Left>2.0</Left>

<Bottom>2.0</Bottom>

<Right>2.0</Right>

</Insets>

</ClientArea>

<Text>

<Value>&lt;undefined></Value>

<Font>

<Name>SansSerif</Name>

<Size>12.0</Size>

<Bold>false</Bold>

<Italic>false</Italic>

<Strikethrough>false</Strikethrough>

<Underline>false</Underline>

<Alignment>

<horizontalAlignment>Left</horizontalAlignment>

<verticalAlignment>Top</verticalAlignment>

</Alignment>

<Rotation>0.0</Rotation>

</Font>

<Color>

<Transparency>255</Transparency>

<Red>0</Red>

<Green>0</Green>

<Blue>0</Blue>

</Color>

</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>Series</ItemType>

<Title>

<Caption>

<Value>&lt;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>

</Outline>

<Insets>

<Top>0.0</Top>

<Left>2.0</Left>

<Bottom>0.0</Bottom>

<Right>3.0</Right>

</Insets>

<Visible>false</Visible>

</Title>

<ShowValue>false</ShowValue>

</Children>

<Bounds>

<Left>0.0</Left>

<Top>0.0</Top>

<Width>399.75</Width>

<Height>249.75</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>

<Script>

function beforeGeneration( chart, context ){

importPackage(Packages.org.eclipse.birt.chart.model.attribut e);

importPackage(Packages.org.eclipse.birt.chart.model.data.imp l);

chrmax =
context.getExternalContext().getScriptable().getGlobalVariab le(&quot;cmax&quot;);

xaxis = chart.getPrimaryBaseAxes( )[0];

yaxis = chart.getPrimaryOrthogonalAxis( xaxis );

yaxis.getScale().setStep(200000);

yaxis.getScale().setMax( NumberDataElementImpl.create( chrmax ));

}




</Script>

<Units>Points</Units>

<SeriesThickness>10.0</SeriesThickness>

<GridColumnCount>1</GridColumnCount>

<SampleData>

<BaseSampleData>

<DataSetRepresentation>'6.0','7.0','8.0'</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>None</LegendBehavior>

</Interactivity>

<Axes>

<Type>Text</Type>

<Title>

<Caption>

<Value>X-Axis Title</Value>

<Font>

<Size>14.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>

</Outline>

<Insets>

<Top>0.0</Top>

<Left>2.0</Left>

<Bottom>0.0</Bottom>

<Right>3.0</Right>

</Insets>

<Visible>false</Visible>

</Title>

<TitlePosition>Below</TitlePosition>

<AssociatedAxes>

<Type>Linear</Type>

<Title>

<Caption>

<Value>Y-Axis Title</Value>

<Font>

<Size>14.0</Size>

<Bold>true</Bold>

<Alignment>

<horizontalAlignment>Center</horizontalAlignment>

<verticalAlignment>Center</verticalAlignment>

</Alignment>

<Rotation>90.0</Rotation>

</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>

</Title>

<TitlePosition>Left</TitlePosition>

<SeriesDefinitions>

<Query>

<Definition></Definition>

</Query>

<SeriesPalette>

<Entries xsi:type="attribute:ColorDefinition">

<Transparency>255</Transparency>

<Red>75</Red>

<Green>105</Green>

<Blue>135</Blue>

</Entries>

</SeriesPalette>

<FormatSpecifier xsi:type="attribute:NumberFormatSpecifier">

<Prefix></Prefix>

<Suffix></Suffix>

<FractionDigits>0</FractionDigits>

</FormatSpecifier>

<Series xsi:type="type:BarSeries">

<Visible>true</Visible>

<Label>

<Caption>

<Value>&lt;undefined></Value>

<Font>

<Name>SansSerif</Name>

<Size>12.0</Size>

<Bold>false</Bold>

<Italic>false</Italic>

<Strikethrough>false</Strikethrough>

<Underline>false</Underline>

<Alignment>

<horizontalAlignment>Left</horizontalAlignment>

<verticalAlignment>Top</verticalAlignment>

</Alignment>

<Rotation>0.0</Rotation>

</Font>

<Color>

<Transparency>255</Transparency>

<Red>0</Red>

<Green>0</Green>

<Blue>0</Blue>

</Color>

</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[&quot;CUSTOMERTOTAL&quot;]</Definition >

</DataDefinition>

<SeriesIdentifier>&lt;undefined></SeriesIdentifier>

<DataPoint>

<Components>

<Type>Orthogonal_Value</Type>

</Components>

<Separator>, </Separator>

</DataPoint>

<LabelPosition>Outside</LabelPosition>

<Stacked>false</Stacked>

<Riser>Rectangle</Riser>

<RiserOutline>

<Transparency>255</Transparency>

<Red>0</Red>

<Green>0</Green>

<Blue>0</Blue>

</RiserOutline>

</Series>

<Grouping>

<Enabled>false</Enabled>

<GroupingInterval>2</GroupingInterval>

<GroupType>Text</GroupType>

<AggregateExpression>Sum</AggregateExpression>

</Grouping>

</SeriesDefinitions>

<Orientation>Vertical</Orientation>

<LineAttributes>

<Style>Solid</Style>

<Thickness>1</Thickness>

<Color>

<Transparency>255</Transparency>

<Red>0</Red>

<Green>0</Green>

<Blue>0</Blue>

</Color>

<Visible>true</Visible>

</LineAttributes>

<Label>

<Caption>

<Value>&lt;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>

</Outline>

<Insets>

<Top>0.0</Top>

<Left>2.0</Left>

<Bottom>0.0</Bottom>

<Right>3.0</Right>

</Insets>

<Visible>true</Visible>

</Label>

<LabelPosition>Left</LabelPosition>

<MajorGrid>

<LineAttributes>

<Style>Solid</Style>

<Thickness>1</Thickness>

<Color>

<Transparency>255</Transparency>

<Red>196</Red>

<Green>196</Green>

<Blue>196</Blue>

</Color>

<Visible>false</Visible>

</LineAttributes>

<TickStyle>Across</TickStyle>

<TickAttributes>

<Style>Solid</Style>

<Thickness>1</Thickness>

<Color>

<Transparency>255</Transparency>

<Red>196</Red>

<Green>196</Green>

<Blue>196</Blue>

</Color>

<Visible>true</Visible>

</TickAttributes>

</MajorGrid>

<MinorGrid>

<LineAttributes>

<Style>Solid</Style>

<Thickness>1</Thickness>

<Color>

<Transparency>255</Transparency>

<Red>225</Red>

<Green>225</Green>

<Blue>225</Blue>

</Color>

<Visible>false</Visible>

</LineAttributes>

<TickStyle>Across</TickStyle>

<TickAttributes>

<Style>Solid</Style>

<Thickness>1</Thickness>

<Color>

<Transparency>255</Transparency>

<Red>225</Red>

<Green>225</Green>

<Blue>225</Blue>

</Color>

<Visible>false</Visible>

</TickAttributes>

</MinorGrid>

<Scale>

<Max xsi:type="data:NumberDataElement">

<Value>860000.0</Value>

</Max>

<Step>100000.0</Step>

<MinorGridsPerUnit>5</MinorGridsPerUnit>

</Scale>

<Origin>

<Type>Min</Type>

<Value xsi:type="data:NumberDataElement">

<Value>0.0</Value>

</Value>

</Origin>

<PrimaryAxis>true</PrimaryAxis>

<Percent>false</Percent>

</AssociatedAxes>

<AncillaryAxes>

<Type>Text</Type>

<Title>

<Caption>

<Value>Z-Axis Title</Value>

<Font>

<Size>14.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>

</Outline>

<Insets>

<Top>0.0</Top>

<Left>2.0</Left>

<Bottom>0.0</Bottom>

<Right>3.0</Right>

</Insets>

<Visible>false</Visible>

</Title>

<TitlePosition>Below</TitlePosition>

<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>

<Series>

<Visible>true</Visible>

<Label>

<Caption>

<Value>&lt;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>

<SeriesIdentifier>&lt;undefined></SeriesIdentifier>

<DataPoint>

<Components>

<Type>Orthogonal_Value</Type>

</Components>

<Separator>, </Separator>

</DataPoint>

<LabelPosition>Outside</LabelPosition>

<Stacked>false</Stacked>

</Series>

<Grouping>

<Enabled>false</Enabled>

<GroupingInterval>2</GroupingInterval>

<GroupType>Text</GroupType>

<AggregateExpression>Sum</AggregateExpression>

</Grouping>

</SeriesDefinitions>

<Orientation>Horizontal</Orientation>

<LineAttributes>

<Style>Solid</Style>

<Thickness>1</Thickness>

<Color>

<Transparency>255</Transparency>

<Red>0</Red>

<Green>0</Green>

<Blue>0</Blue>

</Color>

<Visible>true</Visible>

</LineAttributes>

<Label>

<Caption>

<Value>&lt;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>

</Outline>

<Insets>

<Top>0.0</Top>

<Left>2.0</Left>

<Bottom>0.0</Bottom>

<Right>3.0</Right>

</Insets>

<Visible>true</Visible>

</Label>

<LabelPosition>Below</LabelPosition>

<MajorGrid>

<LineAttributes>

<Style>Solid</Style>

<Thickness>1</Thickness>

<Color>

<Transparency>255</Transparency>

<Red>196</Red>

<Green>196</Green>

<Blue>196</Blue>

</Color>

<Visible>false</Visible>

</LineAttributes>

<TickStyle>Across</TickStyle>

<TickAttributes>

<Style>Solid</Style>

<Thickness>1</Thickness>

<Color>

<Transparency>255</Transparency>

<Red>196</Red>

<Green>196</Green>

<Blue>196</Blue>

</Color>

<Visible>true</Visible>

</TickAttributes>

</MajorGrid>

<MinorGrid>

<LineAttributes>

<Style>Solid</Style>

<Thickness>1</Thickness>

<Color>

<Transparency>255</Transparency>

<Red>225</Red>

<Green>225</Green>

<Blue>225</Blue>

</Color>

<Visible>false</Visible>

</LineAttributes>

<TickStyle>Across</TickStyle>

<TickAttributes>

<Style>Solid</Style>

<Thickness>1</Thickness>

<Color>

<Transparency>255</Transparency>

<Red>225</Red>

<Green>225</Green>

<Blue>225</Blue>

</Color>

<Visible>false</Visible>

</TickAttributes>

</MinorGrid>

<Scale>

<MinorGridsPerUnit>5</MinorGridsPerUnit>

</Scale>

<Origin>

<Type>Min</Type>

<Value xsi:type="data:NumberDataElement">

<Value>0.0</Value>

</Value>

</Origin>

<PrimaryAxis>true</PrimaryAxis>

<Percent>false</Percent>

</AncillaryAxes>

<SeriesDefinitions>

<Query>

<Definition>Base Series</Definition>

</Query>

<SeriesPalette>

<Entries xsi:type="attribute:ColorDefinition">

<Transparency>255</Transparency>

<Red>128</Red>

<Green>0</Green>

<Blue>0</Blue>

</Entries>

<Entries xsi:type="attribute:ColorDefinition">

<Transparency>255</Transparency>

<Red>0</Red>

<Green>0</Green>

<Blue>254</Blue>

</Entries>

<Entries xsi:type="attribute:ColorDefinition">

<Transparency>255</Transparency>

<Red>128</Red>

<Green>0</Green>

<Blue>128</Blue>

</Entries>

<Entries xsi:type="attribute:ColorDefinition">

<Transparency>255</Transparency>

<Red>254</Red>

<Green>204</Green>

<Blue>0</Blue>

</Entries>

<Entries xsi:type="attribute:ColorDefinition">

<Transparency>255</Transparency>

<Red>0</Red>

<Green>254</Green>

<Blue>0</Blue>

</Entries>

<Entries xsi:type="attribute:ColorDefinition">

<Transparency>255</Transparency>

<Red>0</Red>

<Green>0</Green>

<Blue>128</Blue>

</Entries>

<Entries xsi:type="attribute:ColorDefinition">

<Transparency>255</Transparency>

<Red>254</Red>

<Green>102</Green>

<Blue>0</Blue>

</Entries>

<Entries xsi:type="attribute:ColorDefinition">

<Transparency>255</Transparency>

<Red>0</Red>

<Green>204</Green>

<Blue>254</Blue>

</Entries>

</SeriesPalette>

<Series>

<Visible>true</Visible>

<Label>

<Caption>

<Value>&lt;undefined></Value>

<Font>

<Name>SansSerif</Name>

<Size>12.0</Size>

<Bold>false</Bold>

<Italic>false</Italic>

<Strikethrough>false</Strikethrough>

<Underline>false</Underline>

<Alignment>

<horizontalAlignment>Left</horizontalAlignment>

<verticalAlignment>Top</verticalAlignment>

</Alignment>

<Rotation>0.0</Rotation>

</Font>

<Color>

<Transparency>255</Transparency>

<Red>0</Red>

<Green>0</Green>

<Blue>0</Blue>

</Color>

</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[&quot;CUSTOMERNAME&quot;]</Definition >

</DataDefinition>

<SeriesIdentifier>&lt;undefined></SeriesIdentifier>

<DataPoint>

<Components>

<Type>Orthogonal_Value</Type>

</Components>

<Separator>, </Separator>

</DataPoint>

<LabelPosition>Outside</LabelPosition>

<Stacked>false</Stacked>

</Series>

<Grouping>

<Enabled>false</Enabled>

<GroupingInterval>2</GroupingInterval>

<GroupType>Text</GroupType>

<AggregateExpression>Sum</AggregateExpression>

</Grouping>

</SeriesDefinitions>

<Orientation>Horizontal</Orientation>

<LineAttributes>

<Style>Solid</Style>

<Thickness>1</Thickness>

<Color>

<Transparency>255</Transparency>

<Red>0</Red>

<Green>0</Green>

<Blue>0</Blue>

</Color>

<Visible>true</Visible>

</LineAttributes>

<Label>

<Caption>

<Value>&lt;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>

</Outline>

<Insets>

<Top>0.0</Top>

<Left>2.0</Left>

<Bottom>0.0</Bottom>

<Right>3.0</Right>

</Insets>

<Visible>true</Visible>

</Label>

<LabelPosition>Below</LabelPosition>

<MajorGrid>

<LineAttributes>

<Style>Solid</Style>

<Thickness>1</Thickness>

<Color>

<Transparency>255</Transparency>

<Red>196</Red>

<Green>196</Green>

<Blue>196</Blue>

</Color>

<Visible>false</Visible>

</LineAttributes>

<TickStyle>Across</TickStyle>

<TickAttributes>

<Style>Solid</Style>

<Thickness>1</Thickness>

<Color>

<Transparency>255</Transparency>

<Red>196</Red>

<Green>196</Green>

<Blue>196</Blue>

</Color>

<Visible>true</Visible>

</TickAttributes>

</MajorGrid>

<MinorGrid>
Re: getGlobalVariable() problem in Chart script [message #188022 is a reply to message #187888] Tue, 29 August 2006 19:47 Go to previous message
Tomomi is currently offline TomomiFriend
Messages: 28
Registered: July 2009
Junior Member
Jason,

It worked after I corrected the way of setting the global variable.
Thank you for your help!!!!


"Jason Weathersby" <jweathersby@actuate.com> wrote in message
news:ed1q0c$dut$1@utils.eclipse.org...
> You need to do this in the beforegeneration script like:
>
> function beforeGeneration( chart, context ){
>
> importPackage(Packages.org.eclipse.birt.chart.model.attribut e);
>
> importPackage(Packages.org.eclipse.birt.chart.model.data.imp l);
>
> chrmax =
> context.getExternalContext().getScriptable().getGlobalVariab le( "cmax");
>
> xaxis = chart.getPrimaryBaseAxes( )[0];
>
> yaxis = chart.getPrimaryOrthogonalAxis( xaxis );
>
> yaxis.getScale().setStep(200000);
>
> yaxis.getScale().setMax( NumberDataElementImpl.create( chrmax ));
>
> }
>
>
> Attached is an example report. Look in the initialize method to set how
> cmax is set.
>
> Jason
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <!-- Written by Eclipse BIRT 2.0 -->
>
> <report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.2"
> id="1">
>
> <property name="author">Mark Coggins</property>
>
> <property name="createdBy">Eclipse BIRT Designer Version 1.0.0 Build
> &lt;20050601-0809></property>
>
> <property name="units">in</property>
>
> <text-property name="title">Top Classic Models Inc. Customers by
> Revenue</text-property>
>
> <method name="initialize"><![CDATA[reportContext.setGlobalVariable( "cmax",
> 1000000);]]></method>
>
> <list-property name="configVars">
>
> <structure>
>
> <property name="name">Top Count</property>
>
> <property name="value">5</property>
>
> </structure>
>
> <structure>
>
> <property name="name">Top Percentage</property>
>
> <property name="value">25</property>
>
> </structure>
>
> </list-property>
>
> <parameters>
>
> <scalar-parameter name="Top Count" id="87">
>
> <text-property name="helpText">Enter the number of customers you wish
> included in the top "N" graph of the report</text-property>
>
> <property name="valueType">static</property>
>
> <property name="dataType">decimal</property>
>
> <text-property name="promptText">Number of Customers for Top "N"
> Chart</text-property>
>
> <property name="allowBlank">false</property>
>
> <property name="allowNull">false</property>
>
> <property name="controlType">text-box</property>
>
> <property name="defaultValue">5</property>
>
> <structure name="format">
>
> <property name="category">Unformatted</property>
>
> <property name="pattern">Unformatted</property>
>
> </structure>
>
> </scalar-parameter>
>
> <scalar-parameter name="Top Percentage" id="88">
>
> <text-property name="helpText">Enter the percentage of customers you wish
> included in the top N% listing of the report</text-property>
>
> <property name="valueType">static</property>
>
> <property name="dataType">decimal</property>
>
> <text-property name="promptText">Percentage of Customers for Top N%
> Listing</text-property>
>
> <property name="allowBlank">false</property>
>
> <property name="controlType">text-box</property>
>
> <property name="defaultValue">25</property>
>
> <structure name="format">
>
> <property name="category">Unformatted</property>
>
> <property name="pattern">Unformatted</property>
>
> </structure>
>
> </scalar-parameter>
>
> </parameters>
>
> <data-sources>
>
> <oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc"
> name="Classic Models" id="59">
>
> <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="Customer Sales" id="60">
>
> <structure name="cachedMetaData">
>
> <list-property name="resultSet">
>
> <structure>
>
> <property name="position">1</property>
>
> <property name="name">CUSTOMERNAME</property>
>
> <property name="dataType">string</property>
>
> </structure>
>
> <structure>
>
> <property name="position">2</property>
>
> <property name="name">CUSTOMERNUMBER</property>
>
> <property name="dataType">integer</property>
>
> </structure>
>
> <structure>
>
> <property name="position">3</property>
>
> <property name="name">CUSTOMERTOTAL</property>
>
> <property name="dataType">float</property>
>
> </structure>
>
> </list-property>
>
> </structure>
>
> <property name="dataSource">Classic Models</property>
>
> <property name="queryText">select CUSTOMERS.CUSTOMERNAME,
>
> CUSTOMERS.CUSTOMERNUMBER,
>
> sum(ORDERDETAILS.QUANTITYORDERED *
>
> ORDERDETAILS.PRICEEACH) as CUSTOMERTOTAL
>
> from CUSTOMERS, ORDERS, ORDERDETAILS
>
> where CUSTOMERS.CUSTOMERNUMBER = ORDERS.CUSTOMERNUMBER
>
> and ORDERS.ORDERNUMBER = ORDERDETAILS.ORDERNUMBER
>
> group by CUSTOMERS.CUSTOMERNAME, CUSTOMERS.CUSTOMERNUMBER
>
> order by CUSTOMERTOTAL</property>
>
> </oda-data-set>
>
> </data-sets>
>
> <styles>
>
> <style name="BackgroundLightGray" id="2">
>
> <property name="backgroundColor">#EAEAEA</property>
>
> </style>
>
> <style name="BackgroundBlue" id="3">
>
> <property name="backgroundColor">#4B6987</property>
>
> </style>
>
> <style name="BackgroundYellow" id="4">
>
> <property name="backgroundColor">#FAD764</property>
>
> </style>
>
> </styles>
>
> <page-setup>
>
> <simple-master-page name="Simple MasterPage" id="8">
>
> <page-footer>
>
> <grid id="141">
>
> <property name="width">100%</property>
>
> <column id="143">
>
> <property name="width">80%</property>
>
> </column>
>
> <column id="144">
>
> <property name="width">20%</property>
>
> <property name="textAlign">right</property>
>
> </column>
>
> <row id="152">
>
> <property name="height">0.2in</property>
>
> <cell id="153"/>
>
> <cell id="154"/>
>
> </row>
>
> <row id="145">
>
> <cell id="148">
>
> <text id="149">
>
> <property name="fontSize">10pt</property>
>
> <property name="fontStyle">italic</property>
>
> <property name="paddingLeft">5pt</property>
>
> <property name="contentType">html</property>
>
> <text-property name="content"><![CDATA[Top <VALUE-OF>params["Top
> Count"]</VALUE-OF> / Top <VALUE-OF>params["Top Percentage"]</VALUE-OF>%
> Customers by Revenue]]></text-property>
>
> </text>
>
> </cell>
>
> <cell id="150">
>
> <text id="151">
>
> <property name="fontSize">10pt</property>
>
> <property name="fontStyle">italic</property>
>
> <property name="paddingRight">5pt</property>
>
> <property name="contentType">html</property>
>
> <text-property name="content"><![CDATA[Page:
> <value-of>pageNumber</value-of>]]></text-property>
>
> </text>
>
> </cell>
>
> </row>
>
> </grid>
>
> </page-footer>
>
> </simple-master-page>
>
> </page-setup>
>
> <body>
>
> <grid id="10">
>
> <property name="width">100%</property>
>
> <column id="11">
>
> <property name="width">2.8in</property>
>
> </column>
>
> <column id="12">
>
> <property name="width">3.2in</property>
>
> </column>
>
> <row id="13">
>
> <property name="style">BackgroundLightGray</property>
>
> <cell id="14">
>
> <property name="style">BackgroundLightGray</property>
>
> <property name="paddingRight">10pt</property>
>
> <image id="15">
>
> <property name="borderBottomColor">#808080</property>
>
> <property name="borderBottomStyle">solid</property>
>
> <property name="borderBottomWidth">thin</property>
>
> <property name="borderLeftColor">#808080</property>
>
> <property name="borderLeftStyle">solid</property>
>
> <property name="borderLeftWidth">thin</property>
>
> <property name="borderRightColor">#808080</property>
>
> <property name="borderRightStyle">solid</property>
>
> <property name="borderRightWidth">thin</property>
>
> <property name="borderTopColor">#808080</property>
>
> <property name="borderTopStyle">solid</property>
>
> <property name="borderTopWidth">thin</property>
>
> <property name="imageName">C:\Documents and Settings\pclenahan\My
> Documents\ClassicModels\logos\Classic-Models-Full-M.jpg</property >
>
> </image>
>
> </cell>
>
> <cell id="16">
>
> <property name="style">BackgroundLightGray</property>
>
> <property name="verticalAlign">middle</property>
>
> <label id="17">
>
> <property name="fontFamily">sans-serif</property>
>
> <property name="fontSize">20pt</property>
>
> <property name="fontWeight">bold</property>
>
> <property name="color">#000080</property>
>
> <text-property name="text">Classic Models, Inc.</text-property>
>
> </label>
>
> <text id="18">
>
> <property name="fontFamily">sans-serif</property>
>
> <property name="fontSize">12pt</property>
>
> <property name="paddingTop">5pt</property>
>
> <property name="paddingBottom">5pt</property>
>
> <property name="contentType">html</property>
>
> <text-property name="content"><![CDATA[701 Gateway Boulevard, San
> Francisco, CA 94107]]></text-property>
>
> </text>
>
> <text id="90">
>
> <property name="fontFamily">sans-serif</property>
>
> <property name="fontSize">16pt</property>
>
> <property name="fontWeight">bold</property>
>
> <property name="contentType">html</property>
>
> <text-property name="content"><![CDATA[Top <VALUE-OF>params["Top
> Count"]</VALUE-OF> / Top <VALUE-OF>params["Top Percentage"]</VALUE-OF>%
> Customers by Revenue]]></text-property>
>
> </text>
>
> </cell>
>
> </row>
>
> <row id="20">
>
> <property name="height">0.25in</property>
>
> <cell id="21"/>
>
> <cell id="22"/>
>
> </row>
>
> </grid>
>
> <grid id="23">
>
> <property name="width">100%</property>
>
> <column id="24"/>
>
> <row id="25">
>
> <property name="height">0.1in</property>
>
> <property name="style">BackgroundBlue</property>
>
> <cell id="26"/>
>
> </row>
>
> <row id="27">
>
> <cell id="28">
>
> <text id="91">
>
> <property name="fontFamily">sans-serif</property>
>
> <property name="fontSize">16pt</property>
>
> <property name="paddingTop">5pt</property>
>
> <property name="contentType">html</property>
>
> <text-property name="content"><![CDATA[Top <VALUE-OF>params["Top
> Count"]</VALUE-OF> Customers]]></text-property>
>
> </text>
>
> </cell>
>
> </row>
>
> <row id="30">
>
> <cell id="31">
>
> <extended-item extensionName="Chart" id="32">
>
> <property name="height">250pt</property>
>
> <property name="width">400pt</property>
>
> <property name="dataSet">Customer Sales</property>
>
> <list-property name="boundDataColumns">
>
> <structure>
>
> <property name="name">CUSTOMERTOTAL</property>
>
> <expression name="expression">dataSetRow["CUSTOMERTOTAL"]</expression >
>
> </structure>
>
> <structure>
>
> <property name="name">CUSTOMERNAME</property>
>
> <expression name="expression">dataSetRow["CUSTOMERNAME"]</expression >
>
> </structure>
>
> </list-property>
>
> <xml-property name="xmlRepresentation"><![CDATA[<model:ChartWithAxes
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:attribute="http://www.birt.eclipse.org/ChartModelAttribute"
> xmlns:data="http://www.birt.eclipse.org/ChartModelData"
> 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>Bar Chart</Type>
>
> <SubType>Side-by-side</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>false</Visible>
>
> <Label>
>
> <Caption>
>
> <Value>Bar Chart Title</Value>
>
> <Font>
>
> <Name>SansSerif</Name>
>
> <Size>24.0</Size>
>
> <Bold>false</Bold>
>
> <Italic>false</Italic>
>
> <Strikethrough>false</Strikethrough>
>
> <Underline>false</Underline>
>
> <Alignment>
>
> <horizontalAlignment>Left</horizontalAlignment>
>
> <verticalAlignment>Top</verticalAlignment>
>
> </Alignment>
>
> <Rotation>0.0</Rotation>
>
> </Font>
>
> <Color>
>
> <Transparency>255</Transparency>
>
> <Red>0</Red>
>
> <Green>0</Green>
>
> <Blue>0</Blue>
>
> </Color>
>
> </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>
>
> </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>5</HorizontalSpacing>
>
> <VerticalSpacing>5</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>false</Visible>
>
> <ClientArea>
>
> <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>2.0</Top>
>
> <Left>2.0</Left>
>
> <Bottom>2.0</Bottom>
>
> <Right>2.0</Right>
>
> </Insets>
>
> </ClientArea>
>
> <Text>
>
> <Value>&lt;undefined></Value>
>
> <Font>
>
> <Name>SansSerif</Name>
>
> <Size>12.0</Size>
>
> <Bold>false</Bold>
>
> <Italic>false</Italic>
>
> <Strikethrough>false</Strikethrough>
>
> <Underline>false</Underline>
>
> <Alignment>
>
> <horizontalAlignment>Left</horizontalAlignment>
>
> <verticalAlignment>Top</verticalAlignment>
>
> </Alignment>
>
> <Rotation>0.0</Rotation>
>
> </Font>
>
> <Color>
>
> <Transparency>255</Transparency>
>
> <Red>0</Red>
>
> <Green>0</Green>
>
> <Blue>0</Blue>
>
> </Color>
>
> </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>Series</ItemType>
>
> <Title>
>
> <Caption>
>
> <Value>&lt;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>
>
> </Outline>
>
> <Insets>
>
> <Top>0.0</Top>
>
> <Left>2.0</Left>
>
> <Bottom>0.0</Bottom>
>
> <Right>3.0</Right>
>
> </Insets>
>
> <Visible>false</Visible>
>
> </Title>
>
> <ShowValue>false</ShowValue>
>
> </Children>
>
> <Bounds>
>
> <Left>0.0</Left>
>
> <Top>0.0</Top>
>
> <Width>399.75</Width>
>
> <Height>249.75</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>
>
> <Script>
>
> function beforeGeneration( chart, context ){
>
> importPackage(Packages.org.eclipse.birt.chart.model.attribut e);
>
> importPackage(Packages.org.eclipse.birt.chart.model.data.imp l);
>
> chrmax =
> context.getExternalContext().getScriptable().getGlobalVariab le(&quot;cmax&quot;);
>
> xaxis = chart.getPrimaryBaseAxes( )[0];
>
> yaxis = chart.getPrimaryOrthogonalAxis( xaxis );
>
> yaxis.getScale().setStep(200000);
>
> yaxis.getScale().setMax( NumberDataElementImpl.create( chrmax ));
>
> }
>
>
>
>
> </Script>
>
> <Units>Points</Units>
>
> <SeriesThickness>10.0</SeriesThickness>
>
> <GridColumnCount>1</GridColumnCount>
>
> <SampleData>
>
> <BaseSampleData>
>
> <DataSetRepresentation>'6.0','7.0','8.0'</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>None</LegendBehavior>
>
> </Interactivity>
>
> <Axes>
>
> <Type>Text</Type>
>
> <Title>
>
> <Caption>
>
> <Value>X-Axis Title</Value>
>
> <Font>
>
> <Size>14.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>
>
> </Outline>
>
> <Insets>
>
> <Top>0.0</Top>
>
> <Left>2.0</Left>
>
> <Bottom>0.0</Bottom>
>
> <Right>3.0</Right>
>
> </Insets>
>
> <Visible>false</Visible>
>
> </Title>
>
> <TitlePosition>Below</TitlePosition>
>
> <AssociatedAxes>
>
> <Type>Linear</Type>
>
> <Title>
>
> <Caption>
>
> <Value>Y-Axis Title</Value>
>
> <Font>
>
> <Size>14.0</Size>
>
> <Bold>true</Bold>
>
> <Alignment>
>
> <horizontalAlignment>Center</horizontalAlignment>
>
> <verticalAlignment>Center</verticalAlignment>
>
> </Alignment>
>
> <Rotation>90.0</Rotation>
>
> </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>
>
> </Title>
>
> <TitlePosition>Left</TitlePosition>
>
> <SeriesDefinitions>
>
> <Query>
>
> <Definition></Definition>
>
> </Query>
>
> <SeriesPalette>
>
> <Entries xsi:type="attribute:ColorDefinition">
>
> <Transparency>255</Transparency>
>
> <Red>75</Red>
>
> <Green>105</Green>
>
> <Blue>135</Blue>
>
> </Entries>
>
> </SeriesPalette>
>
> <FormatSpecifier xsi:type="attribute:NumberFormatSpecifier">
>
> <Prefix></Prefix>
>
> <Suffix></Suffix>
>
> <FractionDigits>0</FractionDigits>
>
> </FormatSpecifier>
>
> <Series xsi:type="type:BarSeries">
>
> <Visible>true</Visible>
>
> <Label>
>
> <Caption>
>
> <Value>&lt;undefined></Value>
>
> <Font>
>
> <Name>SansSerif</Name>
>
> <Size>12.0</Size>
>
> <Bold>false</Bold>
>
> <Italic>false</Italic>
>
> <Strikethrough>false</Strikethrough>
>
> <Underline>false</Underline>
>
> <Alignment>
>
> <horizontalAlignment>Left</horizontalAlignment>
>
> <verticalAlignment>Top</verticalAlignment>
>
> </Alignment>
>
> <Rotation>0.0</Rotation>
>
> </Font>
>
> <Color>
>
> <Transparency>255</Transparency>
>
> <Red>0</Red>
>
> <Green>0</Green>
>
> <Blue>0</Blue>
>
> </Color>
>
> </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[&quot;CUSTOMERTOTAL&quot;]</Definition >
>
> </DataDefinition>
>
> <SeriesIdentifier>&lt;undefined></SeriesIdentifier>
>
> <DataPoint>
>
> <Components>
>
> <Type>Orthogonal_Value</Type>
>
> </Components>
>
> <Separator>, </Separator>
>
> </DataPoint>
>
> <LabelPosition>Outside</LabelPosition>
>
> <Stacked>false</Stacked>
>
> <Riser>Rectangle</Riser>
>
> <RiserOutline>
>
> <Transparency>255</Transparency>
>
> <Red>0</Red>
>
> <Green>0</Green>
>
> <Blue>0</Blue>
>
> </RiserOutline>
>
> </Series>
>
> <Grouping>
>
> <Enabled>false</Enabled>
>
> <GroupingInterval>2</GroupingInterval>
>
> <GroupType>Text</GroupType>
>
> <AggregateExpression>Sum</AggregateExpression>
>
> </Grouping>
>
> </SeriesDefinitions>
>
> <Orientation>Vertical</Orientation>
>
> <LineAttributes>
>
> <Style>Solid</Style>
>
> <Thickness>1</Thickness>
>
> <Color>
>
> <Transparency>255</Transparency>
>
> <Red>0</Red>
>
> <Green>0</Green>
>
> <Blue>0</Blue>
>
> </Color>
>
> <Visible>true</Visible>
>
> </LineAttributes>
>
> <Label>
>
> <Caption>
>
> <Value>&lt;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>
>
> </Outline>
>
> <Insets>
>
> <Top>0.0</Top>
>
> <Left>2.0</Left>
>
> <Bottom>0.0</Bottom>
>
> <Right>3.0</Right>
>
> </Insets>
>
> <Visible>true</Visible>
>
> </Label>
>
> <LabelPosition>Left</LabelPosition>
>
> <MajorGrid>
>
> <LineAttributes>
>
> <Style>Solid</Style>
>
> <Thickness>1</Thickness>
>
> <Color>
>
> <Transparency>255</Transparency>
>
> <Red>196</Red>
>
> <Green>196</Green>
>
> <Blue>196</Blue>
>
> </Color>
>
> <Visible>false</Visible>
>
> </LineAttributes>
>
> <TickStyle>Across</TickStyle>
>
> <TickAttributes>
>
> <Style>Solid</Style>
>
> <Thickness>1</Thickness>
>
> <Color>
>
> <Transparency>255</Transparency>
>
> <Red>196</Red>
>
> <Green>196</Green>
>
> <Blue>196</Blue>
>
> </Color>
>
> <Visible>true</Visible>
>
> </TickAttributes>
>
> </MajorGrid>
>
> <MinorGrid>
>
> <LineAttributes>
>
> <Style>Solid</Style>
>
> <Thickness>1</Thickness>
>
> <Color>
>
> <Transparency>255</Transparency>
>
> <Red>225</Red>
>
> <Green>225</Green>
>
> <Blue>225</Blue>
>
> </Color>
>
> <Visible>false</Visible>
>
> </LineAttributes>
>
> <TickStyle>Across</TickStyle>
>
> <TickAttributes>
>
> <Style>Solid</Style>
>
> <Thickness>1</Thickness>
>
> <Color>
>
> <Transparency>255</Transparency>
>
> <Red>225</Red>
>
> <Green>225</Green>
>
> <Blue>225</Blue>
>
> </Color>
>
> <Visible>false</Visible>
>
> </TickAttributes>
>
> </MinorGrid>
>
> <Scale>
>
> <Max xsi:type="data:NumberDataElement">
>
> <Value>860000.0</Value>
>
> </Max>
>
> <Step>100000.0</Step>
>
> <MinorGridsPerUnit>5</MinorGridsPerUnit>
>
> </Scale>
>
> <Origin>
>
> <Type>Min</Type>
>
> <Value xsi:type="data:NumberDataElement">
>
> <Value>0.0</Value>
>
> </Value>
>
> </Origin>
>
> <PrimaryAxis>true</PrimaryAxis>
>
> <Percent>false</Percent>
>
> </AssociatedAxes>
>
> <AncillaryAxes>
>
> <Type>Text</Type>
>
> <Title>
>
> <Caption>
>
> <Value>Z-Axis Title</Value>
>
> <Font>
>
> <Size>14.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>
>
> </Outline>
>
> <Insets>
>
> <Top>0.0</Top>
>
> <Left>2.0</Left>
>
> <Bottom>0.0</Bottom>
>
> <Right>3.0</Right>
>
> </Insets>
>
> <Visible>false</Visible>
>
> </Title>
>
> <TitlePosition>Below</TitlePosition>
>
> <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>
>
> <Series>
>
> <Visible>true</Visible>
>
> <Label>
>
> <Caption>
>
> <Value>&lt;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>
>
> <SeriesIdentifier>&lt;undefined></SeriesIdentifier>
>
> <DataPoint>
>
> <Components>
>
> <Type>Orthogonal_Value</Type>
>
> </Components>
>
> <Separator>, </Separator>
>
> </DataPoint>
>
> <LabelPosition>Outside</LabelPosition>
>
> <Stacked>false</Stacked>
>
> </Series>
>
> <Grouping>
>
> <Enabled>false</Enabled>
>
> <GroupingInterval>2</GroupingInterval>
>
> <GroupType>Text</GroupType>
>
> <AggregateExpression>Sum</AggregateExpression>
>
> </Grouping>
>
> </SeriesDefinitions>
>
> <Orientation>Horizontal</Orientation>
>
> <LineAttributes>
>
> <Style>Solid</Style>
>
> <Thickness>1</Thickness>
>
> <Color>
>
> <Transparency>255</Transparency>
>
> <Red>0</Red>
>
> <Green>0</Green>
>
> <Blue>0</Blue>
>
> </Color>
>
> <Visible>true</Visible>
>
> </LineAttributes>
>
> <Label>
>
> <Caption>
>
> <Value>&lt;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>
>
> </Outline>
>
> <Insets>
>
> <Top>0.0</Top>
>
> <Left>2.0</Left>
>
> <Bottom>0.0</Bottom>
>
> <Right>3.0</Right>
>
> </Insets>
>
> <Visible>true</Visible>
>
> </Label>
>
> <LabelPosition>Below</LabelPosition>
>
> <MajorGrid>
>
> <LineAttributes>
>
> <Style>Solid</Style>
>
> <Thickness>1</Thickness>
>
> <Color>
>
> <Transparency>255</Transparency>
>
> <Red>196</Red>
>
> <Green>196</Green>
>
> <Blue>196</Blue>
>
> </Color>
>
> <Visible>false</Visible>
>
> </LineAttributes>
>
> <TickStyle>Across</TickStyle>
>
> <TickAttributes>
>
> <Style>Solid</Style>
>
> <Thickness>1</Thickness>
>
> <Color>
>
> <Transparency>255</Transparency>
>
> <Red>196</Red>
>
> <Green>196</Green>
>
> <Blue>196</Blue>
>
> </Color>
>
> <Visible>true</Visible>
>
> </TickAttributes>
>
> </MajorGrid>
>
> <MinorGrid>
>
> <LineAttributes>
>
> <Style>Solid</Style>
>
> <Thickness>1</Thickness>
>
Previous Topic:My final conundrum - fixing plot colors
Next Topic:Text doesn't wrap in HTML, works fine in PDF
Goto Forum:
  


Current Time: Fri Mar 29 06:10:22 GMT 2024

Powered by FUDForum. Page generated in 0.03632 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top