JRThermometerPlot jrPlot = (JRThermometerPlot)getPlot();
// Create the plot that will hold the thermometer.
ThermometerPlot chartPlot = new ThermometerPlot((ValueDataset)getDataset());
// Build a chart around this plot
JFreeChart jfreeChart = new JFreeChart(chartPlot);
// Set the generic options
configureChart(jfreeChart, getPlot());
jfreeChart.setBackgroundPaint(ChartThemesConstants.TRANSPARENT_PAINT);
jfreeChart.setBorderVisible(false);
Range range = convertRange(jrPlot.getDataRange());
if(range != null)
{