@@ -0,0 +1,1784 @@
+package org.knowm.xchart.standalone.issues;%0A%0Aimport org.knowm.xchart.CategoryChart;%0Aimport org.knowm.xchart.CategoryChartBuilder;%0Aimport org.knowm.xchart.CategorySeries;%0Aimport org.knowm.xchart.SwingWrapper;%0Aimport org.knowm.xchart.style.Styler;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0A/**%0A * Logarithmic Y-Axis%0A * Demonstrates the following:%0A * %3Cul%3E%0A * %3Cli%3ELogarithmic Y-Axis%0A * %3Cli%3EBuilding a Chart with ChartBuilder%0A * %3Cli%3EPlace legend at Inside-NW position%0A */%0Apublic class TestForIssue249 %7B%0A%0A  public static void main(String%5B%5D args) %7B%0A%0A    TestForIssue249 exampleChart = new TestForIssue249();%0A    CategoryChart chart = exampleChart.getChart();%0A    new SwingWrapper%3CCategoryChart%3E(chart).displayChart();%0A  %7D%0A%0A  public CategoryChart getChart() %7B%0A%0A    // generates Log data%0A    List%3CInteger%3E xData = new ArrayList%3CInteger%3E();%0A    List%3CDouble%3E yData = new ArrayList%3CDouble%3E();%0A    for (int i = -3; i %3C= 3; i++) %7B%0A      xData.add(i);%0A      yData.add(Math.pow(10, i));%0A    %7D%0A%0A    // Create Chart%0A    //    XYChart chart = new XYChartBuilder().width(800).height(600).title(%22Powers of Ten%22).xAxisTitle(%22Power%22).yAxisTitle(%22Value%22).build();%0A    CategoryChart chart = new CategoryChartBuilder().width(800).height(600).title(%22Powers of Ten%22).xAxisTitle(%22Power%22).yAxisTitle(%22Value%22).build();%0A%0A    // Customize Chart%0A    chart.getStyler().setChartTitleVisible(true);%0A    chart.getStyler().setLegendPosition(Styler.LegendPosition.InsideNW);%0A    chart.getStyler().setYAxisLogarithmic(true);%0A%0A    chart.getStyler().setYAxisMin(0.001);%0A    chart.getStyler().setYAxisMax(1000.0);%0A%0A    // Series%0A    CategorySeries series = chart.addSeries(%2210%5Ex%22, xData, yData);%0A    series.setChartCategorySeriesRenderStyle(CategorySeries.CategorySeriesRenderStyle.Scatter);%0A%0A    return chart;%0A  %7D%0A%7D%0A

test class for issue #249