Jasperreports: How to configure Multi Axis legend? - jasper-reports

I have a multi axis with two timeSeries as follows:
<multiAxisChart>
<chart isShowLegend="true" evaluationTime="Report" renderType="svg">
<reportElement x="0" y="70" width="555" height="290" uuid="c8ffe397-cf6f-4c8d-8e42-8355c15fd7da"/>
<chartTitle/>
<chartSubtitle/>
**<chartLegend position="Top">
<font size="6" isBold="true"/>**
</chartLegend>
</chart>
<multiAxisPlot>
<plot/>
<axis>
<timeSeriesChart>
<chart evaluationTime="Report">
<reportElement x="0" y="0" width="0" height="0" backcolor="#FFFFFF" uuid="1fb68274-5e87-403a-bf9c-f8fd405f61db"/>
<chartTitle color="#000000"/>
The highlighted text (** **) does not seem to work. Multiaxis chart legend is still at the botton and with the original font size (10 points):
How do I reduce the legend font size?

The setting referred is OK. I don't know why, but Jaspersoft Studio preview does not refresh the change. Nevertheless, in JasperReports server the setting does work correctly.

Related

Plot a BOX in Day High and Low in Tradingview

[do_1, dh, dl] = request.security(syminfo.ticker, 'D', [open, high, low], lookahead=barmerge.lookahead_on)
plot(dh, title='H', style=plot.style_stepline, color=color. New(color.red, 0), linewidth=2, trackprice=true)
plot(do_1, title='O', style=plot.style_stepline, color=color.new(color.yellow, 0), linewidth=1, trackprice=true)
plot(dl, title='L', style=plot.style_stepline, color=color.new(color.green, 0), linewidth=2, trackprice=true)
With above this code possible to plot open, Day High and Day Low in the chart
i want plot a box in Day High and Day Low, separate for every day , Currently its not a break line.
Requesting help me add plot to my trading
plot(dh, title='H', style=plot.style_stepline, color=color. New(color.red, 0), linewidth=2, trackprice=true)
plot(do_1, title='O', style=plot.style_stepline, color=color.new(color.yellow, 0), linewidth=1, trackprice=true)
plot(dl, title='L', style=plot.style_stepline, color=color.new(color.green, 0), linewidth=2, trackprice=true)
Cant add any box code to this maybe i am wrong entry the code

Unity .dae importing animations incorrectly

I have been having issues importing .dae files exported by Maya into Unity3D.
The animation has a few keyframes (around 20), which can be seen in the .dae snippet bellow
<animation>
<source id="Idle_RHD-translate-animation-inputY">
<float_array id="Idle_RHD-translate-animation-inputY-array" count="13">
0.000000 0.066667 9.933333 10.000000 19.966667 24.433333 28.766667 28.833333 33.200000 36.433333 40.500000 43.900000 53.333333</float_array>
<technique_common>
<accessor source="#Idle_RHD-translate-animation-inputY-array" count="13">
<param name="TIME" type="float"/>
</accessor>
</technique_common>
</source>
<source id="Idle_RHD-translate-animation-outputY">
<float_array id="Idle_RHD-translate-animation-outputY-array" count="13">
1.602632 1.602632 0.183871 0.183871 -0.009894 -0.009894 0.541865 0.541865 -0.057921 -0.321000 -0.459515 -0.211902 1.602632</float_array>
<technique_common>
<accessor source="#Idle_RHD-translate-animation-outputY-array" count="13">
<param name="Y" type="float"/>
</accessor>
</technique_common>
</source>
<source id="Idle_RHD-translate-animation-intanY">
<float_array id="Idle_RHD-translate-animation-intanY-array" count="13">
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -0.244109 -0.038415 -0.039776 0.227513 0.000000</float_array>
<technique_common>
<accessor source="#Idle_RHD-translate-animation-intanY-array" count="13">
<param name="Y" type="float"/>
</accessor>
</technique_common>
</source>
<source id="Idle_RHD-translate-animation-outtanY">
<float_array id="Idle_RHD-translate-animation-outtanY-array" count="13">
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -0.180752 -0.048316 -0.033255 0.631237 0.000000</float_array>
<technique_common>
<accessor source="#Idle_RHD-translate-animation-outtanY-array" count="13">
<param name="Y" type="float"/>
</accessor>
</technique_common>
</source>
<source id="Idle_RHD-translate-animation-interpolationY">
<Name_array id="Idle_RHD-translate-animation-interpolationY-array" count="13">
BEZIER BEZIER BEZIER BEZIER BEZIER BEZIER BEZIER BEZIER BEZIER BEZIER BEZIER
BEZIER BEZIER</Name_array>
<technique_common>
<accessor source="#Idle_RHD-translate-animation-interpolationY-array" count="13">
<param type="name"/>
</accessor>
</technique_common>
</source>
<sampler id="Idle_RHD-translate-animationY">
<input semantic="INPUT" source="#Idle_RHD-translate-animation-inputY"/>
<input semantic="OUTPUT" source="#Idle_RHD-translate-animation-outputY"/>
<input semantic="IN_TANGENT" source="#Idle_RHD-translate-animation-intanY"/>
<input semantic="OUT_TANGENT" source="#Idle_RHD-translate-animation-outtanY"/>
<input semantic="INTERPOLATION" source="#Idle_RHD-translate-animation-interpolationY"/>
</sampler>
<channel source="#Idle_RHD-translate-animationY" target="Idle_RHD/translate.Y"/>
</animation>
However, when unity gets a hold of this file, and I view it in the animation window, there is a keyframe on EVERY frame. This is causing issues with the animation.
We cannot use frame reduction, as this actually loses some small details in the animation which are essential.
All we need is for unity to read in the .dae "verbatim", no change at all.
Does anybody know how to do this?
This is called Baked Animation. Unity needs baked keyframes. Try to uncheck Bake Animation checkbox in FBX export settings. But again, unity will not interpret correctly your animation if the animation curve isn't baked.

