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

line chart qestion -- display data value


itchytoes

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

You could achieve this via a chart customizer that would do something like

Code:

CategoryPlot categoryPlot = (CategoryPlot) chart.getPlot();
LineAndShapeRenderer lineRenderer = (LineAndShapeRenderer) categoryPlot.getRenderer();
lineRenderer.setBaseItemLabelGenerator(new StandardCategoryItemLabelGenerator());
lineRenderer.setItemLabelsVisible(true);

 

Looking at the JR sources, I see that we are not using the category datset label expressions for line charts. Doing that would make sense, and if you think we should do it please log a feature request [url=http://jasperforge.org/sf/tracker/do/listArtifacts/projects.jasperreports/tracker.feature_requests]here.

 

Regards,

Lucian

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...