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

keth

Members
  • Posts

    5
  • Joined

  • Last visited

 Content Type 

Forum

Downloads

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Events

Profiles

Everything posted by keth

  1. keth

    Line Chart

    Hi, These days i am working on some reports which nedds graphs. In there i have a Line Chart with 2 category series. and here i am using a chart customizer class to customize the class. Is there any way to get a reference to thse two category series with in the chart customizer. i found a way fo getting a reference to the plot but not these category seriess. public class LineChartCustomizer extends JRAbstractChartCustomizer { public void customize(JFreeChart chart, JRChart jasperChart) { LineAndShapeRenderer renderer = (LineAndShapeRenderer) chart.getCategoryPlot().getRenderer(); //renderer.setSeriesPaint(1, Color.green); //renderer.setSeriesPaint(4, Color.orange); // get a reference to the plot for further customisation... final CategoryPlot plot = chart.getCategoryPlot(); Do you guys have any idea about this. appreciate your help Thanks, Keth
  2. keth

    Charts

    Hi Matt, Thanks for the reply. i was able to solve the problem. i posting it here so others can refer it public class LineChartCustomizer extends JRAbstractChartCustomizer { public void customize(JFreeChart chart, JRChart jasperChart) { LineAndShapeRenderer renderer = (LineAndShapeRenderer) chart.getCategoryPlot().getRenderer(); renderer.setSeriesPaint(1, Color.green); renderer.setSeriesPaint(4, Color.orange); // get a reference to the plot for further customisation... final CategoryPlot plot = chart.getCategoryPlot(); // change the auto tick unit selection to integer units only... final NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis(); rangeAxis.setTickUnit(new NumberTickUnit(1)); rangeAxis.setUpperBound(24); chart.setTitle("Setting the title "); } } Your blog post post was very helpful for achive this. Thanks keth
  3. keth

    Charts

    Hi, In my Current project i need to create a Line Graph. i am using Jasper 3.5. But the problem is i can not number my Y Axis continuously. after i define min and max values for Y axis it shows only the range of values instead of continous numbering though the Axis.(it shows 0,5,10,15 instead of 1,2,3,4,5,6,7,8...etc). Can any one help me to solve this? Can we use chart customizer to solve this? any help greatly appreciate Thanks, Keth
  4. Hi All, With your help i was able Create a line chat with Min max values for X Axis. special thanx tio Matt. i used jasper 3.5 and ireport 3.5. Now i have one other question. Even we can define min and max values it doesn't show the whole seris of Numbers from min to max. it shows a range such as 0, 5,10,15..... instead of 1,2,3,4,5,6...... is there any way to accomplish this. greatly appreciate your help Thanks Keth
  5. keth

    Line Chart

    Hi All, i am using ireport version 3.1.0 and jasper 3.0 to create reports. These Days i am Creating a report with Line chart. i need to number the Y Axis from 0 - 50. Can we control numbering on the Y axis. currently it plot the smallest data point at the lowest point and the largest data point at the highest point i want to number the Y Axis 0,1,2, ...50. Can you please help me to fix this issue.Appreciate your help Thanks Kelth
×
×
  • Create New...