@@ -0,0 +1,1856 @@
+package org.knowm.xchart.standalone.issues;%0A%0Aimport java.awt.Font;%0Aimport java.text.DecimalFormat;%0Aimport java.text.ParseException;%0A%0Aimport org.knowm.xchart.BubbleChart;%0Aimport org.knowm.xchart.BubbleChartBuilder;%0Aimport org.knowm.xchart.BubbleSeries;%0Aimport org.knowm.xchart.SwingWrapper;%0Aimport org.knowm.xchart.style.BubbleStyler;%0Aimport org.knowm.xchart.style.Styler;%0A%0Apublic class TestForIssue545 %7B%0A%0A%0A  public static void main(String%5B%5D args) throws ParseException %7B%0A%0A    BubbleChart chart = getBubbleChart();%0A    new SwingWrapper(chart).displayChart();%0A  %7D%0A%0A  public static BubbleChart getBubbleChart() %7B%0A    double%5B%5D data = new double%5B%5D %7B1298.0, 0.0215, 279.0%7D;%0A%0A    BubbleChart chart =%0A        new BubbleChartBuilder()%0A            .width(800)%0A            .height(600)%0A            .title(%22Some title%22)%0A            .xAxisTitle(%22Volume%22)%0A            .yAxisTitle(%22Rate%22)%0A            .build();%0A    setBubbleStyler(chart);%0A    BubbleSeries bubbleSeries =%0A        chart.addSeries(%0A            %22serieName%22, new double%5B%5D %7Bdata%5B0%5D%7D, new double%5B%5D %7Bdata%5B1%5D%7D, new double%5B%5D %7Bdata%5B2%5D%7D);%0A    bubbleSeries.setCustomToolTips(true);%0A    String tooltip =%0A        new DecimalFormat(%22#%25%22).format(data%5B1%5D) + %22 (%22 + ((int) data%5B2%5D) + %22/%22 + ((int) data%5B0%5D) + %22)%22;%0A%0A    bubbleSeries.setToolTips(new String%5B%5D %7Btooltip%7D);%0A%0A    return chart;%0A  %7D%0A%0A  public static void setBubbleStyler(BubbleChart chart) %7B%0A%0A    BubbleStyler styler = chart.getStyler();%0A    styler.setLegendPosition(Styler.CardinalPosition.InsideSW);%0A    styler.setLegendLayout(Styler.LegendLayout.Horizontal);%0A    styler.setYAxisDecimalPattern(%22%25%22);%0A    styler.setXAxisTickMarkSpacingHint(50);%0A    styler.setAntiAlias(true);%0A    styler.setToolTipsEnabled(true);%0A    styler.setToolTipsAlwaysVisible(true);%0A    styler.setHasAnnotations(true);%0A    styler.setToolTipFont(new Font(%22SansSerif%22, Font.PLAIN, 14));%0A  %7D%0A%7D%0A

test code for issue #545