public class PieTrace extends AbstractTrace
Modifier and Type | Class and Description |
---|---|
static class |
PieTrace.PieBuilder |
AbstractTrace.Visibility
DEFAULT_OPACITY, DEFAULT_VISIBILITY, engine, type
Modifier and Type | Method and Description |
---|---|
String |
asJavascript(int i)
Returns a string of Javascript code that can be used to display the trace in a browser
|
static PieTrace.PieBuilder |
builder(tech.tablesaw.columns.Column<?> labels,
tech.tablesaw.api.NumericColumn<? extends Number> values) |
static PieTrace.PieBuilder |
builder(Object[] labels,
double[] values) |
getContext, hoverLabel, name, showLegend, toString
public String asJavascript(int i)
Trace
i
- A unique number for this trace in the enclosing figurepublic static PieTrace.PieBuilder builder(Object[] labels, double[] values)
public static PieTrace.PieBuilder builder(tech.tablesaw.columns.Column<?> labels, tech.tablesaw.api.NumericColumn<? extends Number> values)
Copyright © 2020. All rights reserved.