In Jasper iReport 4.5.0, how do I get the Label Mask on a chart to save?

2.2k views Asked by At

I'm using iReport 4.5.0, which is so far more pleasurable than CF's buggy report builder... the problem is that some elements that I can set in the designer using the Properties side bar don't appear to write any XML, and hence don't save.

I'm using a stacked bar chart, which is basically a three variable graph, and the Value Axis Label Mask doesn't appear to save. My mask is "#.#%" (sans quotes) which converts the doubles into nice percentages and saves me the trouble of doing the conversion myself.

Does anyone know what the XML tag is for the Value Axis Tick Label Mask in a stacked bar chart? If I can set it in the XML, I'm sure it will stick...

1

There are 1 answers

0
Oleksiy Sayankin On

For multiaxes charts use:

<axis>

<!-- other XML tags here-->

   <valueAxisFormat>
      <axisFormat tickLabelMask="#.#%"/>
   </valueAxisFormat>
</axis>

For single axe chart use:

<linePlot>

<!-- other XML tags here-->

   <valueAxisFormat>
      <axisFormat tickLabelMask="#.#%"/>
   </valueAxisFormat>
</linePlot>