Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » custom chart : multiple Y values for same X value
custom chart : multiple Y values for same X value [message #682062] Fri, 10 June 2011 10:01 Go to next message
Eclipse UserFriend
Originally posted by: Dennis Schladebeck

Hi,

i am currently trying to create a new chart type. Now i was wondering how
i could make BIRT not using aggregate functions on my Value(Y) series.
By default it is always the "sum" function. Is there a way to allow selection of
NONE in the aggregation combo ?

My dataset could be sth like

x / y
1 / 10
2 / 10
2 / 30
3 / 5
etc.

I my IDataSetProcessor i added the ids to getDataDefIdsForGrouping(). But now the two Y values at 2 are always
added to each other. So there is one datapoint 2 / 40 when doing my rendering.

thx for any advice

Dennis
Re: custom chart : multiple Y values for same X value [message #682209 is a reply to message #682062] Fri, 10 June 2011 15:53 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Dennis,

If you disable grouping on the category series the default aggregation
for the y axis will be none. To test this open the chart wizard and
select a bar chart. Select the aggregation on the x-axis in the data
tab and un-check the grouping enabled checkbox.

Jason

On 6/10/2011 6:01 AM, Dennis Schladebeck wrote:
> Hi,
>
> i am currently trying to create a new chart type. Now i was wondering how
> i could make BIRT not using aggregate functions on my Value(Y) series.
> By default it is always the "sum" function. Is there a way to allow
> selection of
> NONE in the aggregation combo ?
>
> My dataset could be sth like
>
> x / y
> 1 / 10
> 2 / 10
> 2 / 30
> 3 / 5
> etc.
>
> I my IDataSetProcessor i added the ids to getDataDefIdsForGrouping().
> But now the two Y values at 2 are always
> added to each other. So there is one datapoint 2 / 40 when doing my
> rendering.
>
> thx for any advice
>
> Dennis
Re: custom chart : multiple Y values for same X value [message #683936 is a reply to message #682209] Tue, 14 June 2011 17:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Dennis Schladebeck

Hi Jason,

thanks for the hint. It seems to be working for my chart now. I had to implement the getSeries Method
in my chart. Now the chart runs nicely in the reportdesigner, but i am getting another error,
when running in headless runtime:

My birt version is 2.5.2

WARNUNG: handle type: org.eclipse.birt.report.model.api.OdaDataSetHandle
14.06.2011 18:56:27 org.eclipse.birt.report.engine.api.impl.RunAndRenderTask doR
un
SCHWERWIEGEND: An error happened while running the report. Cause:
java.lang.NullPointerException
at org.eclipse.birt.chart.reportitem.AbstractChartBaseQueryGenerator.add
ValueSeriesAggregateBindingForGrouping(AbstractChartBaseQueryGenerator.java:158)

at org.eclipse.birt.chart.reportitem.AbstractChartBaseQueryGenerator.add
AggregateBindings(AbstractChartBaseQueryGenerator.java:587)
at org.eclipse.birt.chart.reportitem.AbstractChartBaseQueryGenerator.gen
erateExtraBindings(AbstractChartBaseQueryGenerator.java:345)
at org.eclipse.birt.chart.reportitem.ChartBaseQueryHelper.createBaseQuer
y(ChartBaseQueryHelper.java:109)
at org.eclipse.birt.chart.reportitem.ChartReportItemQueryImpl.createQuer
y(ChartReportItemQueryImpl.java:159)
at org.eclipse.birt.chart.reportitem.ChartReportItemQueryImpl.createRepo
rtQueries(ChartReportItemQueryImpl.java:102)
at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder$QueryBuild
erVisitor.visitExtendedItem(ReportQueryBuilder.java:689)
at org.eclipse.birt.report.engine.ir.ExtendedItemDesign.accept(ExtendedI
temDesign.java:45)
at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder.build(Repo
rtQueryBuilder.java:256)
at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder.build(Repo
rtQueryBuilder.java:237)
at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.prepare(Ab
stractDataEngine.java:178)
at org.eclipse.birt.report.engine.executor.ReportExecutor.execute(Report
Executor.java:123)
at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportEx
ecutor.execute(WrappedReportExecutor.java:60)
at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplciat
eReportExecutor.execute(SuppressDuplciateReportExecutor.java:42)
at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportEx
ecutor.execute(WrappedReportExecutor.java:60)
at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReport
Executor.execute(LocalizedReportExecutor.java:61)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAnd
RenderTask.java:168)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRe
nderTask.java:75)
at org.eclipse.birt.report.engine.api.ReportRunner.runAndRenderReport(Re
portRunner.java:222)
at org.eclipse.birt.report.engine.api.ReportRunner.execute(ReportRunner.
java:162)
at org.eclipse.birt.report.engine.api.ReportRunner.main(ReportRunner.jav
a:121)
14.06.2011 18:56:27 org.eclipse.birt.report.engine.api.ReportRunner runAndRender
Report
SCHWERWIEGEND: Error happened while running the report
org.eclipse.birt.report.engine.api.EngineException: Error happened while running
the report
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAnd
RenderTask.java:186)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRe
nderTask.java:75)
at org.eclipse.birt.report.engine.api.ReportRunner.runAndRenderReport(Re
portRunner.java:222)
at org.eclipse.birt.report.engine.api.ReportRunner.execute(ReportRunner.
java:162)
at org.eclipse.birt.report.engine.api.ReportRunner.main(ReportRunner.jav
a:121)
Caused by: java.lang.NullPointerException
at org.eclipse.birt.chart.reportitem.AbstractChartBaseQueryGenerator.add
ValueSeriesAggregateBindingForGrouping(AbstractChartBaseQueryGenerator.java:158)