Calculate the X and Y (top and left) values for the shape after setting the rotation for it

Need help in adjusting the top and left of the shape when rotation value is set.
For Ex :
<p:spPr bwMode="auto">
<a:xfrm rot="5400000">
<a:off x="2443049" y="-1042472" />
<a:ext cx="304800" cy="4419600" />
</a:xfrm>
<a:prstGeom prst="rect">
<a:avLst />
</a:prstGeom>
<a:ln>
<a:headEnd />
<a:tailEnd />
</a:ln>
I have the above data. I have calculated the rotation angle accordingly. Now when creating the shape and displaying it in an html format, need to adjust the top and left (off x="2443049" y="-1042472") values to align it properly. Kindly provide a solution to calculate proper top and left values to set.
thanks
As mentioned in how to calculate the rotation value for the MS Office Powerpoint Shapes from the xml data given, their is no need to change the left and top of a shape - if it is rotated or not-rotated, the shape will have the same left/top as it is an in-place rotation (it rotates on the Center X/Y).
If you're looking for how to translate EMU to points/pixels so that it can be converted to a different format such as HTML, use EMU/12700. So in this case <a:off x="2443049" y="-1042472" /> would be left="192.37" top="-82.08" and <a:ext cx="304800" cy="4419600" /> would be width=24 height=348.

how to calculate the rotation value for the MS Office Powerpoint Shapes from the xml data given

I want to get the proper rotation value to draw the shape of the MS office Powerpoint 2007 file from the given OOXML data as below :
<p:sp>
<p:nvSpPr>
<p:cNvPr id="3" name="Rectangle 66" />
<p:cNvSpPr>
<a:spLocks noChangeArrowheads="1" />
</p:cNvSpPr>
<p:nvPr />
</p:nvSpPr>
<p:spPr bwMode="auto">
***<a:xfrm rot="5400000">***
<a:off x="2443049" y="-1042472" />
<a:ext cx="304800" cy="4419600" />
</a:xfrm>
<a:prstGeom prst="rect">
<a:avLst />
</a:prstGeom>
<a:ln>
<a:headEnd />
<a:tailEnd />
</a:ln>
</p:spPr>
The value of rotation is given as "xfrm rot = 5400000". Considering this, its proper value has to be calculated and accordingly the height and width of the shape has to handled to draw the shape.
Divide it by 60000 to get the rotation angle. In this case, 5400000/60000=90 degrees. It is an in-place rotation, meaning it rotates on Center X and Center Y.

how to add legend(at X and Y axis) to the chart

I want to add to my chart at the axis X and Y to what they refers
eg: add number of issues and project
Current chart
Required chart
I am using JasperReports 5.6.1.
In bar plot section (of the .jrxml file) I put :
<barPlot isShowTickLabels="true" isShowTickMarks="true">
<plot>
<seriesColor seriesOrder="1" color="#00FF00" />
</plot>
<categoryAxisLabelExpression><![CDATA[$P{xAxisLabel}]]></categoryAxisLabelExpression>
<categoryAxisFormat>
<axisFormat>
<labelFont>
<font size="12" isBold="true" />
</labelFont>
</axisFormat>
</categoryAxisFormat>
<valueAxisLabelExpression><![CDATA["[ persons ]"]]></valueAxisLabelExpression>
<valueAxisFormat>
<axisFormat>
<labelFont>
<font size="12" isBold="true" />
</labelFont>
</axisFormat>
</valueAxisFormat>
</barPlot>
I have both axis labelled, however label for x axis is below x axis and label for y axis is left to the y axis (a little bit different then in your screen).
In x axis case I have used report parameter. In both axis labels I have used bold font for labels to be more readable.