jahp00 Posted October 14, 2009 Share Posted October 14, 2009 Hi, i need to change the font in a Bar Chart, but I don't see that property. Can anybody help me please?Code:<?xml version="1.0" encoding="UTF-8"?><jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="report name" pageWidth="612" pageHeight="792" columnWidth="535" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20"> <style name="style1" isDefault="true" fontSize="6"/> <parameter name="fechainicial" class="java.util.Date"> <defaultValueExpression><![CDATA[new Date()]]></defaultValueExpression> </parameter> <parameter name="fechafinal" class="java.util.Date"> <defaultValueExpression><![CDATA[new Date()]]></defaultValueExpression> </parameter> <queryString> <![CDATA[call reccomparativa($P{fechainicial},$P{fechafinal})]]> </queryString> <field name="tipo" class="java.lang.String"> <fieldDescription><![CDATA[]]></fieldDescription> </field> <field name="monto" class="java.math.BigDecimal"> <fieldDescription><![CDATA[]]></fieldDescription> </field> <background> <band/> </background> <title> <band height="82"> <barChart> <chart isShowLegend="false" evaluationTime="Report" theme="default"> <reportElement style="style1" stretchType="RelativeToTallestObject" x="0" y="0" width="250" height="82"/> <chartTitle> <font size="7"/> </chartTitle> <chartSubtitle> <font size="7"/> </chartSubtitle> <chartLegend position="Top"> <font size="7"/> </chartLegend> </chart> <categoryDataset> <categorySeries> <seriesExpression><![CDATA[$F{tipo}]]></seriesExpression> <categoryExpression><![CDATA[$F{tipo}]]></categoryExpression> <valueExpression><![CDATA[$F{monto}]]></valueExpression> <labelExpression><![CDATA[$F{monto}.toString()]]></labelExpression> <itemHyperlink/> </categorySeries> </categoryDataset> <barPlot isShowLabels="true" isShowTickLabels="true" isShowTickMarks="false"> <plot orientation="Horizontal" labelRotation="0.0"/> <categoryAxisFormat> <axisFormat tickLabelMask=""> <labelFont> <font size="5"/> </labelFont> <tickLabelFont/> </axisFormat> </categoryAxisFormat> <valueAxisFormat> <axisFormat tickLabelMask=""> <labelFont> <font size="5"/> </labelFont> <tickLabelFont> <font size="5"/> </tickLabelFont> </axisFormat> </valueAxisFormat> <rangeAxisMinValueExpression><![CDATA[new java.lang.Integer(1000000)]]></rangeAxisMinValueExpression> <rangeAxisMaxValueExpression><![CDATA[new java.lang.Integer(4000000)]]></rangeAxisMaxValueExpression> </barPlot> </barChart> </band> </title> <pageHeader> <band/> </pageHeader> <columnHeader> <band/> </columnHeader> <detail> <band/> </detail> <columnFooter> <band/> </columnFooter> <pageFooter> <band/> </pageFooter> <summary> <band/> </summary></jasperReport> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now