Jump to content
We've recently updated our Privacy Statement, available here ×

abbey8908

Members
  • Posts

    5
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by abbey8908

  1. Dear Reportdev, Thank you for your comment. I will put max 365 date data, so I need the x aixs to be automatically skipped some points based on its amount. So the only option for me is time series chart, not line chart. And time series chart must has Timestamp or Date data type for time axis...
  2. Hello, I'm trying to make a line chart to show; x axis: date, y axis: value. Since x axis is date, I created timestamp chart as so that the time axis labels can be skipping depend on its number automatically. But when I try to set time axis label mask as a parameter, it gets error. For example, I set 'tickLabelMask="$P{dateFormat}"' and 'java.lang.IllegalArgumentException: Illegal pattern character 'P' came out. When I set 'tickLabelMask=<![CDATA[$P{dateFormat}]]>', 'Open quote is expected for attribute "tickLabelMask" associated with an element type "axisFormat".' came out. In my application, my user selects his nation(even though he is not in that nation) and I have to show the time axis as a format of their nation. So, I'm trying to pass a date format as an parameter.. Is there an way to mask date with parameter? Or is there any way to make line chart x asix label skip? I really need an advice. Best, S Kim
  3. Hello, I'm trying to show pie chart label as 'key : value (value%)'. so I put <piePlot isShowLabels="true" isCircular="true" labelFormat="{0} : {1} ({2})" legendLabelFormat="{0} : {1} ({2})"> for my pie chart. when I preview, label shows key only, and legend shows as 'key : value (value%)' correctly. I cannot figure out why label doesn't work. Any suggestion would be grateful. Best,
  4. Hello, I'm really new for Jasperreport now. I'm having a troble at passing field value from main report to sub report.. the following is my main report code; <subreport> <reportElement x="140" y="180" width="530" height="303" uuid="d23de6fe-970c-49e1-b747-0b1cdd2a7e86"/> <subreportParameter name="PIE_NM"> <subreportParameterExpression><![CDATA[$F{PIE_NM}]]></subreportParameterExpression> </subreportParameter> <subreportParameter name="RATIO"> <subreportParameterExpression><![CDATA[$F{RATIO}]]></subreportParameterExpression> </subreportParameter> <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.JREmptyDataSource()]]></dataSourceExpression> <subreportExpression><![CDATA["reports/DBRD2040-1.jasper"]]></subreportExpression> </subreport> the following is my sub report code; <field name="PIE_NM" class="java.lang.String"/> <field name="RATIO" class="java.math.BigDecimal"/> ... <pieDataset> <keyExpression><![CDATA[$P{PIE_NM}]]></keyExpression> <valueExpression><![CDATA[$P{RATIO}]]></valueExpression> <labelExpression><![CDATA[$P{PIE_NM}]]></labelExpression> </pieDataset> the followings are the field values PIE_NM RATIO 95 Automatics 4 Manual 1 FAIL what is expected to see from subreport was 95(Automatics)/4(Manual)/1(FAIL) ratio pie chart, but what I actually got was 100(Automatics) I guess this is becuase the parameter cannot send Array or List Object... so it carried only one value - Automatics is that correct? if so, how can I pass field list value to subreport as a parameter? Thanks in advance. and sorry for my bad English.
×
×
  • Create New...