i am trying to use Xchart for generating Histogram in java, i am using the below code
Histogram histogram = new Histogram(myData, 3);
CategoryChart chart = new CategoryChartBuilder().width(800).height(600).title("Xchart Histogram").xAxisTitle("Mean").yAxisTitle("Count").build();
chart.addSeries("histogram ", histogram.getxAxisData(), histogram.getyAxisData());
but the Y-axis data(that is, the frequency) is not the correct data(i am comparing wrt histogram chart generated in excel sheet using frequency formula)
i am trying to use Xchart for generating Histogram in java, i am using the below code
but the Y-axis data(that is, the frequency) is not the correct data(i am comparing wrt histogram chart generated in excel sheet using frequency formula)