#305 BarRenderer3D and setItemLabelsVisible not working in 0.9.14

closed-fixed
General (896)
5
2003-11-24
2003-11-21
No

In upgrading from 0.9.11 to 0.9.14, I am seeing a
problem with displaying item labels on 3D bars.

Under 0.9.11, the labels displayed for the
BarRenderer3D. After the upgrade, they don't. Things
work fine for the straight BarRenderer in both
versions, which BarRenderer3D inherits from. Here is
the code:

Code:
CategoryAxis categoryAxis = new
CategoryAxis3D(categoryAxisLabel);
ValueAxis valueAxis = new
NumberAxis3D(valueAxisLabel);
valueAxis.setUpperMargin(0.25);

BarRenderer3D renderer = new BarRenderer3D();
if (tooltips) {
renderer.setItemLabelGenerator(new
StandardCategoryItemLabelGenerator());
}
if (urls) {
renderer.setItemURLGenerator(urlGenerator);
}
renderer.setItemLabelsVisible(true);
renderer.setItemLabelAnchorOffset(9.0);

CategoryPlot plot = new CategoryPlot(data,
categoryAxis, valueAxis, renderer);
plot.setOrientation(orientation);
plot.setForegroundAlpha(0.75f);

// Override the default colors
plot.setDrawingSupplier(new CustomDrawingSupplier());

JFreeChart chart = new JFreeChart(title,
titleFont, plot, legend);

When I step through things in debug, I see
BarRenderer3D.drawVerticalItem go into
BarRenderer.drawItemLabel and draw the label, but
nothing displays.

Discussion

  • David Gilbert

    David Gilbert - 2003-11-24
    • labels: --> General
    • assigned_to: nobody --> mungady
    • status: open --> closed-fixed
     
  • David Gilbert

    David Gilbert - 2003-11-24

    Logged In: YES
    user_id=112975

    Thanks for the report. The bug is fixed for version 0.9.15,
    which I plan to release on Friday.

    Regards,

    Dave Gilbert
    JFreeChart Project Leader

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks