ZEN Report: BarChart Displaying Values within the Bars

59 views
Skip to first unread message

Steffen Schnaufer

unread,
Jan 24, 2012, 12:11:50 PM1/24/12
to InterSys...@googlegroups.com
Dear All ZEN Users,

after trying to find a way on my own (and getting slightly grumpy)
I'll ask in here.
I believe there is a simple solution (no idea why i don't get it).

I got it working with displaying the Values in the legend,
Please see below my code:

<group name="BarChartCriteriaAll">
 <group name="KriteriumAll" small-multiple="true" small-multiple-name="kriteriumall-labels">
 <!--group name="Kriterium"-->
 <div xslfostyle="keep-together:always">
 <table orient="row"
 style="font-size:12;font-family:Helvetica, sans-serif, SansSerif;background-color:#FFFFFF;border:none;padding-top:5px;padding-bottom:1px"
>
 <item field="@KriteriumAll" caption="" too-long-text="wrap"/>
 </table>
 <barChart 
width="5.0in" height="3.0in"
seriesGroup="AnbieterAll"
dataFields="!EvaPointAll"
labelsVisible="true" 
plotToEdge="true"
seriesNames="!EvaPointAll"
legendVisible="true" legendY="10" legendX="91" legendWidth="9"
marginLeft="10" marginBottom="2" marginRight="0" marginTop="10"
backgroundStyle="fill:#FFFFFF;stroke-width:0pt;"
plotAreaStyle="fill:#FFFFFF;"
labelStyle="fill:#000000;font-size:4pt;"
plotStyle="stroke:#454545; stroke-width:0.2pt;"
seriesColors="limegreen,#990099,cornflowerblue,blueviolet,lightpink,mediumaquamarine,burlywood,mediumorchid,mediumvioletred,yellowgreen,lightsalmon,plum,#660099,lightseagreen,#990066,deepskyblue"
 >
<yaxis majorGridLines="true" textAnchor="start" labelAngle="0"/>
<xaxis labelStyle="fill:#000000;stroke-width:0pt;" labelValue="AnbieterAll" textAnchor="start" labelAngle="135"/>

 </barChart>
 </div>
 </group>
 <small-multiple
 num-rows="1" num-cols="#(..Graphcol)#"
 table-width="11in" col-width="5.1in"
 name="kriteriumall-labels"
 />
</group>


Thx in advance and regards
Steffen




Beste Grüsse

Steffen Schnaufer

IT Consultant | Firma SCHNAUFER 
Sierenzerstr. 10 
4055 Basel Switzerland
t +41 61 322 57 73 | m +41 78 666 57 73 
w www.schnaufer.ch |e ste...@schnaufer.ch





APZ

unread,
Feb 10, 2012, 5:11:33 PM2/10/12
to InterSystems: Zen Community
Hello Steffen,

I am not quite sure I understand the question, but since your post has
been waiting for a reply for a while, I will give it a shot. Please
correct me if I have misunderstood anything:

You are creating a ZEN Report.
You want to have numbers appear on each bar in the Bar Chart,
indicating what the value of that bar is.
The example that you provided does create a bar chart, but without
the labels on each bar.

I must tell you that the ability to place a label each bar is not
provided in ZEN Reports' XPath-based charts. This can be done with
charts on ZEN component pages, by setting "valueLabelsVisible" equal
to true. This feature will become available for ZEN Report charts in
version 2012.2 --- although you will need to re-do your chart into a
style that is more like the ZEN component-page charts in order to take
advantage of the new feature. There are a host of improvements to
charting arriving soon --- kudos to you for anticipating one.

I hope this news doesn't affect your grumpiness too badly!

Regards,
Ariela Zonderman
SQA Engineer, Intersystems
> wwww.schnaufer.ch|e stef...@schnaufer.ch

Steffen Schnaufer

unread,
Feb 14, 2012, 4:35:44 AM2/14/12
to InterSystems: Zen Community
Hi Ariela,

perfect shot (",)

While waiting for a reply I talked to WRC
and they opened a ProdLog for this issue.

Now looking forward to 2012.2,
no more grumpy about myself not finding the solution to go (when there
is no way ;)

Thx and regards
Steffen

On Feb 10, 11:11 pm, APZ <azon...@intersystems.com> wrote:
> Hello Steffen,
>
> I am not quite sure I understand the question, but since your post has
> been waiting for a reply for a while, I will give it a shot. Please
> correct me if I have misunderstood anything:
>
>    You are creating a ZEN Report.
>    You want to have numbers appear on each bar in the Bar Chart,
> indicating what the value of that bar is.
>    The example that you provided does create a bar chart, but without
> the labels on each bar.
>
> I must tell you that the ability to place a label each bar is not
> provided in ZEN Reports' XPath-based charts. This can be done with
> charts on ZEN component pages, by setting "valueLabelsVisible" equal
> to true. This feature will become available for ZEN Report charts in
> version 2012.2 --- although you will need to re-do your chart into a
> style that is more like the ZEN component-page charts in order to take
> advantage of the new feature. There are a host of improvements to
> charting arriving soon --- kudos to you for anticipating one.
>
> I hope this news doesn't affect your grumpiness too badly!
>
> Regards,
>    Ariela Zonderman
>    SQA Engineer, Intersystems
>
> On Jan 24, 12:11 pm, SteffenSchnaufer<stef...@schnaufer.ch> wrote:
>
>
>
>
>
>
>
> > Dear All ZEN Users,
>
> > after trying to find a way on my own (and getting slightly grumpy)
> > I'll ask in here.
> > I believe there is a simple solution (no idea why i don't get it).
>
> > I got it working with displaying the Values in the legend,
> > Please see below my code:
>
> > <group name="BarChartCriteriaAll">
> >  <group name="KriteriumAll" small-multiple="true" small-multiple-name="kriteriumall-labels">
> >  <!--group name="Kriterium"-->
> >  <div xslfostyle="keep-together:always">
> >  <table orient="row"
> >  style="font-size:12;font-family:Helvetica, sans-serif, SansSerif;background-color:#FFFFFF;border:none;padding-top:5px;padding-bott om:1px"
Reply all
Reply to author
Forward
0 new messages