Skip to content

Y-axis data in Histogram is not correct #205

@Ananthareddyn4

Description

@Ananthareddyn4

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions