public interface Chart<P>
This is open source software released under the Apache 2.0 License
| Modifier and Type | Field and Description |
|---|---|
static ChartFactoryProxy |
factory |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(JsCode jsCode,
String functionName,
String divId)
Writes a Javascript function with the name specified that will render this chart
|
static ChartFactoryProxy |
create()
Returns a reference to the chart factory instance
|
ChartLegend |
legend()
Returns the chart legend control for this chart
|
ChartOptions |
options()
Returns the options interface for this chart
|
P |
plot()
Returns the plot interface for this chart
|
Chart |
show()
Shows this chart on an appropriate output device
|
Chart |
show(int width,
int height)
Shows this chart on an appropriate output device
|
static void |
show(int columns,
Iterable<Chart<?>> charts)
Displays the collection of charts in a grid with the number of columns specified
|
static void |
show(int columns,
Stream<Chart<?>> charts)
Displays the collection of charts in a grid with the number of columns specified
|
ChartLabel |
subtitle()
Returns the chart subtitle interface
|
ChartTheme |
theme()
Returns the theme interface for this chart
|
ChartLabel |
title()
Returns the chart title interface
|
Chart |
writerPng(File file,
int width,
int height,
boolean transparent)
Writes a PNH image of the chart to the output stream
|
Chart |
writerPng(OutputStream os,
int width,
int height,
boolean transparent)
Writes a PNH image of the chart to the output stream
|
static final ChartFactoryProxy factory
static ChartFactoryProxy create()
static void show(int columns,
Iterable<Chart<?>> charts)
columns - the number of columns for chart gridcharts - the sequence of charts to plotstatic void show(int columns,
Stream<Chart<?>> charts)
columns - the number of columns for chart gridcharts - the sequence of charts to plotP plot()
ChartLabel title()
ChartLabel subtitle()
ChartLegend legend()
ChartTheme theme()
ChartOptions options()
Chart show()
Chart show(int width, int height)
width - the width for chartheight - the height for chartChart writerPng(File file, int width, int height, boolean transparent)
file - the file referencewidth - the image widthheight - the image heighttransparent - true for a transparent backgroundChart writerPng(OutputStream os, int width, int height, boolean transparent)
os - the output streamwidth - the image widthheight - the image heighttransparent - true for a transparent backgroundvoid accept(JsCode jsCode, String functionName, String divId)
jsCode - the Javascript code generatorfunctionName - the function name for this chart's plot instructionsdivId - the ID of the div element in which to draw chartCopyright 2014-2017, Xavier Witdouck