All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.tablesaw.plotly.api.Histogram2D Maven / Gradle / Ivy

There is a newer version: 0.43.3
Show newest version
package tech.tablesaw.plotly.api;

import tech.tablesaw.api.Table;
import tech.tablesaw.plotly.components.Figure;
import tech.tablesaw.plotly.components.Layout;
import tech.tablesaw.plotly.traces.Histogram2DTrace;

public class Histogram2D {

  public static Figure create(String title, Table table, String xCol, String yCol) {
    Histogram2DTrace trace =
        Histogram2DTrace.builder(table.numberColumn(xCol), table.numberColumn(yCol)).build();

    return new Figure(Layout.builder(title, xCol, yCol).build(), trace);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy