|
Re: Charts [message #85706 is a reply to message #85276] |
Mon, 31 October 2005 13:31 |
David Michonneau Messages: 1145 Registered: July 2009 |
Senior Member |
|
|
Hi,
Please look at the scripting specification:
http://www.eclipse.org/birt/wiki/index.php?n=BPS.BPS18
To answer your first question, it will only be possible to extract data from
a series dataset itself in 1.0.1, so if you access the runtime model in your
script, you can try that. I would try that in beforeDrawBlock().
If you want to show the current week over the bars of a bar chart, that
should be possible without scripting. Go To Attributes->Y series and add the
base value to the datapoint.
You can add blocks to the chart and use the layout to specify where those
new blocks go. If you want to bind them through data, you would need to
script using beforeDrawBlock() like I mentioned previously.
Thanks,
David
"Mr. Burns" <Mr._Burns@web.de> wrote in message
news:djtb8i$7hl$1@news.eclipse.org...
> Hello,
>
> is it possible to set the diagram title, the y-axis title and the x-axis
> title with a value from a database or a script variable?
>
> E.g. I want to do a weekly report and in the upper right corner a label
> should appear with the current week of the year.
>
> Or if I have a monthly report, with 4 bars (for every week one) I want to
> show an extra title above each bar with the current week of the year.
>
> Is it possible to add labels / textfields to the chart (placable anywhere)
> to show addidional information on chart? E.g. date, time, etc. within the
> chart not without. If yes how? Are those labels to bind to database
> fields?
>
> Thanks for help!
>
>
>
>
|
|
|
|
Re: Charts [message #86879 is a reply to message #86526] |
Thu, 03 November 2005 13:04 |
David Michonneau Messages: 1145 Registered: July 2009 |
Senior Member |
|
|
Unfornutately, there is no way to make the labels appear with different
vertical position. We need to improve the renderer to identify the newline
character and render it correctly. I think you can enter any separator
character in the UI, but the renderer will just output it like you wrote it.
For instance \n will be rendered as \n.
If you really need that though, you can add your own Bar Renderer
implementation that renders the new line character, and why not contribute
it, so we can add this feature in the original Bar Renderer implementation
and other renderers too.
To add a new renderer implementation, please check the Chart engine BPS
entry in the wiki, http://www.eclipse.org/birt/wiki/index.php?n=BPS.BPS39
although there should be some documentation inside the BIRT documentation I
believe.
Regarding the blocks, there is a bugzilla entry regarding that, as there is
an issue with block layout. The entry contains a sample code as well, but
you might want to wait until it is fixed to use it:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=103062
Thanks,
David
"Mr. Burns" <Mr._Burns@web.de> wrote in message
news:dkabbj$lff$1@news.eclipse.org...
> Thanks David for your reply,
>
> but I want to have the week No. upon (and not side by side) the amount
> value above the bar. So they should appear one upon the other.
> E.g. the week Nos. should appear at top of the chart in one row and not at
> the top of each column with different vertical position dependent on the
> height of a bar.
>
> Any further ideas?
>
> By the way, under Attributes->Y Series is it possible if one has more than
> one value to separate them by a newline? I want them appear one upon the
> other, aligned by middle? I can only enter something like a colon as
> separator, but I want to have a newline. Is this possible? If yes how?
>
> You wrote something about blocks I can add within a chart, an you explain
> how? Or give a link to an example/snippet?
>
> Thanks again!
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03215 seconds