at org.eclipse.birt.chart.reportitem.AbstractChartBaseQueryGenerator.add
AggregateBindings(AbstractChartBaseQueryGenerator.java:587)
at org.eclipse.birt.chart.reportitem.AbstractChartBaseQueryGenerator.gen
erateExtraBindings(AbstractChartBaseQueryGenerator.java:345)
at org.eclipse.birt.chart.reportitem.ChartBaseQueryHelper.createBaseQuer
y(ChartBaseQueryHelper.java:109)
at org.eclipse.birt.chart.reportitem.ChartReportItemQueryImpl.createQuer
y(ChartReportItemQueryImpl.java:159)
at org.eclipse.birt.chart.reportitem.ChartReportItemQueryImpl.createRepo
rtQueries(ChartReportItemQueryImpl.java:102)
at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder$QueryBuild
erVisitor.visitExtendedItem(ReportQueryBuilder.java:689)
at org.eclipse.birt.report.engine.ir.ExtendedItemDesign.accept(ExtendedI
temDesign.java:45)
at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder.build(Repo
rtQueryBuilder.java:256)
at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder.build(Repo
rtQueryBuilder.java:237)
at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.prepare(Ab
stractDataEngine.java:178)
at org.eclipse.birt.report.engine.executor.ReportExecutor.execute(Report
Executor.java:123)
at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportEx
ecutor.execute(WrappedReportExecutor.java:60)
at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplciat
eReportExecutor.execute(SuppressDuplciateReportExecutor.java:42)
at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportEx
ecutor.execute(WrappedReportExecutor.java:60)
at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReport
Executor.execute(LocalizedReportExecutor.java:61)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAnd
RenderTask.java:168)
... 4 more



