Skip to main content



      Home
Home » Archived » BIRT » Chart with dates on X axis
Chart with dates on X axis [message #165407] Mon, 29 May 2006 13:28 Go to next message
Eclipse UserFriend
Hi there,

Why isn't it possible to get a linear axis with dates ?
I'd like to show up a series of dates that are not day-to-day but want to
see the "not used" dates within them.
In my precise case, I only use hours and minutes and would like to set the
X axis from 00:00:00 to 23:59:59

It seems, above of this, that the formatting is out of order ; I have a
Long in my DataSet (say "foo"), that I put in X series with new
Date(row["foo"]) and then set the Format as
"Date/Time,Advanced,Pattern=hh:mm"...
But the columns show the entire date (that is "1970...").

Last : I thought I saw somewhere that a chart does not support multiple
datasets ; despite this is really sad, I'd like to now is somebody has
workarounds for this point.

NB : BIRT RC3
Thanks, Thomas.
Re: Chart with dates on X axis [message #165896 is a reply to message #165407] Wed, 31 May 2006 04:55 Go to previous messageGo to next message
Eclipse UserFriend
To anyone interested,
This is a workaround, waiting for the formatting to be OK :

function beforeDrawAxisLabel(axis, label, context) {
var value = label.getCaption().getValue();
if (value.indexOf("1970") != -1) {
label.getCaption().setValue(value.substring(value.length() - 5));
}
}

=> turns "1 janvier 1970 20:00" into "20:00"
But the labels shown are those who would be with an entire string (size
calculated before transforming ?)...
Re: Chart with dates on X axis [message #165972 is a reply to message #165407] Wed, 31 May 2006 10:05 Go to previous messageGo to next message
Eclipse UserFriend
Did you set the Axis type as Date/Time?

Thanks,

David

"Thomas Escolan" <thomas_escolan@yahoo.fr> wrote in message
news:f632d90d4c1427ccad0a1fc7052e47a5$1@www.eclipse.org...
> Hi there,
>
> Why isn't it possible to get a linear axis with dates ?
> I'd like to show up a series of dates that are not day-to-day but want to
> see the "not used" dates within them.
> In my precise case, I only use hours and minutes and would like to set the
> X axis from 00:00:00 to 23:59:59
>
> It seems, above of this, that the formatting is out of order ; I have a
> Long in my DataSet (say "foo"), that I put in X series with new
> Date(row["foo"]) and then set the Format as
> "Date/Time,Advanced,Pattern=hh:mm"...
> But the columns show the entire date (that is "1970...").
>
> Last : I thought I saw somewhere that a chart does not support multiple
> datasets ; despite this is really sad, I'd like to now is somebody has
> workarounds for this point.
>
> NB : BIRT RC3
> Thanks, Thomas.
>
Re: Chart with dates on X axis [message #166252 is a reply to message #165972] Thu, 01 June 2006 05:05 Go to previous messageGo to next message
Eclipse UserFriend
Yes, David, as quoted :

[set the Format as "Date/Time,Advanced,Pattern=hh:mm"]
Thanks for interesting

=> is the scale dialog adapting to the axis format, anyway ?
Thomas.
Re: Chart with dates on X axis [message #166323 is a reply to message #166252] Thu, 01 June 2006 07:37 Go to previous messageGo to next message
Eclipse UserFriend
Sorry, I missed that, now I understand the issue. Did you try using a
scatter chart? Linear X Axis can only be used with scatter charts, since it
would not fit a bar chart model. Then you can try setting the format as
date/time on that X Axis and see what happens. I think it should work.

If the scale doesn't adapt well to the axis format, you can file a bug, but
I thought it was working?

Thanks,

David

"Thomas Escolan" <thomas_escolan@yahoo.fr> wrote in message
news:3397ed6025f25c7f745537a85b89a806$1@www.eclipse.org...
> Yes, David, as quoted :
>
> [set the Format as "Date/Time,Advanced,Pattern=hh:mm"]
> Thanks for interesting
>
> => is the scale dialog adapting to the axis format, anyway ?
> Thomas.
>
Re: Chart with dates on X axis [message #166483 is a reply to message #166323] Thu, 01 June 2006 10:13 Go to previous messageGo to next message
Eclipse UserFriend
OK, I tried the scatter chart :

As I said (?), I have three values in my series : a Long corresponding to
a java.sql.Time, two integers for the charts to be shown.

Then I've built the scatter chart with X axis' scale (-3600000.0,
82799000.0, 3600000.0) in order to range from 01/01/1970 00:00:00 to
01/01/1970 23:59:59 on hours.
NB : the scatter chart would refuse a Date or Time for X axis.

Then, I specified a Date/Time format with pattern "HH:mm" (without the
quotes) on X series (the Long values)... but the Long value still stays as
a label. There's nothing I can figure out to work this around on scripting
the beforeDrawAxisLabel chart's method :

var value = java.lang.Long.parseLong(label.getCaption().getValue());
label.getCaption().setValue(new
java.text.SimpleDateFormat("HH:mm").format(new java.util.Date(value)));

does nothing, thought this would change the Y axis' labels too, isn't it ?
Sould I wait for the series format to work ? Is it supporting automatic
conversion from Long to Date as it is declared so ?
Re: Chart with dates on X axis [message #166601 is a reply to message #166483] Thu, 01 June 2006 11:37 Go to previous messageGo to next message
Eclipse UserFriend
Thomas,

Here is what I managed to do (see attachment).

Is it what you want?

Thanks,

David

"Thomas Escolan" <thomas_escolan@yahoo.fr> wrote in message
news:cc1145ccdd697dff568b533d7c3fae18$1@www.eclipse.org...
> OK, I tried the scatter chart :
>
> As I said (?), I have three values in my series : a Long corresponding to
> a java.sql.Time, two integers for the charts to be shown.
>
> Then I've built the scatter chart with X axis' scale (-3600000.0,
> 82799000.0, 3600000.0) in order to range from 01/01/1970 00:00:00 to
> 01/01/1970 23:59:59 on hours.
> NB : the scatter chart would refuse a Date or Time for X axis.
>
> Then, I specified a Date/Time format with pattern "HH:mm" (without the
> quotes) on X series (the Long values)... but the Long value still stays as
> a label. There's nothing I can figure out to work this around on scripting
> the beforeDrawAxisLabel chart's method :
>
> var value = java.lang.Long.parseLong(label.getCaption().getValue());
> label.getCaption().setValue(new
> java.text.SimpleDateFormat("HH:mm").format(new java.util.Date(value)));
>
> does nothing, thought this would change the Y axis' labels too, isn't it ?
> Sould I wait for the series format to work ? Is it supporting automatic
> conversion from Long to Date as it is declared so ?
>


  • Attachment: dates.bmp
    (Size: 153.05KB, Downloaded 199 times)
Re: Chart with dates on X axis [message #166863 is a reply to message #166601] Fri, 02 June 2006 04:16 Go to previous messageGo to next message
Eclipse UserFriend
Sorry, David, but I'm browsing the newsgroup with eclipse.org's viewer and
your attachment is ASCII translated...

May I see the XML report file ?

Beside this, I got RC4 this morning and one of my datasets works no more :
=> org.eclipse.birt.chart.exception.ChartException: The DataSet bound to the
chart returned no rows.
=> An error happened in data type conversion.
Can not convert the value of 1.147789487E12 to Date type.

The only date this dataset is dealing with is a string report parameter
that is imported, as explained in doc, with Date.parse(params["date"]).
Then, this parameter is no longer used, as th scripted methods won't
access it (as seen together earlier).
Shall I remove these or is ther something wrong with it that could be
updated ?
Re: Chart with dates on X axis [message #166894 is a reply to message #166863] Fri, 02 June 2006 04:39 Go to previous messageGo to next message
Eclipse UserFriend
Concerning the date parameter questions here, please notice that the
date/time typing of reports parameters and parameters referencing seems to
work on scripted datasets.

In open function : params["reportDate"] is OK, but I could not retrieve
dataset's one with params["datasetDate"] ; other syntaxe needed ?
David ?

LAST MINUTE : with params["reportDate"], the parsing seems not to take
AM/PM into account. In the parameter's setting dialog, the default's value
is good (03h PM becomes 15h), but in my chart, the time received is 03h
Re: Chart with dates on X axis [message #166902 is a reply to message #166863] Fri, 02 June 2006 04:41 Go to previous messageGo to next message
Eclipse UserFriend
If you see a compatibility issue with RC4, please file a bugzilla entry.

Here is the report. You will need to create some data for it.

I guess your problem comes from the conversion from long to date?

Thanks,

David


"Thomas Escolan" <thomas_escolan@yahoo.fr> wrote in message
news:1e57095911516a36d4ea90606802c4b8$1@www.eclipse.org...
> Sorry, David, but I'm browsing the newsgroup with eclipse.org's viewer and
> your attachment is ASCII translated...
>
> May I see the XML report file ?
>
> Beside this, I got RC4 this morning and one of my datasets works no more :
> => org.eclipse.birt.chart.exception.ChartException: The DataSet bound to
> the
> chart returned no rows.
> => An error happened in data type conversion.
> Can not convert the value of 1.147789487E12 to Date type.
>
> The only date this dataset is dealing with is a string report parameter
> that is imported, as explained in doc, with Date.parse(params["date"]).
> Then, this parameter is no longer used, as th scripted methods won't
> access it (as seen together earlier).
> Shall I remove these or is ther something wrong with it that could be
> updated ?
>


Re: Chart with dates on X axis [message #166910 is a reply to message #166902] Fri, 02 June 2006 04:51 Go to previous messageGo to next message
Eclipse UserFriend
I don't know if this is a bug issue, my previous setting was a workaround
because the default dates value was not correctly parsed, if you remember.
Maybe the JavaScript function I used does not support this format, now ?
I'll dig this a bit.

Sorry, again, but your report file is binary encoded in this web viewer.
Would you provide a copy and paste of the XML Source view ?
Thanks, Thomas.
Re: Chart with dates on X axis [message #166998 is a reply to message #166910] Fri, 02 June 2006 07:54 Go to previous messageGo to next message
Eclipse UserFriend
<?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="createdBy">Eclipse BIRT Designer Version 2.1.0.qualifier
Build &lt;@BUILD@></property>

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

<data-sources>

<oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc"
name="Data Source" id="4">

<property name="odaDriverClass">sun.jdbc.odbc.JdbcOdbcDriver</property >

<property name="odaURL">jdbc:odbc:chartdata</property>

</oda-data-source>

</data-sources>

<data-sets>

<oda-data-set
extensionID="org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet "
name="Data Set" id="5">

<structure name="cachedMetaData">

<list-property name="resultSet">

<structure>

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

<property name="name">Time</property>

<property name="dataType">date-time</property>

</structure>

<structure>

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

<property name="name">Value</property>

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

</structure>

</list-property>

</structure>

<property name="dataSource">Data Source</property>

<property name="queryText">select *

from "Time"</property>

</oda-data-set>

</data-sets>

<page-setup>

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

<page-footer>

<text id="3">

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

<text-property name="content"><![CDATA[<value-of>new
Date()</value-of>]]></text-property>

</text>

</page-footer>

</simple-master-page>

</page-setup>

<body>

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

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

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

<property name="dataSet">Data Set</property>

<list-property name="boundDataColumns">

<structure>

<property name="name">Time</property>

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

</structure>

<structure>

<property name="name">Value</property>

<expression name="expression">dataSetRow["Value"]</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>Scatter Chart</Type>

<SubType>Standard Scatter Chart</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>Scatter Chart Title</Value>

<Font>

<Size>16.0</Size>

<Bold>true</Bold>

<Alignment>

<horizontalAlignment>Center</horizontalAlignment>

<verticalAlignment>Center</verticalAlignment>

</Alignment>

</Font>

</Caption>

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

<Transparency>0</Transparency>

<Red>255</Red>

<Green>255</Green>

<Blue>255</Blue>

</Background>

<Outline>

<Style>Solid</Style>

<Thickness>1</Thickness>

<Color>

<Transparency>255</Transparency>

<Red>0</Red>

<Green>0</Green>

<Blue>0</Blue>

</Color>

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

<Alignment/>

</Font>

</Text>

<Orientation>Vertical</Orientation>

<Direction>Top_Bottom</Direction>

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

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

</Title>

<TitlePosition>Above</TitlePosition>

</Children>

<Bounds>

<Left>0.0</Left>

<Top>0.0</Top>

<Width>383.25</Width>

<Height>227.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>

<Units>Points</Units>

<SeriesThickness>10.0</SeriesThickness>

<SampleData>

<BaseSampleData>

<DataSetRepresentation>01/01/2006,03/09/2006,12/31/2006</DataSetRepresentation >

</BaseSampleData>

<OrthogonalSampleData>

<DataSetRepresentation>5.0,4.0,12.0</DataSetRepresentation >

<SeriesDefinitionIndex>0</SeriesDefinitionIndex>

</OrthogonalSampleData>

</SampleData>

<Interactivity/>

<Axes>

<Type>DateTime</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>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 xsi:type="type:ScatterSeries">

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

</Label>

<DataDefinition>

<Definition>row[&quot;Value&quot;]</Definition>

</DataDefinition>

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

<DataPoint>

<Components>

<Type>Orthogonal_Value</Type>

</Components>

<Separator>, </Separator>

</DataPoint>

<LabelPosition>Above</LabelPosition>

<Stacked>false</Stacked>

<Markers>

<Type>Crosshair</Type>

<Size>5</Size>

<Visible>true</Visible>

</Markers>

<Markers>

<Type>Box</Type>

<Size>5</Size>

<Visible>true</Visible>

</Markers>

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

<PaletteLineColor>false</PaletteLineColor>

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

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

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

<DataDefinition>

<Definition>row[&quot;Time&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/>

<Rotation>45.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>

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

<Pattern>hh:mm:ss</Pattern>

</FormatSpecifier>

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

<CategoryAxis>false</CategoryAxis>

<Percent>false</Percent>

</Axes>

<Orientation>Vertical</Orientation>

<Rotation/>

</model:ChartWithAxes>

]]></xml-property>

<property name="outputFormat">PNG</property>

</extended-item>

</body>

</report>

"Thomas Escolan" <thomas_escolan@yahoo.fr> wrote in message
news:ec47d81e73030612e9faa71d931f27e1$1@www.eclipse.org...
>I don't know if this is a bug issue, my previous setting was a workaround
>because the default dates value was not correctly parsed, if you remember.
>Maybe the JavaScript function I used does not support this format, now ?
> I'll dig this a bit.
>
> Sorry, again, but your report file is binary encoded in this web viewer.
> Would you provide a copy and paste of the XML Source view ?
> Thanks, Thomas.
>
Re: Chart with dates on X axis [message #167029 is a reply to message #166998] Fri, 02 June 2006 08:44 Go to previous messageGo to next message
Eclipse UserFriend
OK, understood, so you directly get a date type from your resultset and
the format is on the axis properties, not on the "select data" tab. But,
then I wonder what the format button is for on X series there. Anyway.

Last trick : I don't succeed in specifying a scale for the X axis since it
is datetime typed. I tried 1970-01-01 00:00:00, for the min value, but it
get erased when I leave the field.

How do it works ?
Re: Chart with dates on X axis [message #167053 is a reply to message #167029] Fri, 02 June 2006 09:31 Go to previous messageGo to next message
Eclipse UserFriend
Hi Thomas,

The series formatting is useful when you display the value of the category
series, it doesn't apply to the values on the axis (which can be different).

For the scale not working, it seems to be a bug, can you file it in
bugzilla?

Thanks,

David

"Thomas Escolan" <thomas_escolan@yahoo.fr> wrote in message
news:233ddc8fa90f342342f8ad7e71e8d9ec$1@www.eclipse.org...
> OK, understood, so you directly get a date type from your resultset and
> the format is on the axis properties, not on the "select data" tab. But,
> then I wonder what the format button is for on X series there. Anyway.
>
> Last trick : I don't succeed in specifying a scale for the X axis since it
> is datetime typed. I tried 1970-01-01 00:00:00, for the min value, but it
> get erased when I leave the field.
>
> How do it works ?
>
Re: Chart with dates on X axis [message #167094 is a reply to message #167053] Fri, 02 June 2006 11:11 Go to previous messageGo to next message
Eclipse UserFriend
Hum... I wouldn't like to see my email around every bugzilla page...
Sorry, David ; I'd like to help, thought.

NB : setting origin value on the Y axis of a datetime X axis chart doesn't
work either.

PLUS : it would be nice to be allowed to set the step value too (at least
in single hours or days, my chart is taking hour couples only).

Thomas.
Re: Chart with dates on X axis [message #167379 is a reply to message #167053] Mon, 05 June 2006 05:09 Go to previous messageGo to next message
Eclipse UserFriend
David,

I just tried to set the format on ox my X date category (Select Data tab)
and then add a tooltip behaviour on on of the Y series to show the
row["dates"] value ; but these values aren't formated.

What did you mean with "display the value of the category series", where
does this "data formatting" applies exactly ?

Thanks, Thomas.
Re: Chart with dates on X axis [message #169063 is a reply to message #167379] Mon, 12 June 2006 06:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ananta_nath2003.yahoo.co.in

Hello Everybody,

I am trying to create a bar chart in BIRT2.0.1 The dataset used returns
Date in dd mon yyyy hh:mi:ss format. But on using it in the chart, the
date format in changed automatically to mm-dd-yyyy hh:mi:ss. I can get the
desired format using javascript while selectind data for the X-Axis. If I
run this report using frameset and then export data, the column name for
the date is changed with the expression used to get the desired format
which is undesirable.
Is it possible to have the desired format using scripting.

Please reply.

Thanks
--Anant
Re: Chart with dates on X axis [message #169081 is a reply to message #169063] Mon, 12 June 2006 07:07 Go to previous messageGo to next message
Eclipse UserFriend
There is a formatting option the x-axis, have you tried it?

Thanks,

David

"Anant" <ananta_nath2003@yahoo.co.in> wrote in message
news:1c15b8244c2fa2d9cdce1552aa5f9100$1@www.eclipse.org...
> Hello Everybody,
>
> I am trying to create a bar chart in BIRT2.0.1 The dataset used returns
> Date in dd mon yyyy hh:mi:ss format. But on using it in the chart, the
> date format in changed automatically to mm-dd-yyyy hh:mi:ss. I can get the
> desired format using javascript while selectind data for the X-Axis. If I
> run this report using frameset and then export data, the column name for
> the date is changed with the expression used to get the desired format
> which is undesirable.
> Is it possible to have the desired format using scripting.
>
> Please reply.
>
> Thanks
> --Anant
>
>
>
Re: Chart with dates on X axis [message #169099 is a reply to message #169081] Mon, 12 June 2006 07:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ananta_nath2003.yahoo.co.in

Yes I have tried that and also used that Advanced option and gave the
pattern as:
dd mon yyyy

But no effect of this is seen.

Please reply.

Thanks
--Anant
Re: Chart with dates on X axis [message #169328 is a reply to message #169099] Mon, 12 June 2006 13:33 Go to previous messageGo to next message
Eclipse UserFriend
did you set the axis type as DateTime?

Thanks,

David

"Anant" <ananta_nath2003@yahoo.co.in> wrote in message
news:bd43f802d50c78887890bd3e3e4ea620$1@www.eclipse.org...
> Yes I have tried that and also used that Advanced option and gave the
> pattern as:
> dd mon yyyy
>
> But no effect of this is seen.
> Please reply.
>
> Thanks
> --Anant
>
Re: Chart with dates on X axis [message #169509 is a reply to message #169328] Tue, 13 June 2006 00:17 Go to previous message
Eclipse UserFriend
Originally posted by: ananta_nath2003.yahoo.co.in

Yes, I had set that axis type to DateTime. But I am not able to see any
change.

Thanks.
--Anant
Previous Topic:Help deploying in WebSphere
Next Topic:PDF Format
Goto Forum:
  


Current Time: Fri Jul 18 16:44:35 EDT 2025

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

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

Back to the top