Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » gradients in pie charts
gradients in pie charts [message #646562] Mon, 27 December 2010 22:58 Go to next message
Eclipse User
Originally posted by: anders.hessellund.gmail.com

This is a multi-part message in MIME format.
--------------060609070002050804060200
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

I am experimenting a bit with pie charts. Specifically, I am interested
in controlling the gradients. I have two questions in this regard:

1) In the attached screenshot, I would like the gradient in each pie
slice to get a specific direction. Each slice's gradient should have the
direction indicated by the arrows, i.e., from the center of the arc
towards the center of the pie. Is it possible to achieve this effect? If
not, could you perhaps point me in the direction of the place where I
need to start hacking?

2) In the attached screenshot, the colored boxes in the legend have the
exact same gradiant direction as the pie slices. Is the anyway to
customize the gradiant for the legend? Specifically, I would like to get
the direction indicated by the arrow in the blueburry box.

Cheers,

Anders

--------------060609070002050804060200
Content-Type: image/png;
name="sshot-8-edit.PNG"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="sshot-8-edit.PNG"

iVBORw0KGgoAAAANSUhEUgAAAj0AAAEdCAIAAABot0H9AAAABGdBTUEAALGP C/xhBQAAVWdJ
REFUeF7tvWd4G0eW94v7aUTtF8/sF+/73Pe+mr1rWQ6yNcFhbO+OxzszTjO2 tO9cj2fHaV6v
NbbXQZKpaElUoqgcqRwoiUpUIEWKIkUlKpKUmDPAAOacQIIACIKS7ykcoNgC QCSigW70wfN/
9JBgdXf1qer+6VSdOvV//fDDDyr6kAXIAmQBsgBZQC4WAG7RhyxAFiALkAXI AnKxgEouFaV6
kgXIAmQBsgBZgI0RkhXIAmQBsgBZgCwgIwsQt2TUWFRVsgBZgCxAFiB/i/oA WYAsQBYgC8jK
AuRvyaq55FNZo9FUXVMLun7jdnrGZaaLlw8cjN++c49NO/Zs37GnolLdZhrJ 7DJldtpUZ7DI
5y6ppmQBskAILEDcCoHRw+mSFoulpkZ7Lzf/YsaVvfsO7dy1//slK+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fIAmQBsgBZQE4WIG7JqbWormQBsgBZgCxA3KI+QBYg C5AFyAJysgBx
S06tRXUlC5AFyAJkAeIW9QGyAFmALEAWkJMFiFtyai2qK1mALEAWIAsQt6gP kAXIAmQBsoCc
LEDcklNrUV3JAmQBsgBZgLhFfYAsQBYgC5AF5GQB4pacWovqShYgC5AFyAL/ P2MPo0aioJXB
AAAAAElFTkSuQmCC
--------------060609070002050804060200--
Re: gradients in pie charts [message #646659 is a reply to message #646562] Wed, 29 December 2010 16:49 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Anders,

If the palette entry is a gradient and not a color you should be able to
change the colors and direction in script like:

importPackage(Packages.org.eclipse.birt.chart.model.attribut e.impl);
mygradientst = ColorDefinitionImpl.create( 225,225,255 );
mygradienten = ColorDefinitionImpl.create( 255, 255, 225 );
mygradientdir = -35;

function beforeDrawDataPoint( dph, fill, icsc )
{
if( dph.getBaseDisplayValue() == "Vintage Cars" ){
importPackage( Packages.org.eclipse.birt.chart.model.attribute.impl );
fill.setStartColor(mygradientst);
fill.setEndColor(mygradienten);
fill.setDirection(mygradientdir);
}
}

function beforeDrawLegendItem( lerh, bounds, icsc )
{
if( lerh.getLabel().getCaption().getValue() == "Vintage Cars"){

importPackage( Packages.org.eclipse.birt.chart.model.attribute.impl );
lerh.getFill().setStartColor(mygradientst);
lerh.getFill().setEndColor(mygradienten);
lerh.getFill().setDirection(mygradientdir);
}
}

Take a look at the attached report.

Jason

<?xml version="1.0" encoding="UTF-8"?>
<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.21"
id="1">
<property name="author">Paul Clenahan</property>
<property name="createdBy">Eclipse BIRT Designer Version
2.5.2.v20100208 Build &lt;2.5.2.v20100210-0630></property>
<text-property name="title">Classic Models Top Selling
Products</text-property>
<property name="units">in</property>
<property name="layoutPreference">auto layout</property>
<data-sources>
<oda-data-source
extensionID="org.eclipse.birt.report.data.oda.jdbc" name="Classic
Models" id="5">
<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="Total Sales By Product Line" id="6">
<list-property name="columnHints">
<structure>
<property name="columnName">PRODUCTLINE</property>
<text-property
name="displayName">PRODUCTLINE</text-property>
</structure>
<structure>
<property name="columnName">TOTALREVENUE</property>
<text-property
name="displayName">TOTALREVENUE</text-property>
</structure>
</list-property>
<structure name="cachedMetaData">
<list-property name="resultSet">
<structure>
<property name="position">1</property>
<property name="name">PRODUCTLINE</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">2</property>
<property name="name">TOTALREVENUE</property>
<property name="dataType">float</property>
</structure>
</list-property>
</structure>
<property name="dataSource">Classic Models</property>
<list-property name="resultSet">
<structure>
<property name="position">1</property>
<property name="name">PRODUCTLINE</property>
<property name="nativeName">PRODUCTLINE</property>
<property name="dataType">string</property>
<property name="nativeDataType">12</property>
</structure>
<structure>
<property name="position">2</property>
<property name="name">TOTALREVENUE</property>
<property name="nativeName">TOTALREVENUE</property>
<property name="dataType">float</property>
<property name="nativeDataType">8</property>
</structure>
</list-property>
<xml-property name="queryText"><![CDATA[SELECT PRODUCTLINE,
SUM( PRICEEACH*QUANTITYORDERED ) AS "TOTALREVENUE"
FROM CLASSICMODELS.ORDERDETAILS, CLASSICMODELS.PRODUCTS
WHERE CLASSICMODELS.ORDERDETAILS.PRODUCTCODE =
CLASSICMODELS.PRODUCTS.PRODUCTCODE
GROUP BY CLASSICMODELS.PRODUCTS.PRODUCTLINE]]></xml-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">
<property name="topMargin">1in</property>
<property name="leftMargin">1.25in</property>
<property name="bottomMargin">1in</property>
<property name="rightMargin">1.25in</property>
<page-footer>
<text id="9">
<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="NewChart" id="32">
<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">
<Version>2.5.1</Version>
<Type>Pie Chart</Type>
<SubType>Standard</SubType>
<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>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>true</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>Categories</ItemType>
<Title>
<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>
</Title>
<MaxPercent>0.4</MaxPercent>
</Children>
<Bounds>
<Left>0.0</Left>
<Top>0.0</Top>
<Width>479.25</Width>
<Height>362.25</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> importPackage(Packages.org.eclipse.birt.chart.model.attribut e.impl);
mygradientst = ColorDefinitionImpl.create( 225,225,255 );
mygradienten = ColorDefinitionImpl.create( 255, 255, 225 );
mygradientdir = -35;

function beforeDrawDataPoint( dph, fill, icsc )
{
if( dph.getBaseDisplayValue() == &quot;Vintage Cars&quot; ){
importPackage( Packages.org.eclipse.birt.chart.model.attribute.impl );
fill.setStartColor(mygradientst);
fill.setEndColor(mygradienten);
fill.setDirection(mygradientdir);
}
}

function beforeDrawLegendItem( lerh, bounds, icsc )
{&#xD;
if( lerh.getLabel().getCaption().getValue() == &quot;Vintage
Cars&quot;){
importPackage( Packages.org.eclipse.birt.chart.model.attribute.impl
);&#xD;
lerh.getFill().setStartColor(mygradientst);
lerh.getFill().setEndColor(mygradienten);
lerh.getFill().setDirection(mygradientdir);
}
}
</Script>
<Units>Points</Units>
<SeriesThickness>15.0</SeriesThickness>
<GridColumnCount>1</GridColumnCount>
<ExtendedProperties>
<Name>enable.area.alt</Name>
<Value>false</Value>
</ExtendedProperties>
<SampleData>
<BaseSampleData>
<DataSetRepresentation>A, B, C</DataSetRepresentation>
</BaseSampleData>
<OrthogonalSampleData>
<DataSetRepresentation>5,4,12</DataSetRepresentation>
<SeriesDefinitionIndex>0</SeriesDefinitionIndex>
</OrthogonalSampleData>
</SampleData>
<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>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>204</Red>
<Green>254</Green>
<Blue>254</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:Gradient">
<StartColor>
<Transparency>255</Transparency>
<Red>254</Red>
<Green>102</Green>
<Blue>0</Blue>
</StartColor>
<EndColor>
<Transparency>255</Transparency>
<Red>255</Red>
<Green>163</Green>
<Blue>11</Blue>
</EndColor>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>0</Red>
<Green>204</Green>
<Blue>254</Blue>
</Entries>
</SeriesPalette>
<SeriesDefinitions>
<Query>
<Definition></Definition>
</Query>
<SeriesPalette>
<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>128</Red>
<Green>255</Green>
<Blue>128</Blue>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>204</Red>
<Green>254</Green>
<Blue>254</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:Gradient">
<StartColor>
<Transparency>255</Transparency>
<Red>254</Red>
<Green>102</Green>
<Blue>0</Blue>
</StartColor>
<EndColor>
<Transparency>255</Transparency>
<Red>255</Red>
<Green>163</Green>
<Blue>11</Blue>
</EndColor>
</Entries>
<Entries xsi:type="attribute:ColorDefinition">
<Transparency>255</Transparency>
<Red>128</Red>
<Green>128</Green>
<Blue>0</Blue>
</Entries>
</SeriesPalette>
<FormatSpecifier xsi:type="attribute:NumberFormatSpecifier">
<Prefix></Prefix>
<Suffix></Suffix>
<FractionDigits>0</FractionDigits>
</FormatSpecifier>
<Series xsi:type="type:PieSeries">
<Visible>true</Visible>
<Label>
<Caption>
<Value>&lt;undefined></Value>
<Font>
<Name>SansSerif</Name>
<Size>10.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;TOTALREVENUE&quot;]</Definition >
</DataDefinition>
<SeriesIdentifier>mypie</SeriesIdentifier>
<DataPoint>
<Components>
<Type>Orthogonal_Value</Type>
<FormatSpecifier xsi:type="attribute:NumberFormatSpecifier">
<Prefix></Prefix>
<Suffix></Suffix>
<Multiplier>1.0E-6</Multiplier>
<FractionDigits>2</FractionDigits>
</FormatSpecifier>
</Components>
<Separator>, </Separator>
</DataPoint>
<LabelPosition>Outside</LabelPosition>
<Stacked>false</Stacked>
<Translucent>false</Translucent>
<Explosion>0</Explosion>
<ExplosionExpression></ExplosionExpression>
<Title>
<Caption>
<Value>valueSeries</Value>
<Font>
<Name>SansSerif</Name>
<Size>10.0</Size>
<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>
</Title>
<TitlePosition>Below</TitlePosition>
<LeaderLineAttributes>
<Style>Solid</Style>
<Thickness>1</Thickness>
<Color>
<Transparency>255</Transparency>
<Red>0</Red>
<Green>50</Green>
<Blue>100</Blue>
</Color>
<Visible>true</Visible>
</LeaderLineAttributes>
<LeaderLineStyle>Stretch_To_Side</LeaderLineStyle>
<LeaderLineLength>5.0</LeaderLineLength>
</Series>
<Grouping>
<Enabled>false</Enabled>
<GroupingInterval>2.0</GroupingInterval>
<GroupType>Text</GroupType>
<AggregateExpression>Sum</AggregateExpression>
</Grouping>
<Sorting>Ascending</Sorting>
</SeriesDefinitions>
<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;PRODUCTLINE&quot;]</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>
</model:ChartWithoutAxes>
]]></xml-property>
<property name="outputFormat">SVG</property>
<property name="inheritColumns">true</property>
<property name="dataSet">Total Sales By Product Line</property>
<property name="height">5.03125in</property>
<property name="width">6.65625in</property>
<list-property name="boundDataColumns">
<structure>
<property name="name">PRODUCTLINE</property>
<expression
name="expression">dataSetRow["PRODUCTLINE"]</expression >
</structure>
<structure>
<property name="name">TOTALREVENUE</property>
<expression
name="expression">dataSetRow["TOTALREVENUE"]</expression >
</structure>
</list-property>
</extended-item>
</body>
</report>