On 10.06.2011 17:53, Jason Weathersby wrote:
> Dennis,
>
> If you disable grouping on the category series the default aggregation for the y axis will be none. To test this open the chart wizard and select a
> bar chart. Select the aggregation on the x-axis in the data tab and un-check the grouping enabled checkbox.
>
> Jason
>
> On 6/10/2011 6:01 AM, Dennis Schladebeck wrote:
>> Hi,
>>
>> i am currently trying to create a new chart type. Now i was wondering how
>> i could make BIRT not using aggregate functions on my Value(Y) series.
>> By default it is always the "sum" function. Is there a way to allow
>> selection of
>> NONE in the aggregation combo ?
>>
>> My dataset could be sth like
>>
>> x / y
>> 1 / 10
>> 2 / 10
>> 2 / 30
>> 3 / 5
>> etc.
>>
>> I my IDataSetProcessor i added the ids to getDataDefIdsForGrouping().
>> But now the two Y values at 2 are always
>> added to each other. So there is one datapoint 2 / 40 when doing my
>> rendering.
>>
>> thx for any advice
>>
>> Dennis
>
Re: custom chart : multiple Y values for same X value [message #684024 is a reply to message #683936] Tue, 14 June 2011 21:23 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Dennis

It looks like something is messed up in the chart item binding. Can you
reproduce the issue with data that I can run?

Jason

On 6/14/2011 1:01 PM, Dennis Schladebeck wrote:
> Hi Jason,
>
> thanks for the hint. It seems to be working for my chart now. I had to
> implement the getSeries Method
> in my chart. Now the chart runs nicely in the reportdesigner, but i am
> getting another error,
> when running in headless runtime:
>
> My birt version is 2.5.2
>
> WARNUNG: handle type: org.eclipse.birt.report.model.api.OdaDataSetHandle
> 14.06.2011 18:56:27
> org.eclipse.birt.report.engine.api.impl.RunAndRenderTask doR
> un
> SCHWERWIEGEND: An error happened while running the report. Cause:
> java.lang.NullPointerException
> at org.eclipse.birt.chart.reportitem.AbstractChartBaseQueryGenerator.add
> ValueSeriesAggregateBindingForGrouping(AbstractChartBaseQueryGenerator.java:158)
>
>
> at org.eclipse.birt.chart.reportitem.AbstractChartBaseQueryGenerator.add
> AggregateBindings(AbstractChartBaseQueryGenerator.java:587)
> at org.eclipse.birt.chart.reportitem.AbstractChartBaseQueryGenerator.gen
> erateExtraBindings(AbstractChartBaseQueryGenerator.java:345)
> at org.eclipse.birt.chart.reportitem.ChartBaseQueryHelper.createBaseQuer
> y(ChartBaseQueryHelper.java:109)
> at org.eclipse.birt.chart.reportitem.ChartReportItemQueryImpl.createQuer
> y(ChartReportItemQueryImpl.java:159)
> at org.eclipse.birt.chart.reportitem.ChartReportItemQueryImpl.createRepo
> rtQueries(ChartReportItemQueryImpl.java:102)
> at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder$QueryBuild
> erVisitor.visitExtendedItem(ReportQueryBuilder.java:689)
> at org.eclipse.birt.report.engine.ir.ExtendedItemDesign.accept(ExtendedI
> temDesign.java:45)
> at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder.build(Repo
> rtQueryBuilder.java:256)
> at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder.build(Repo
> rtQueryBuilder.java:237)
> at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.prepare(Ab
> stractDataEngine.java:178)
> at org.eclipse.birt.report.engine.executor.ReportExecutor.execute(Report
> Executor.java:123)
> at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportEx
> ecutor.execute(WrappedReportExecutor.java:60)
> at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplciat
> eReportExecutor.execute(SuppressDuplciateReportExecutor.java:42)
> at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportEx
> ecutor.execute(WrappedReportExecutor.java:60)
> at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReport
> Executor.execute(LocalizedReportExecutor.java:61)
> at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAnd
> RenderTask.java:168)
> at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRe
> nderTask.java:75)
> at org.eclipse.birt.report.engine.api.ReportRunner.runAndRenderReport(Re
> portRunner.java:222)
> at org.eclipse.birt.report.engine.api.ReportRunner.execute(ReportRunner.
> java:162)
> at org.eclipse.birt.report.engine.api.ReportRunner.main(ReportRunner.jav
> a:121)
> 14.06.2011 18:56:27 org.eclipse.birt.report.engine.api.ReportRunner
> runAndRender
> Report
> SCHWERWIEGEND: Error happened while running the report
> org.eclipse.birt.report.engine.api.EngineException: Error happened while
> running
> the report
> at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAnd
> RenderTask.java:186)
> at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRe
> nderTask.java:75)
> at org.eclipse.birt.report.engine.api.ReportRunner.runAndRenderReport(Re
> portRunner.java:222)
> at org.eclipse.birt.report.engine.api.ReportRunner.execute(ReportRunner.
> java:162)
> at org.eclipse.birt.report.engine.api.ReportRunner.main(ReportRunner.jav
> a:121)
> Caused by: java.lang.NullPointerException
> at org.eclipse.birt.chart.reportitem.AbstractChartBaseQueryGenerator.add
> ValueSeriesAggregateBindingForGrouping(AbstractChartBaseQueryGenerator.java:158)
>
>
> at org.eclipse.birt.chart.reportitem.AbstractChartBaseQueryGenerator.add
> AggregateBindings(AbstractChartBaseQueryGenerator.java:587)
> at org.eclipse.birt.chart.reportitem.AbstractChartBaseQueryGenerator.gen
> erateExtraBindings(AbstractChartBaseQueryGenerator.java:345)
> at org.eclipse.birt.chart.reportitem.ChartBaseQueryHelper.createBaseQuer
> y(ChartBaseQueryHelper.java:109)
> at org.eclipse.birt.chart.reportitem.ChartReportItemQueryImpl.createQuer
> y(ChartReportItemQueryImpl.java:159)
> at org.eclipse.birt.chart.reportitem.ChartReportItemQueryImpl.createRepo
> rtQueries(ChartReportItemQueryImpl.java:102)
> at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder$QueryBuild
> erVisitor.visitExtendedItem(ReportQueryBuilder.java:689)
> at org.eclipse.birt.report.engine.ir.ExtendedItemDesign.accept(ExtendedI
> temDesign.java:45)
> at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder.build(Repo
> rtQueryBuilder.java:256)
> at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder.build(Repo
> rtQueryBuilder.java:237)
> at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.prepare(Ab
> stractDataEngine.java:178)
> at org.eclipse.birt.report.engine.executor.ReportExecutor.execute(Report
> Executor.java:123)
> at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportEx
> ecutor.execute(WrappedReportExecutor.java:60)
> at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplciat
> eReportExecutor.execute(SuppressDuplciateReportExecutor.java:42)
> at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportEx
> ecutor.execute(WrappedReportExecutor.java:60)
> at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReport
> Executor.execute(LocalizedReportExecutor.java:61)
> at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAnd
> RenderTask.java:168)
> ... 4 more
>
>
>
> On 10.06.2011 17:53, Jason Weathersby wrote:
>> Dennis,
>>
>> If you disable grouping on the category series the default aggregation
>> for the y axis will be none. To test this open the chart wizard and
>> select a
>> bar chart. Select the aggregation on the x-axis in the data tab and
>> un-check the grouping enabled checkbox.
>>
>> Jason
>>
>> On 6/10/2011 6:01 AM, Dennis Schladebeck wrote:
>>> Hi,
>>>
>>> i am currently trying to create a new chart type. Now i was wondering
>>> how
>>> i could make BIRT not using aggregate functions on my Value(Y) series.
>>> By default it is always the "sum" function. Is there a way to allow
>>> selection of
>>> NONE in the aggregation combo ?
>>>
>>> My dataset could be sth like
>>>
>>> x / y
>>> 1 / 10
>>> 2 / 10
>>> 2 / 30
>>> 3 / 5
>>> etc.
>>>
>>> I my IDataSetProcessor i added the ids to getDataDefIdsForGrouping().
>>> But now the two Y values at 2 are always
>>> added to each other. So there is one datapoint 2 / 40 when doing my
>>> rendering.
>>>
>>> thx for any advice
>>>
>>> Dennis
>>
>
Re: custom chart : multiple Y values for same X value [message #684174 is a reply to message #684024] Wed, 15 June 2011 06:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Dennis Schladebeck

Hi,

the error is occuring using my own chart implementation. Using same data etc. with BarChart works.

It is in the method
AbstractChartBaseQueryGenerator.addValueSeriesAggregateBindingForGrouping

The line
Series series = orthSD.getDesignTimeSeries( );
returns null for series, which causes NPE in the following lines calling
series.getClass( )

This only happens when running my report in the birt runtime using ReportRunner. Running it in the rcp designer works fine.
To create my chart extension, i used the example you send me a while ago.

I noticed i get the same error, when my new chart plugin is not placed in the plugins folder of the runtime. Now i am
wondering when birt first accesses the extensions and if maybe my chart leads to invalid rtpdesign file. But then running
the report from ReportDesingner shouldn't work, which it does.

Dennis


On 14.06.2011 23:23, Jason Weathersby wrote:
> Dennis
>
> It looks like something is messed up in the chart item binding. Can you reproduce the issue with data that I can run?
>
> Jason
>
> On 6/14/2011 1:01 PM, Dennis Schladebeck wrote:
>> Hi Jason,
>>
>> thanks for the hint. It seems to be working for my chart now. I had to
>> implement the getSeries Method
>> in my chart. Now the chart runs nicely in the reportdesigner, but i am
>> getting another error,
>> when running in headless runtime:
>>
>> My birt version is 2.5.2
>>
>> WARNUNG: handle type: org.eclipse.birt.report.model.api.OdaDataSetHandle
>> 14.06.2011 18:56:27
>> org.eclipse.birt.report.engine.api.impl.RunAndRenderTask doR
>> un
>> SCHWERWIEGEND: An error happened while running the report. Cause:
>> java.lang.NullPointerException
>> at org.eclipse.birt.chart.reportitem.AbstractChartBaseQueryGenerator.add
>> ValueSeriesAggregateBindingForGrouping(AbstractChartBaseQueryGenerator.java:158)
>>
>>
>> at org.eclipse.birt.chart.reportitem.AbstractChartBaseQueryGenerator.add
>> AggregateBindings(AbstractChartBaseQueryGenerator.java:587)
>> at org.eclipse.birt.chart.reportitem.AbstractChartBaseQueryGenerator.gen
>> erateExtraBindings(AbstractChartBaseQueryGenerator.java:345)
>> at org.eclipse.birt.chart.reportitem.ChartBaseQueryHelper.createBaseQuer
>> y(ChartBaseQueryHelper.java:109)
>> at org.eclipse.birt.chart.reportitem.ChartReportItemQueryImpl.createQuer
>> y(ChartReportItemQueryImpl.java:159)
>> at org.eclipse.birt.chart.reportitem.ChartReportItemQueryImpl.createRepo
>> rtQueries(ChartReportItemQueryImpl.java:102)
>> at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder$QueryBuild
>> erVisitor.visitExtendedItem(ReportQueryBuilder.java:689)
>> at org.eclipse.birt.report.engine.ir.ExtendedItemDesign.accept(ExtendedI
>> temDesign.java:45)
>> at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder.build(Repo
>> rtQueryBuilder.java:256)
>> at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder.build(Repo
>> rtQueryBuilder.java:237)
>> at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.prepare(Ab
>> stractDataEngine.java:178)
>> at org.eclipse.birt.report.engine.executor.ReportExecutor.execute(Report
>> Executor.java:123)
>> at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportEx
>> ecutor.execute(WrappedReportExecutor.java:60)
>> at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplciat
>> eReportExecutor.execute(SuppressDuplciateReportExecutor.java:42)
>> at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportEx
>> ecutor.execute(WrappedReportExecutor.java:60)
>> at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReport
>> Executor.execute(LocalizedReportExecutor.java:61)
>> at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAnd
>> RenderTask.java:168)
>> at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRe
>> nderTask.java:75)
>> at org.eclipse.birt.report.engine.api.ReportRunner.runAndRenderReport(Re
>> portRunner.java:222)
>> at org.eclipse.birt.report.engine.api.ReportRunner.execute(ReportRunner.
>> java:162)
>> at org.eclipse.birt.report.engine.api.ReportRunner.main(ReportRunner.jav
>> a:121)
>> 14.06.2011 18:56:27 org.eclipse.birt.report.engine.api.ReportRunner
>> runAndRender
>> Report
>> SCHWERWIEGEND: Error happened while running the report
>> org.eclipse.birt.report.engine.api.EngineException: Error happened while
>> running
>> the report
>> at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAnd
>> RenderTask.java:186)
>> at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRe
>> nderTask.java:75)
>> at org.eclipse.birt.report.engine.api.ReportRunner.runAndRenderReport(Re
>> portRunner.java:222)
>> at org.eclipse.birt.report.engine.api.ReportRunner.execute(ReportRunner.
>> java:162)
>> at org.eclipse.birt.report.engine.api.ReportRunner.main(ReportRunner.jav
>> a:121)
>> Caused by: java.lang.NullPointerException
>> at org.eclipse.birt.chart.reportitem.AbstractChartBaseQueryGenerator.add
>> ValueSeriesAggregateBindingForGrouping(AbstractChartBaseQueryGenerator.java:158)
>>
>>
>> at org.eclipse.birt.chart.reportitem.AbstractChartBaseQueryGenerator.add
>> AggregateBindings(AbstractChartBaseQueryGenerator.java:587)
>> at org.eclipse.birt.chart.reportitem.AbstractChartBaseQueryGenerator.gen
>> erateExtraBindings(AbstractChartBaseQueryGenerator.java:345)
>> at org.eclipse.birt.chart.reportitem.ChartBaseQueryHelper.createBaseQuer
>> y(ChartBaseQueryHelper.java:109)
>> at org.eclipse.birt.chart.reportitem.ChartReportItemQueryImpl.createQuer
>> y(ChartReportItemQueryImpl.java:159)
>> at org.eclipse.birt.chart.reportitem.ChartReportItemQueryImpl.createRepo
>> rtQueries(ChartReportItemQueryImpl.java:102)
>> at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder$QueryBuild
>> erVisitor.visitExtendedItem(ReportQueryBuilder.java:689)
>> at org.eclipse.birt.report.engine.ir.ExtendedItemDesign.accept(ExtendedI
>> temDesign.java:45)
>> at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder.build(Repo
>> rtQueryBuilder.java:256)
>> at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder.build(Repo
>> rtQueryBuilder.java:237)
>> at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.prepare(Ab
>> stractDataEngine.java:178)
>> at org.eclipse.birt.report.engine.executor.ReportExecutor.execute(Report
>> Executor.java:123)
>> at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportEx
>> ecutor.execute(WrappedReportExecutor.java:60)
>> at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplciat
>> eReportExecutor.execute(SuppressDuplciateReportExecutor.java:42)
>> at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportEx
>> ecutor.execute(WrappedReportExecutor.java:60)
>> at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReport
>> Executor.execute(LocalizedReportExecutor.java:61)
>> at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAnd
>> RenderTask.java:168)
>> ... 4 more
>>
>>
>>
>> On 10.06.2011 17:53, Jason Weathersby wrote:
>>> Dennis,
>>>
>>> If you disable grouping on the category series the default aggregation
>>> for the y axis will be none. To test this open the chart wizard and
>>> select a
>>> bar chart. Select the aggregation on the x-axis in the data tab and
>>> un-check the grouping enabled checkbox.
>>>
>>> Jason
>>>
>>> On 6/10/2011 6:01 AM, Dennis Schladebeck wrote:
>>>> Hi,
>>>>
>>>> i am currently trying to create a new chart type. Now i was wondering
>>>> how
>>>> i could make BIRT not using aggregate functions on my Value(Y) series.
>>>> By default it is always the "sum" function. Is there a way to allow
>>>> selection of
>>>> NONE in the aggregation combo ?
>>>>
>>>> My dataset could be sth like
>>>>
>>>> x / y
>>>> 1 / 10
>>>> 2 / 10
>>>> 2 / 30
>>>> 3 / 5
>>>> etc.
>>>>
>>>> I my IDataSetProcessor i added the ids to getDataDefIdsForGrouping().
>>>> But now the two Y values at 2 are always
>>>> added to each other. So there is one datapoint 2 / 40 when doing my
>>>> rendering.
>>>>
>>>> thx for any advice
>>>>
>>>> Dennis
>>>
>>
>
Re: custom chart : multiple Y values for same X value [message #684175 is a reply to message #684174] Wed, 15 June 2011 06:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Dennis Schladebeck

Hi,

here is my rptdesign file und the used data, hoping it helps.

Dennis

On 15.06.2011 08:15, Dennis Schladebeck wrote:
> Hi,
>
> the error is occuring using my own chart implementation. Using same data etc. with BarChart works.
>
> It is in the method
> AbstractChartBaseQueryGenerator.addValueSeriesAggregateBindingForGrouping
>
> The line
> Series series = orthSD.getDesignTimeSeries( );
> returns null for series, which causes NPE in the following lines calling
> series.getClass( )
>
> This only happens when running my report in the birt runtime using ReportRunner. Running it in the rcp designer works fine.
> To create my chart extension, i used the example you send me a while ago.
>
> I noticed i get the same error, when my new chart plugin is not placed in the plugins folder of the runtime. Now i am
> wondering when birt first accesses the extensions and if maybe my chart leads to invalid rtpdesign file. But then running
> the report from ReportDesingner shouldn't work, which it does.
>
> Dennis
>
>
> On 14.06.2011 23:23, Jason Weathersby wrote:
>> Dennis
>>
>> It looks like something is messed up in the chart item binding. Can you reproduce the issue with data that I can run?
>>
>> Jason
>>
>> On 6/14/2011 1:01 PM, Dennis Schladebeck wrote:
>>> Hi Jason,
>>>
>>> thanks for the hint. It seems to be working for my chart now. I had to
>>> implement the getSeries Method
>>> in my chart. Now the chart runs nicely in the reportdesigner, but i am
>>> getting another error,
>>> when running in headless runtime:
>>>
>>> My birt version is 2.5.2
>>>
>>> WARNUNG: handle type: org.eclipse.birt.report.model.api.OdaDataSetHandle
>>> 14.06.2011 18:56:27
>>> org.eclipse.birt.report.engine.api.impl.RunAndRenderTask doR
>>> un
>>> SCHWERWIEGEND: An error happened while running the report. Cause:
>>> java.lang.NullPointerException
>>> at org.eclipse.birt.chart.reportitem.AbstractChartBaseQueryGenerator.add
>>> ValueSeriesAggregateBindingForGrouping(AbstractChartBaseQueryGenerator.java:158)
>>>
>>>
>>> at org.eclipse.birt.chart.reportitem.AbstractChartBaseQueryGenerator.add
>>> AggregateBindings(AbstractChartBaseQueryGenerator.java:587)
>>> at org.eclipse.birt.chart.reportitem.AbstractChartBaseQueryGenerator.gen
>>> erateExtraBindings(AbstractChartBaseQueryGenerator.java:345)
>>> at org.eclipse.birt.chart.reportitem.ChartBaseQueryHelper.createBaseQuer
>>> y(ChartBaseQueryHelper.java:109)
>>> at org.eclipse.birt.chart.reportitem.ChartReportItemQueryImpl.createQuer
>>> y(ChartReportItemQueryImpl.java:159)
>>> at org.eclipse.birt.chart.reportitem.ChartReportItemQueryImpl.createRepo
>>> rtQueries(ChartReportItemQueryImpl.java:102)
>>> at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder$QueryBuild
>>> erVisitor.visitExtendedItem(ReportQueryBuilder.java:689)
>>> at org.eclipse.birt.report.engine.ir.ExtendedItemDesign.accept(ExtendedI
>>> temDesign.java:45)
>>> at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder.build(Repo
>>> rtQueryBuilder.java:256)
>>> at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder.build(Repo
>>> rtQueryBuilder.java:237)
>>> at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.prepare(Ab
>>> stractDataEngine.java:178)
>>> at org.eclipse.birt.report.engine.executor.ReportExecutor.execute(Report
>>> Executor.java:123)
>>> at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportEx
>>> ecutor.execute(WrappedReportExecutor.java:60)
>>> at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplciat
>>> eReportExecutor.execute(SuppressDuplciateReportExecutor.java:42)
>>> at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportEx
>>> ecutor.execute(WrappedReportExecutor.java:60)
>>> at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReport
>>> Executor.execute(LocalizedReportExecutor.java:61)
>>> at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAnd
>>> RenderTask.java:168)
>>> at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRe
>>> nderTask.java:75)
>>> at org.eclipse.birt.report.engine.api.ReportRunner.runAndRenderReport(Re
>>> portRunner.java:222)
>>> at org.eclipse.birt.report.engine.api.ReportRunner.execute(ReportRunner.
>>> java:162)
>>> at org.eclipse.birt.report.engine.api.ReportRunner.main(ReportRunner.jav
>>> a:121)
>>> 14.06.2011 18:56:27 org.eclipse.birt.report.engine.api.ReportRunner
>>> runAndRender
>>> Report
>>> SCHWERWIEGEND: Error happened while running the report
>>> org.eclipse.birt.report.engine.api.EngineException: Error happened while
>>> running
>>> the report
>>> at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAnd
>>> RenderTask.java:186)
>>> at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRe
>>> nderTask.java:75)
>>> at org.eclipse.birt.report.engine.api.ReportRunner.runAndRenderReport(Re
>>> portRunner.java:222)
>>> at org.eclipse.birt.report.engine.api.ReportRunner.execute(ReportRunner.
>>> java:162)
>>> at org.eclipse.birt.report.engine.api.ReportRunner.main(ReportRunner.jav
>>> a:121)
>>> Caused by: java.lang.NullPointerException
>>> at org.eclipse.birt.chart.reportitem.AbstractChartBaseQueryGenerator.add
>>> ValueSeriesAggregateBindingForGrouping(AbstractChartBaseQueryGenerator.java:158)
>>>
>>>
>>> at org.eclipse.birt.chart.reportitem.AbstractChartBaseQueryGenerator.add
>>> AggregateBindings(AbstractChartBaseQueryGenerator.java:587)
>>> at org.eclipse.birt.chart.reportitem.AbstractChartBaseQueryGenerator.gen
>>> erateExtraBindings(AbstractChartBaseQueryGenerator.java:345)
>>> at org.eclipse.birt.chart.reportitem.ChartBaseQueryHelper.createBaseQuer
>>> y(ChartBaseQueryHelper.java:109)
>>> at org.eclipse.birt.chart.reportitem.ChartReportItemQueryImpl.createQuer
>>> y(ChartReportItemQueryImpl.java:159)
>>> at org.eclipse.birt.chart.reportitem.ChartReportItemQueryImpl.createRepo
>>> rtQueries(ChartReportItemQueryImpl.java:102)
>>> at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder$QueryBuild
>>> erVisitor.visitExtendedItem(ReportQueryBuilder.java:689)
>>> at org.eclipse.birt.report.engine.ir.ExtendedItemDesign.accept(ExtendedI
>>> temDesign.java:45)
>>> at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder.build(Repo
>>> rtQueryBuilder.java:256)
>>> at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder.build(Repo
>>> rtQueryBuilder.java:237)
>>> at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.prepare(Ab
>>> stractDataEngine.java:178)
>>> at org.eclipse.birt.report.engine.executor.ReportExecutor.execute(Report
>>> Executor.java:123)
>>> at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportEx
>>> ecutor.execute(WrappedReportExecutor.java:60)
>>> at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplciat
>>> eReportExecutor.execute(SuppressDuplciateReportExecutor.java:42)
>>> at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportEx
>>> ecutor.execute(WrappedReportExecutor.java:60)
>>> at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReport
>>> Executor.execute(LocalizedReportExecutor.java:61)
>>> at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAnd
>>> RenderTask.java:168)
>>> ... 4 more
>>>
>>>
>>>
>>> On 10.06.2011 17:53, Jason Weathersby wrote:
>>>> Dennis,
>>>>
>>>> If you disable grouping on the category series the default aggregation
>>>> for the y axis will be none. To test this open the chart wizard and
>>>> select a
>>>> bar chart. Select the aggregation on the x-axis in the data tab and
>>>> un-check the grouping enabled checkbox.
>>>>
>>>> Jason
>>>>
>>>> On 6/10/2011 6:01 AM, Dennis Schladebeck wrote:
>>>>> Hi,
>>>>>
>>>>> i am currently trying to create a new chart type. Now i was wondering
>>>>> how
>>>>> i could make BIRT not using aggregate functions on my Value(Y) series.
>>>>> By default it is always the "sum" function. Is there a way to allow
>>>>> selection of
>>>>> NONE in the aggregation combo ?
>>>>>
>>>>> My dataset could be sth like
>>>>>
>>>>> x / y
>>>>> 1 / 10
>>>>> 2 / 10
>>>>> 2 / 30
>>>>> 3 / 5
>>>>> etc.
>>>>>
>>>>> I my IDataSetProcessor i added the ids to getDataDefIdsForGrouping().
>>>>> But now the two Y values at 2 are always
>>>>> added to each other. So there is one datapoint 2 / 40 when doing my
>>>>> rendering.
>>>>>
>>>>> thx for any advice
>>>>>
>>>>> Dennis
>>>>
>>>
>>
>


x,y,width,height,text_x,text_y,text,fill
10,30,6,4,0,0,"","1"
35,50,5,3,0,0,"Opt","2"
35,40,6,3,0,0,"","3"
50,30,8,5,0,0,"","4"
60,10,5,3,0,0,"<Min","R255G128B064"
75,75,8,4,0,0,"","5"
80,60,6,2,0,0,"Opt","6"
90,90,6,4,0,0,">Max","R255G128B064"
Re: custom chart : multiple Y values for same X value [message #684397 is a reply to message #684175] Wed, 15 June 2011 14:09 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Dennis,

Can you post the manifest file for your chart extension?

Jason

On 6/15/2011 2:42 AM, Dennis Schladebeck wrote:
> Hi,
>
> here is my rptdesign file und the used data, hoping it helps.
>
> Dennis
>
> On 15.06.2011 08:15, Dennis Schladebeck wrote:
>> Hi,
>>
>> the error is occuring using my own chart implementation. Using same
>> data etc. with BarChart works.
>>
>> It is in the method
>> AbstractChartBaseQueryGenerator.addValueSeriesAggregateBindingForGrouping
>>
>> The line
>> Series series = orthSD.getDesignTimeSeries( );
>> returns null for series, which causes NPE in the following lines calling
>> series.getClass( )
>>
>> This only happens when running my report in the birt runtime using
>> ReportRunner. Running it in the rcp designer works fine.
>> To create my chart extension, i used the example you send me a while ago.
>>
>> I noticed i get the same error, when my new chart plugin is not placed
>> in the plugins folder of the runtime. Now i am
>> wondering when birt first accesses the extensions and if maybe my
>> chart leads to invalid rtpdesign file. But then running
>> the report from ReportDesingner shouldn't work, which it does.
>>
>> Dennis
>>
>>
>> On 14.06.2011 23:23, Jason Weathersby wrote:
>>> Dennis
>>>
>>> It looks like something is messed up in the chart item binding. Can
>>> you reproduce the issue with data that I can run?
>>>
>>> Jason
>>>
>>> On 6/14/2011 1:01 PM, Dennis Schladebeck wrote:
>>>> Hi Jason,
>>>>
>>>> thanks for the hint. It seems to be working for my chart now. I had to
>>>> implement the getSeries Method
>>>> in my chart. Now the chart runs nicely in the reportdesigner, but i am
>>>> getting another error,
>>>> when running in headless runtime:
>>>>
>>>> My birt version is 2.5.2
>>>>
>>>> WARNUNG: handle type:
>>>> org.eclipse.birt.report.model.api.OdaDataSetHandle
>>>> 14.06.2011 18:56:27
>>>> org.eclipse.birt.report.engine.api.impl.RunAndRenderTask doR
>>>> un
>>>> SCHWERWIEGEND: An error happened while running the report. Cause:
>>>> java.lang.NullPointerException
>>>> at
>>>> org.eclipse.birt.chart.reportitem.AbstractChartBaseQueryGenerator.add
>>>> ValueSeriesAggregateBindingForGrouping(AbstractChartBaseQueryGenerator.java:158)
>>>>
>>>>
>>>>
>>>> at
>>>> org.eclipse.birt.chart.reportitem.AbstractChartBaseQueryGenerator.add
>>>> AggregateBindings(AbstractChartBaseQueryGenerator.java:587)
>>>> at
>>>> org.eclipse.birt.chart.reportitem.AbstractChartBaseQueryGenerator.gen
>>>> erateExtraBindings(AbstractChartBaseQueryGenerator.java:345)
>>>> at
>>>> org.eclipse.birt.chart.reportitem.ChartBaseQueryHelper.createBaseQuer
>>>> y(ChartBaseQueryHelper.java:109)
>>>> at
>>>> org.eclipse.birt.chart.reportitem.ChartReportItemQueryImpl.createQuer
>>>> y(ChartReportItemQueryImpl.java:159)
>>>> at
>>>> org.eclipse.birt.chart.reportitem.ChartReportItemQueryImpl.createRepo
>>>> rtQueries(ChartReportItemQueryImpl.java:102)
>>>> at
>>>> org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder$QueryBuild
>>>> erVisitor.visitExtendedItem(ReportQueryBuilder.java:689)
>>>> at
>>>> org.eclipse.birt.report.engine.ir.ExtendedItemDesign.accept(ExtendedI
>>>> temDesign.java:45)
>>>> at
>>>> org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder.build(Repo
>>>> rtQueryBuilder.java:256)
>>>> at
>>>> org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder.build(Repo
>>>> rtQueryBuilder.java:237)
>>>> at
>>>> org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.prepare(Ab
>>>> stractDataEngine.java:178)
>>>> at
>>>> org.eclipse.birt.report.engine.executor.ReportExecutor.execute(Report
>>>> Executor.java:123)
>>>> at
>>>> org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportEx
>>>> ecutor.execute(WrappedReportExecutor.java:60)
>>>> at
>>>> org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplciat
>>>> eReportExecutor.execute(SuppressDuplciateReportExecutor.java:42)
>>>> at
>>>> org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportEx
>>>> ecutor.execute(WrappedReportExecutor.java:60)
>>>> at
>>>> org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReport
>>>> Executor.execute(LocalizedReportExecutor.java:61)
>>>> at
>>>> org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAnd
>>>> RenderTask.java:168)
>>>> at
>>>> org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRe
>>>> nderTask.java:75)
>>>> at
>>>> org.eclipse.birt.report.engine.api.ReportRunner.runAndRenderReport(Re
>>>> portRunner.java:222)
>>>> at
>>>> org.eclipse.birt.report.engine.api.ReportRunner.execute(ReportRunner.
>>>> java:162)
>>>> at
>>>> org.eclipse.birt.report.engine.api.ReportRunner.main(ReportRunner.jav
>>>> a:121)
>>>> 14.06.2011 18:56:27 org.eclipse.birt.report.engine.api.ReportRunner
>>>> runAndRender
>>>> Report
>>>> SCHWERWIEGEND: Error happened while running the report
>>>> org.eclipse.birt.report.engine.api.EngineException: Error happened
>>>> while
>>>> running
>>>> the report
>>>> at
>>>> org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAnd
>>>> RenderTask.java:186)
>>>> at
>>>> org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRe
>>>> nderTask.java:75)
>>>> at
>>>> org.eclipse.birt.report.engine.api.ReportRunner.runAndRenderReport(Re
>>>> portRunner.java:222)
>>>> at
>>>> org.eclipse.birt.report.engine.api.ReportRunner.execute(ReportRunner.
>>>> java:162)
>>>> at
>>>> org.eclipse.birt.report.engine.api.ReportRunner.main(ReportRunner.jav
>>>> a:121)
>>>> Caused by: java.lang.NullPointerException
>>>> at
>>>> org.eclipse.birt.chart.reportitem.AbstractChartBaseQueryGenerator.add
>>>> ValueSeriesAggregateBindingForGrouping(AbstractChartBaseQueryGenerator.java:158)
>>>>
>>>>
>>>>
>>>> at
>>>> org.eclipse.birt.chart.reportitem.AbstractChartBaseQueryGenerator.add
>>>> AggregateBindings(AbstractChartBaseQueryGenerator.java:587)
>>>> at
>>>> org.eclipse.birt.chart.reportitem.AbstractChartBaseQueryGenerator.gen
>>>> erateExtraBindings(AbstractChartBaseQueryGenerator.java:345)
>>>> at
>>>> org.eclipse.birt.chart.reportitem.ChartBaseQueryHelper.createBaseQuer
>>>> y(ChartBaseQueryHelper.java:109)
>>>> at
>>>> org.eclipse.birt.chart.reportitem.ChartReportItemQueryImpl.createQuer
>>>> y(ChartReportItemQueryImpl.java:159)
>>>> at
>>>> org.eclipse.birt.chart.reportitem.ChartReportItemQueryImpl.createRepo
>>>> rtQueries(ChartReportItemQueryImpl.java:102)
>>>> at
>>>> org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder$QueryBuild
>>>> erVisitor.visitExtendedItem(ReportQueryBuilder.java:689)
>>>> at
>>>> org.eclipse.birt.report.engine.ir.ExtendedItemDesign.accept(ExtendedI
>>>> temDesign.java:45)
>>>> at
>>>> org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder.build(Repo
>>>> rtQueryBuilder.java:256)
>>>> at
>>>> org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder.build(Repo
>>>> rtQueryBuilder.java:237)
>>>> at
>>>> org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.prepare(Ab
>>>> stractDataEngine.java:178)
>>>> at
>>>> org.eclipse.birt.report.engine.executor.ReportExecutor.execute(Report
>>>> Executor.java:123)
>>>> at
>>>> org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportEx
>>>> ecutor.execute(WrappedReportExecutor.java:60)
>>>> at
>>>> org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplciat
>>>> eReportExecutor.execute(SuppressDuplciateReportExecutor.java:42)
>>>> at
>>>> org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportEx
>>>> ecutor.execute(WrappedReportExecutor.java:60)
>>>> at
>>>> org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReport
>>>> Executor.execute(LocalizedReportExecutor.java:61)
>>>> at
>>>> org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAnd
>>>> RenderTask.java:168)
>>>> ... 4 more
>>>>
>>>>
>>>>
>>>> On 10.06.2011 17:53, Jason Weathersby wrote:
>>>>> Dennis,
>>>>>
>>>>> If you disable grouping on the category series the default aggregation
>>>>> for the y axis will be none. To test this open the chart wizard and
>>>>> select a
>>>>> bar chart. Select the aggregation on the x-axis in the data tab and
>>>>> un-check the grouping enabled checkbox.
>>>>>
>>>>> Jason
>>>>>
>>>>> On 6/10/2011 6:01 AM, Dennis Schladebeck wrote:
>>>>>> Hi,
>>>>>>
>>>>>> i am currently trying to create a new chart type. Now i was wondering
>>>>>> how
>>>>>> i could make BIRT not using aggregate functions on my Value(Y)
>>>>>> series.
>>>>>> By default it is always the "sum" function. Is there a way to allow
>>>>>> selection of
>>>>>> NONE in the aggregation combo ?
>>>>>>
>>>>>> My dataset could be sth like
>>>>>>
>>>>>> x / y
>>>>>> 1 / 10
>>>>>> 2 / 10
>>>>>> 2 / 30
>>>>>> 3 / 5
>>>>>> etc.
>>>>>>
>>>>>> I my IDataSetProcessor i added the ids to getDataDefIdsForGrouping().
>>>>>> But now the two Y values at 2 are always
>>>>>> added to each other. So there is one datapoint 2 / 40 when doing my
>>>>>> rendering.
>>>>>>
>>>>>> thx for any advice
>>>>>>
>>>>>> Dennis
>>>>>
>>>>
>>>
>>
>
Re: custom chart : multiple Y values for same X value [message #684401 is a reply to message #684397] Wed, 15 June 2011 14:28 Go to previous message
Eclipse UserFriend
Originally posted by: Dennis Schladebeck

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Rectangle Chart
Bundle-SymbolicName: de.bredex.birt.rectangle.chart;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: de.bredex.birt.rectangle.chart.Activator
Bundle-Vendor: Bredex GmbH
Require-Bundle: org.eclipse.ui;resolution:=optional,
org.eclipse.core.runtime;resolution:=optional,
org.eclipse.emf.ecore;resolution:=optional,
org.eclipse.emf.ecore.xmi;resolution:=optional,
org.eclipse.birt.chart.engine,
org.eclipse.birt.chart.engine.extension,
org.eclipse.birt.chart.ui;resolution:=optional,
org.eclipse.birt.chart.ui.extension;resolution:=optional,
com.ibm.icu
Bundle-ActivationPolicy: lazy
Previous Topic:Ordering text Day of week correctly on x axis
Next Topic:Data is getting truncated in the PDF out put
Goto Forum:
  


Current Time: Tue Apr 23 14:29:53 GMT 2024

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

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

Back to the top