Extension of Time Series example code
package tech.tablesaw.plotly;
import tech.tablesaw.api.Table;
+import tech.tablesaw.columns.numbers.NumberColumnFormatter;
import tech.tablesaw.plotly.api.AreaPlot;
import tech.tablesaw.plotly.api.CandlestickPlot;
import tech.tablesaw.plotly.api.LinePlot;
@@ -23,6 +24,8 @@ public class TimeSeriesVisualizations {
Plot.show(AreaPlot.create("Boston Robberies by month: Jan 1966-Oct 1975", robberies, "Record", "Robberies"));
Table priceTable = Table.read().csv("../data/ohlcdata.csv");
+ priceTable.numberColumn("Volume").setPrintFormatter(NumberColumnFormatter.intsWithGrouping());
+ System.out.println(priceTable.first(5));
Plot.show(OHLCPlot.create("Prices", priceTable, "date","open", "high", "low", "close"));
Plot.show(CandlestickPlot.create("Prices", priceTable, "date","open", "high", "low", "close"));
}