On 12/27/2010 5:58 PM, Anders Hessellund wrote:
> Hi,
>
> I am experimenting a bit with pie charts. Specifically, I am interested
> in controlling the gradients. I have two questions in this regard:
>
> 1) In the attached screenshot, I would like the gradient in each pie
> slice to get a specific direction. Each slice's gradient should have the
> direction indicated by the arrows, i.e., from the center of the arc
> towards the center of the pie. Is it possible to achieve this effect? If
> not, could you perhaps point me in the direction of the place where I
> need to start hacking?
>
> 2) In the attached screenshot, the colored boxes in the legend have the
> exact same gradiant direction as the pie slices. Is the anyway to
> customize the gradiant for the legend? Specifically, I would like to get
> the direction indicated by the arrow in the blueburry box.
>
> Cheers,
>
> Anders
Re: gradients in pie charts [message #647192 is a reply to message #646659] Tue, 04 January 2011 21:53 Go to previous messageGo to next message
Eclipse User
Originally posted by: anders.hessellund.gmail.com

Hi Jason,

thanks for the answer. Since I am rather new to BIRT, I am still a bit
puzzled.

I am using the chart API to generate the aforementioned Pie Chart from
Java. The event handlers that you specify seem to be in JavaScript?
After browsing the javadocs and this forum, I've found the
ChartEventHandlerAdapter class which I guess I need to extend. Now the
question is: How do I feed my event handler into the charting engine?

The relevant parts of my Java source code looks like this:

public class PieChart extends Composite implements PaintListener {

private IDeviceRenderer deviceRenderer = null;
private final boolean needsGeneration = true;
private Chart chart = null;
private GeneratedChartState generatedChartState = null;

PieChart(final Composite parent, final int style) {
super(parent, style);
try {
final PlatformConfig config = new PlatformConfig();
config.setProperty("STANDALONE","true");
deviceRenderer = ChartEngine.instance(config).getRenderer("dv.SWT");
chart = createPieChart();
} catch (final ChartException pex) {
pex.printStackTrace();
}
}

@Override
public final void paintControl(final PaintEvent e) {
final Rectangle clientArea = getClientArea();
final Image imgChart = new
Image(getDisplay(),clientArea.width,clientArea.height);
final GC gcImage = new GC(imgChart);
deviceRenderer.setProperty(IDeviceRenderer.GRAPHICS_CONTEXT, gcImage);
final Bounds bounds =
BoundsImpl.create(0,0,clientArea.width,clientArea.height);
bounds.scale(72d /
deviceRenderer.getDisplayServer().getDpiResolution());
final Generator gr = Generator.instance();
if (needsGeneration) {
try {
generatedChartState =
gr.build(deviceRenderer.getDisplayServer(),chart,bounds,null ,null,null);
gr.render(deviceRenderer,generatedChartState);
final GC gc = e.gc;
gc.drawImage(imgChart,clientArea.x,clientArea.y);
imgChart.dispose();
} catch (final ChartException ce) {
ce.printStackTrace();
}
}
}

Jason Weathersby wrote:
> Anders,
>
> If the palette entry is a gradient and not a color you should be able to
> change the colors and direction in script like:
>
> importPackage(Packages.org.eclipse.birt.chart.model.attribut e.impl);
> mygradientst = ColorDefinitionImpl.create( 225,225,255 );
> mygradienten = ColorDefinitionImpl.create( 255, 255, 225 );
> mygradientdir = -35;
>
> function beforeDrawDataPoint( dph, fill, icsc )
> {
> if( dph.getBaseDisplayValue() == "Vintage Cars" ){
> importPackage( Packages.org.eclipse.birt.chart.model.attribute.impl );
> fill.setStartColor(mygradientst);
> fill.setEndColor(mygradienten);
> fill.setDirection(mygradientdir);
> }
> }
>
> function beforeDrawLegendItem( lerh, bounds, icsc )
> {
> if( lerh.getLabel().getCaption().getValue() == "Vintage Cars"){
> importPackage( Packages.org.eclipse.birt.chart.model.attribute.impl );
> lerh.getFill().setStartColor(mygradientst);
> lerh.getFill().setEndColor(mygradienten);
> lerh.getFill().setDirection(mygradientdir);
> }
> }
>
> Take a look at the attached report.
>
> Jason
>
> <?xml version="1.0" encoding="UTF-8"?>
> <report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.21"
> id="1">
> <property name="author">Paul Clenahan</property>
> <property name="createdBy">Eclipse BIRT Designer Version 2.5.2.v20100208
> Build &lt;2.5.2.v20100210-0630></property>
> <text-property name="title">Classic Models Top Selling
> Products</text-property>
> <property name="units">in</property>
> <property name="layoutPreference">auto layout</property>
> <data-sources>
> <oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc"
> name="Classic Models" id="5">
> <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="Total Sales By Product Line" id="6">
> <list-property name="columnHints">
> <structure>
> <property name="columnName">PRODUCTLINE</property>
> <text-property name="displayName">PRODUCTLINE</text-property>
> </structure>
> <structure>
> <property name="columnName">TOTALREVENUE</property>
> <text-property name="displayName">TOTALREVENUE</text-property>
> </structure>
> </list-property>
> <structure name="cachedMetaData">
> <list-property name="resultSet">
> <structure>
> <property name="position">1</property>
> <property name="name">PRODUCTLINE</property>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="position">2</property>
> <property name="name">TOTALREVENUE</property>
> <property name="dataType">float</property>
> </structure>
> </list-property>
> </structure>
> <property name="dataSource">Classic Models</property>
> <list-property name="resultSet">
> <structure>
> <property name="position">1</property>
> <property name="name">PRODUCTLINE</property>
> <property name="nativeName">PRODUCTLINE</property>
> <property name="dataType">string</property>
> <property name="nativeDataType">12</property>
> </structure>
> <structure>
> <property name="position">2</property>
> <property name="name">TOTALREVENUE</property>
> <property name="nativeName">TOTALREVENUE</property>
> <property name="dataType">float</property>
> <property name="nativeDataType">8</property>
> </structure>
> </list-property>
> <xml-property name="queryText"><![CDATA[SELECT PRODUCTLINE,
> SUM( PRICEEACH*QUANTITYORDERED ) AS "TOTALREVENUE"
> FROM CLASSICMODELS.ORDERDETAILS, CLASSICMODELS.PRODUCTS
> WHERE CLASSICMODELS.ORDERDETAILS.PRODUCTCODE =
> CLASSICMODELS.PRODUCTS.PRODUCTCODE
> GROUP BY CLASSICMODELS.PRODUCTS.PRODUCTLINE]]></xml-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">
> <property name="topMargin">1in</property>
> <property name="leftMargin">1.25in</property>
> <property name="bottomMargin">1in</property>
> <property name="rightMargin">1.25in</property>
> <page-footer>
> <text id="9">
> <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="NewChart" id="32">
> <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">
> <Version>2.5.1</Version>
> <Type>Pie Chart</Type>
> <SubType>Standard</SubType>
> <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>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>true</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>Categories</ItemType>
> <Title>
> <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>
> </Title>
> <MaxPercent>0.4</MaxPercent>
> </Children>
> <Bounds>
> <Left>0.0</Left>
> <Top>0.0</Top>
> <Width>479.25</Width>
> <Height>362.25</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> importPackage(Packages.org.eclipse.birt.chart.model.attribut e.impl);
>
> mygradientst = ColorDefinitionImpl.create( 225,225,255 );
> mygradienten = ColorDefinitionImpl.create( 255, 255, 225 );
> mygradientdir = -35;
>
> function beforeDrawDataPoint( dph, fill, icsc )
> {
> if( dph.getBaseDisplayValue() == &quot;Vintage Cars&quot; ){
> importPackage( Packages.org.eclipse.birt.chart.model.attribute.impl );
> fill.setStartColor(mygradientst);
> fill.setEndColor(mygradienten);
> fill.setDirection(mygradientdir);
> }
> }
>
> function beforeDrawLegendItem( lerh, bounds, icsc )
> {&#xD;
> if( lerh.getLabel().getCaption().getValue() == &quot;Vintage Cars&quot;){
> importPackage( Packages.org.eclipse.birt.chart.model.attribute.impl );&#xD;
> lerh.getFill().setStartColor(mygradientst);
> lerh.getFill().setEndColor(mygradienten);
> lerh.getFill().setDirection(mygradientdir);
> }
> }
> </Script>
> <Units>Points</Units>
> <SeriesThickness>15.0</SeriesThickness>
> <GridColumnCount>1</GridColumnCount>
> <ExtendedProperties>
> <Name>enable.area.alt</Name>
> <Value>false</Value>
> </ExtendedProperties>
> <SampleData>
> <BaseSampleData>
> <DataSetRepresentation>A, B, C</DataSetRepresentation>
> </BaseSampleData>
> <OrthogonalSampleData>
> <DataSetRepresentation>5,4,12</DataSetRepresentation>
> <SeriesDefinitionIndex>0</SeriesDefinitionIndex>
> </OrthogonalSampleData>
> </SampleData>
> <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>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>204</Red>
> <Green>254</Green>
> <Blue>254</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:Gradient">
> <StartColor>
> <Transparency>255</Transparency>
> <Red>254</Red>
> <Green>102</Green>
> <Blue>0</Blue>
> </StartColor>
> <EndColor>
> <Transparency>255</Transparency>
> <Red>255</Red>
> <Green>163</Green>
> <Blue>11</Blue>
> </EndColor>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>0</Red>
> <Green>204</Green>
> <Blue>254</Blue>
> </Entries>
> </SeriesPalette>
> <SeriesDefinitions>
> <Query>
> <Definition></Definition>
> </Query>
> <SeriesPalette>
> <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>128</Red>
> <Green>255</Green>
> <Blue>128</Blue>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>204</Red>
> <Green>254</Green>
> <Blue>254</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:Gradient">
> <StartColor>
> <Transparency>255</Transparency>
> <Red>254</Red>
> <Green>102</Green>
> <Blue>0</Blue>
> </StartColor>
> <EndColor>
> <Transparency>255</Transparency>
> <Red>255</Red>
> <Green>163</Green>
> <Blue>11</Blue>
> </EndColor>
> </Entries>
> <Entries xsi:type="attribute:ColorDefinition">
> <Transparency>255</Transparency>
> <Red>128</Red>
> <Green>128</Green>
> <Blue>0</Blue>
> </Entries>
> </SeriesPalette>
> <FormatSpecifier xsi:type="attribute:NumberFormatSpecifier">
> <Prefix></Prefix>
> <Suffix></Suffix>
> <FractionDigits>0</FractionDigits>
> </FormatSpecifier>
> <Series xsi:type="type:PieSeries">
> <Visible>true</Visible>
> <Label>
> <Caption>
> <Value>&lt;undefined></Value>
> <Font>
> <Name>SansSerif</Name>
> <Size>10.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;TOTALREVENUE&quot;]</Definition >
> </DataDefinition>
> <SeriesIdentifier>mypie</SeriesIdentifier>
> <DataPoint>
> <Components>
> <Type>Orthogonal_Value</Type>
> <FormatSpecifier xsi:type="attribute:NumberFormatSpecifier">
> <Prefix></Prefix>
> <Suffix></Suffix>
> <Multiplier>1.0E-6</Multiplier>
> <FractionDigits>2</FractionDigits>
> </FormatSpecifier>
> </Components>
> <Separator>, </Separator>
> </DataPoint>
> <LabelPosition>Outside</LabelPosition>
> <Stacked>false</Stacked>
> <Translucent>false</Translucent>
> <Explosion>0</Explosion>
> <ExplosionExpression></ExplosionExpression>
> <Title>
> <Caption>
> <Value>valueSeries</Value>
> <Font>
> <Name>SansSerif</Name>
> <Size>10.0</Size>
> <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>
> </Title>
> <TitlePosition>Below</TitlePosition>
> <LeaderLineAttributes>
> <Style>Solid</Style>
> <Thickness>1</Thickness>
> <Color>
> <Transparency>255</Transparency>
> <Red>0</Red>
> <Green>50</Green>
> <Blue>100</Blue>
> </Color>
> <Visible>true</Visible>
> </LeaderLineAttributes>
> <LeaderLineStyle>Stretch_To_Side</LeaderLineStyle>
> <LeaderLineLength>5.0</LeaderLineLength>
> </Series>
> <Grouping>
> <Enabled>false</Enabled>
> <GroupingInterval>2.0</GroupingInterval>
> <GroupType>Text</GroupType>
> <AggregateExpression>Sum</AggregateExpression>
> </Grouping>
> <Sorting>Ascending</Sorting>
> </SeriesDefinitions>
> <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;PRODUCTLINE&quot;]</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>
> </model:ChartWithoutAxes>
> ]]></xml-property>
> <property name="outputFormat">SVG</property>
> <property name="inheritColumns">true</property>
> <property name="dataSet">Total Sales By Product Line</property>
> <property name="height">5.03125in</property>
> <property name="width">6.65625in</property>
> <list-property name="boundDataColumns">
> <structure>
> <property name="name">PRODUCTLINE</property>
> <expression name="expression">dataSetRow["PRODUCTLINE"]</expression >
> </structure>
> <structure>
> <property name="name">TOTALREVENUE</property>
> <expression name="expression">dataSetRow["TOTALREVENUE"]</expression >
> </structure>
> </list-property>
> </extended-item>
> </body>
> </report>
>
>
>
> On 12/27/2010 5:58 PM, Anders Hessellund wrote:
>> Hi,
>>
>> I am experimenting a bit with pie charts. Specifically, I am interested
>> in controlling the gradients. I have two questions in this regard:
>>
>> 1) In the attached screenshot, I would like the gradient in each pie
>> slice to get a specific direction. Each slice's gradient should have the
>> direction indicated by the arrows, i.e., from the center of the arc
>> towards the center of the pie. Is it possible to achieve this effect? If
>> not, could you perhaps point me in the direction of the place where I
>> need to start hacking?
>>
>> 2) In the attached screenshot, the colored boxes in the legend have the
>> exact same gradiant direction as the pie slices. Is the anyway to
>> customize the gradiant for the legend? Specifically, I would like to get
>> the direction indicated by the arrow in the blueburry box.
>>
>> Cheers,
>>
>> Anders
>
Re: gradients in pie charts [message #647194 is a reply to message #647192] Tue, 04 January 2011 22:48 Go to previous message
Eclipse User
Originally posted by: anders.hessellund.gmail.com

Hi,

I found a way to do this:

chart.setScript( "TestScript" );

where TestScript refers to a java file in the same folder.

It would be much nicer to do this without reflection.

-- Anders

Anders Hessellund wrote:
> Hi Jason,
>
> thanks for the answer. Since I am rather new to BIRT, I am still a bit
> puzzled.
>
> I am using the chart API to generate the aforementioned Pie Chart from
> Java. The event handlers that you specify seem to be in JavaScript?
> After browsing the javadocs and this forum, I've found the
> ChartEventHandlerAdapter class which I guess I need to extend. Now the
> question is: How do I feed my event handler into the charting engine?
>
> The relevant parts of my Java source code looks like this:
>
> public class PieChart extends Composite implements PaintListener {
>
> private IDeviceRenderer deviceRenderer = null;
> private final boolean needsGeneration = true;
> private Chart chart = null;
> private GeneratedChartState generatedChartState = null;
>
> PieChart(final Composite parent, final int style) {
> super(parent, style);
> try {
> final PlatformConfig config = new PlatformConfig();
> config.setProperty("STANDALONE","true");
> deviceRenderer = ChartEngine.instance(config).getRenderer("dv.SWT");
> chart = createPieChart();
> } catch (final ChartException pex) {
> pex.printStackTrace();
> }
> }
>
> @Override
> public final void paintControl(final PaintEvent e) {
> final Rectangle clientArea = getClientArea();
> final Image imgChart = new
> Image(getDisplay(),clientArea.width,clientArea.height);
> final GC gcImage = new GC(imgChart);
> deviceRenderer.setProperty(IDeviceRenderer.GRAPHICS_CONTEXT, gcImage);
> final Bounds bounds =
> BoundsImpl.create(0,0,clientArea.width,clientArea.height);
> bounds.scale(72d / deviceRenderer.getDisplayServer().getDpiResolution());
> final Generator gr = Generator.instance();
> if (needsGeneration) {
> try {
> generatedChartState =
> gr.build(deviceRenderer.getDisplayServer(),chart,bounds,null ,null,null);
> gr.render(deviceRenderer,generatedChartState);
> final GC gc = e.gc;
> gc.drawImage(imgChart,clientArea.x,clientArea.y);
> imgChart.dispose();
> } catch (final ChartException ce) {
> ce.printStackTrace();
> }
> }
> }
>
> Jason Weathersby wrote:
>> Anders,
>>
>> If the palette entry is a gradient and not a color you should be able to
>> change the colors and direction in script like:
>>
>> importPackage(Packages.org.eclipse.birt.chart.model.attribut e.impl);
>> mygradientst = ColorDefinitionImpl.create( 225,225,255 );
>> mygradienten = ColorDefinitionImpl.create( 255, 255, 225 );
>> mygradientdir = -35;
>>
>> function beforeDrawDataPoint( dph, fill, icsc )
>> {
>> if( dph.getBaseDisplayValue() == "Vintage Cars" ){
>> importPackage( Packages.org.eclipse.birt.chart.model.attribute.impl );
>> fill.setStartColor(mygradientst);
>> fill.setEndColor(mygradienten);
>> fill.setDirection(mygradientdir);
>> }
>> }
>>
>> function beforeDrawLegendItem( lerh, bounds, icsc )
>> {
>> if( lerh.getLabel().getCaption().getValue() == "Vintage Cars"){
>> importPackage( Packages.org.eclipse.birt.chart.model.attribute.impl );
>> lerh.getFill().setStartColor(mygradientst);
>> lerh.getFill().setEndColor(mygradienten);
>> lerh.getFill().setDirection(mygradientdir);
>> }
>> }
>>
>> Take a look at the attached report.
>>
>> Jason
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.21"
>> id="1">
>> <property name="author">Paul Clenahan</property>
>> <property name="createdBy">Eclipse BIRT Designer Version 2.5.2.v20100208
>> Build &lt;2.5.2.v20100210-0630></property>
>> <text-property name="title">Classic Models Top Selling
>> Products</text-property>
>> <property name="units">in</property>
>> <property name="layoutPreference">auto layout</property>
>> <data-sources>
>> <oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc"
>> name="Classic Models" id="5">
>> <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="Total Sales By Product Line" id="6">
>> <list-property name="columnHints">
>> <structure>
>> <property name="columnName">PRODUCTLINE</property>
>> <text-property name="displayName">PRODUCTLINE</text-property>
>> </structure>
>> <structure>
>> <property name="columnName">TOTALREVENUE</property>
>> <text-property name="displayName">TOTALREVENUE</text-property>
>> </structure>
>> </list-property>
>> <structure name="cachedMetaData">
>> <list-property name="resultSet">
>> <structure>
>> <property name="position">1</property>
>> <property name="name">PRODUCTLINE</property>
>> <property name="dataType">string</property>
>> </structure>
>> <structure>
>> <property name="position">2</property>
>> <property name="name">TOTALREVENUE</property>
>> <property name="dataType">float</property>
>> </structure>
>> </list-property>
>> </structure>
>> <property name="dataSource">Classic Models</property>
>> <list-property name="resultSet">
>> <structure>
>> <property name="position">1</property>
>> <property name="name">PRODUCTLINE</property>
>> <property name="nativeName">PRODUCTLINE</property>
>> <property name="dataType">string</property>
>> <property name="nativeDataType">12</property>
>> </structure>
>> <structure>
>> <property name="position">2</property>
>> <property name="name">TOTALREVENUE</property>
>> <property name="nativeName">TOTALREVENUE</property>
>> <property name="dataType">float</property>
>> <property name="nativeDataType">8</property>
>> </structure>
>> </list-property>
>> <xml-property name="queryText"><![CDATA[SELECT PRODUCTLINE,
>> SUM( PRICEEACH*QUANTITYORDERED ) AS "TOTALREVENUE"
>> FROM CLASSICMODELS.ORDERDETAILS, CLASSICMODELS.PRODUCTS
>> WHERE CLASSICMODELS.ORDERDETAILS.PRODUCTCODE =
>> CLASSICMODELS.PRODUCTS.PRODUCTCODE
>> GROUP BY CLASSICMODELS.PRODUCTS.PRODUCTLINE]]></xml-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">
>> <property name="topMargin">1in</property>
>> <property name="leftMargin">1.25in</property>
>> <property name="bottomMargin">1in</property>
>> <property name="rightMargin">1.25in</property>
>> <page-footer>
>> <text id="9">
>> <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="NewChart" id="32">
>> <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">
>> <Version>2.5.1</Version>
>> <Type>Pie Chart</Type>
>> <SubType>Standard</SubType>
>> <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>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>true</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>Categories</ItemType>
>> <Title>
>> <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>
>> </Title>
>> <MaxPercent>0.4</MaxPercent>
>> </Children>
>> <Bounds>
>> <Left>0.0</Left>
>> <Top>0.0</Top>
>> <Width>479.25</Width>
>> <Height>362.25</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> importPackage(Packages.org.eclipse.birt.chart.model.attribut e.impl);
>>
>>
>> mygradientst = ColorDefinitionImpl.create( 225,225,255 );
>> mygradienten = ColorDefinitionImpl.create( 255, 255, 225 );
>> mygradientdir = -35;
>>
>> function beforeDrawDataPoint( dph, fill, icsc )
>> {
>> if( dph.getBaseDisplayValue() == &quot;Vintage Cars&quot; ){
>> importPackage( Packages.org.eclipse.birt.chart.model.attribute.impl );
>> fill.setStartColor(mygradientst);
>> fill.setEndColor(mygradienten);
>> fill.setDirection(mygradientdir);
>> }
>> }
>>
>> function beforeDrawLegendItem( lerh, bounds, icsc )
>> {&#xD;
>> if( lerh.getLabel().getCaption().getValue() == &quot;Vintage Cars&quot;){
>> importPackage( Packages.org.eclipse.birt.chart.model.attribute.impl
>> );&#xD;
>> lerh.getFill().setStartColor(mygradientst);
>> lerh.getFill().setEndColor(mygradienten);
>> lerh.getFill().setDirection(mygradientdir);
>> }
>> }
>> </Script>
>> <Units>Points</Units>
>> <SeriesThickness>15.0</SeriesThickness>
>> <GridColumnCount>1</GridColumnCount>
>> <ExtendedProperties>
>> <Name>enable.area.alt</Name>
>> <Value>false</Value>
>> </ExtendedProperties>
>> <SampleData>
>> <BaseSampleData>
>> <DataSetRepresentation>A, B, C</DataSetRepresentation>
>> </BaseSampleData>
>> <OrthogonalSampleData>
>> <DataSetRepresentation>5,4,12</DataSetRepresentation>
>> <SeriesDefinitionIndex>0</SeriesDefinitionIndex>
>> </OrthogonalSampleData>
>> </SampleData>
>> <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>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>204</Red>
>> <Green>254</Green>
>> <Blue>254</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:Gradient">
>> <StartColor>
>> <Transparency>255</Transparency>
>> <Red>254</Red>
>> <Green>102</Green>
>> <Blue>0</Blue>
>> </StartColor>
>> <EndColor>
>> <Transparency>255</Transparency>
>> <Red>255</Red>
>> <Green>163</Green>
>> <Blue>11</Blue>
>> </EndColor>
>> </Entries>
>> <Entries xsi:type="attribute:ColorDefinition">
>> <Transparency>255</Transparency>
>> <Red>0</Red>
>> <Green>204</Green>
>> <Blue>254</Blue>
>> </Entries>
>> </SeriesPalette>
>> <SeriesDefinitions>
>> <Query>
>> <Definition></Definition>
>> </Query>
>> <SeriesPalette>
>> <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>128</Red>
>> <Green>255</Green>
>> <Blue>128</Blue>
>> </Entries>
>> <Entries xsi:type="attribute:ColorDefinition">
>> <Transparency>255</Transparency>
>> <Red>204</Red>
>> <Green>254</Green>
>> <Blue>254</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:Gradient">
>> <StartColor>
>> <Transparency>255</Transparency>
>> <Red>254</Red>
>> <Green>102</Green>
>> <Blue>0</Blue>
>> </StartColor>
>> <EndColor>
>> <Transparency>255</Transparency>
>> <Red>255</Red>
>> <Green>163</Green>
>> <Blue>11</Blue>
>> </EndColor>
>> </Entries>
>> <Entries xsi:type="attribute:ColorDefinition">
>> <Transparency>255</Transparency>
>> <Red>128</Red>
>> <Green>128</Green>
>> <Blue>0</Blue>
>> </Entries>
>> </SeriesPalette>
>> <FormatSpecifier xsi:type="attribute:NumberFormatSpecifier">
>> <Prefix></Prefix>
>> <Suffix></Suffix>
>> <FractionDigits>0</FractionDigits>
>> </FormatSpecifier>
>> <Series xsi:type="type:PieSeries">
>> <Visible>true</Visible>
>> <Label>
>> <Caption>
>> <Value>&lt;undefined></Value>
>> <Font>
>> <Name>SansSerif</Name>
>> <Size>10.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;TOTALREVENUE&quot;]</Definition >
>> </DataDefinition>
>> <SeriesIdentifier>mypie</SeriesIdentifier>
>> <DataPoint>
>> <Components>
>> <Type>Orthogonal_Value</Type>
>> <FormatSpecifier xsi:type="attribute:NumberFormatSpecifier">
>> <Prefix></Prefix>
>> <Suffix></Suffix>
>> <Multiplier>1.0E-6</Multiplier>
>> <FractionDigits>2</FractionDigits>
>> </FormatSpecifier>
>> </Components>
>> <Separator>, </Separator>
>> </DataPoint>
>> <LabelPosition>Outside</LabelPosition>
>> <Stacked>false</Stacked>
>> <Translucent>false</Translucent>
>> <Explosion>0</Explosion>
>> <ExplosionExpression></ExplosionExpression>
>> <Title>
>> <Caption>
>> <Value>valueSeries</Value>
>> <Font>
>> <Name>SansSerif</Name>
>> <Size>10.0</Size>
>> <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>
>> </Title>
>> <TitlePosition>Below</TitlePosition>
>> <LeaderLineAttributes>
>> <Style>Solid</Style>
>> <Thickness>1</Thickness>
>> <Color>
>> <Transparency>255</Transparency>
>> <Red>0</Red>
>> <Green>50</Green>
>> <Blue>100</Blue>
>> </Color>
>> <Visible>true</Visible>
>> </LeaderLineAttributes>
>> <LeaderLineStyle>Stretch_To_Side</LeaderLineStyle>
>> <LeaderLineLength>5.0</LeaderLineLength>
>> </Series>
>> <Grouping>
>> <Enabled>false</Enabled>
>> <GroupingInterval>2.0</GroupingInterval>
>> <GroupType>Text</GroupType>
>> <AggregateExpression>Sum</AggregateExpression>
>> </Grouping>
>> <Sorting>Ascending</Sorting>
>> </SeriesDefinitions>
>> <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;PRODUCTLINE&quot;]</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>
>> </model:ChartWithoutAxes>
>> ]]></xml-property>
>> <property name="outputFormat">SVG</property>
>> <property name="inheritColumns">true</property>
>> <property name="dataSet">Total Sales By Product Line</property>
>> <property name="height">5.03125in</property>
>> <property name="width">6.65625in</property>
>> <list-property name="boundDataColumns">
>> <structure>
>> <property name="name">PRODUCTLINE</property>
>> <expression name="expression">dataSetRow["PRODUCTLINE"]</expression >
>> </structure>
>> <structure>
>> <property name="name">TOTALREVENUE</property>
>> <expression name="expression">dataSetRow["TOTALREVENUE"]</expression >
>> </structure>
>> </list-property>
>> </extended-item>
>> </body>
>> </report>
>>
>>
>>
>> On 12/27/2010 5:58 PM, Anders Hessellund wrote:
>>> Hi,
>>>
>>> I am experimenting a bit with pie charts. Specifically, I am interested
>>> in controlling the gradients. I have two questions in this regard:
>>>
>>> 1) In the attached screenshot, I would like the gradient in each pie
>>> slice to get a specific direction. Each slice's gradient should have the
>>> direction indicated by the arrows, i.e., from the center of the arc
>>> towards the center of the pie. Is it possible to achieve this effect? If
>>> not, could you perhaps point me in the direction of the place where I
>>> need to start hacking?
>>>
>>> 2) In the attached screenshot, the colored boxes in the legend have the
>>> exact same gradiant direction as the pie slices. Is the anyway to
>>> customize the gradiant for the legend? Specifically, I would like to get
>>> the direction indicated by the arrow in the blueburry box.
>>>
>>> Cheers,
>>>
>>> Anders
>>
>
Previous Topic:BIRT Error
Next Topic:Arial font size changes randomly in BIRT report
Goto Forum:
  


Current Time: Thu Oct 23 11:07:07 GMT 2014

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

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