Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This one's a little harder. Given a <code>PolarPlot</code>, you can obtain its <a href="http://www.jfree.org/jfreechart/api/javadoc/org/jfree/chart/renderer/AbstractRenderer.html" rel="nofollow noreferrer"><code>AbstractRenderer</code></a> and set the shape. For example,</p> <pre><code>PolarPlot plot = (PolarPlot) chart.getPlot(); AbstractRenderer ar = (AbstractRenderer) plot.getRenderer(); ar.setSeriesShape(0, ShapeUtilities.createDiamond(5), true); </code></pre> <p>The diamond will appear in the legend, but the <a href="http://www.jfree.org/jfreechart/api/javadoc/org/jfree/chart/renderer/DefaultPolarItemRenderer.html" rel="nofollow noreferrer"><code>DefaultPolarItemRenderer</code></a> neither renders shapes, nor provides line control. You'd have to extend the default renderer and override <code>drawSeries()</code>. <a href="http://www.jfree.org/jfreechart/api/javadoc/org/jfree/chart/renderer/xy/XYLineAndShapeRenderer.html" rel="nofollow noreferrer"><code>XYLineAndShapeRenderer</code></a> is good example for study; you can see how it's used in <a href="http://www.jfree.org/jfreechart/api/javadoc/org/jfree/chart/demo/TimeSeriesChartDemo1.html" rel="nofollow noreferrer"><code>TimeSeriesChartDemo1</code></a>.</p> <p>If this is <em>terra incognita</em> to you, I'd recommend <a href="http://www.jfree.org/jfreechart/devguide.html" rel="nofollow noreferrer"><em>The JFreeChart Developer Guide</em></a><sup>†</sup>.</p> <p><sup>†</sup><sub><em>Disclaimer: Not affiliated with Object Refinery Limited; I'm a satisfied customer and very minor contributor.</em></sub></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload