Package io.deephaven.plot
Interface Chart
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
Figure
- All Known Implementing Classes:
ChartImpl
,FigureImpl
,FigureWidget
,ScatterPlotMatrix
Represents a graph. Contains
Axes
objects.-
Method Summary
Modifier and TypeMethodDescriptionaxes
(int id) Gets an axes.Gets an axes.chartRemoveSeries
(String... removeSeriesNames) Removes the series with the specifiednames
from this Chart.default Chart
chartTitle
(boolean showColumnNamesInTitle, Table t, String... titleColumns) Sets the title of this Chart.default Chart
chartTitle
(boolean showColumnNamesInTitle, SelectableDataSet sds, String... titleColumns) Sets the title of this Chart.default Chart
chartTitle
(Table t, String... titleColumns) Sets the title of this Chart.default Chart
chartTitle
(SelectableDataSet sds, String... titleColumns) Sets the title of this Chart.chartTitle
(String title) Sets the title of this Chart.chartTitle
(String titleFormat, Table t, String... titleColumns) Sets the title of this Chart.chartTitle
(String titleFormat, SelectableDataSet sds, String... titleColumns) Sets the title of this Chart.chartTitleColor
(Paint color) Sets the color of this Chart's title.chartTitleColor
(String color) Sets the color of this Chart's title.chartTitleFont
(Font font) Sets the font of this Chart's title.chartTitleFont
(String family, String style, int size) Sets the font of this Chart's title.colSpan
(int colSpan) Sets the size of this Chart within the grid of the figure.gridLinesVisible
(boolean gridVisible) Sets whether the Chart has grid lines.legendColor
(Paint color) Sets the color of the text inside the Chart's legend.legendColor
(String color) Sets the color of the text inside the Chart's legend.legendFont
(Font font) Sets the font of this Chart's legend.legendFont
(String family, String style, int size) Sets the font of this Chart's legend.legendVisible
(boolean visible) Sets whether the Chart's legend is shown or hidden.maxRowsInTitle
(int maxTitleRows) Sets the maximum row values that will be shown in title.newAxes()
Creates newAxes
on this Chart.newAxes
(int dim) Creates newAxes
on this Chart.Creates newAxes
on this Chart.Creates newAxes
on this Chart.plotOrientation
(String orientation) Sets the orientation of plots in this Chart.rowSpan
(int rowSpan) Sets the size of this Chart within the grid of the figure.span
(int rowSpan, int colSpan) Sets the size of this Chart within the grid of the figure.xGridLinesVisible
(boolean xGridVisible) Sets whether the Chart has grid lines in the x direction.yGridLinesVisible
(boolean yGridVisible) Sets whether the Chart has grid lines in the y direction
-
Method Details
-
chartRemoveSeries
Removes the series with the specifiednames
from this Chart.- Parameters:
removeSeriesNames
- series names- Returns:
- this Chart
-
chartTitle
Sets the title of this Chart.- Parameters:
title
- title- Returns:
- this
Chart
-
chartTitle
Sets the title of this Chart.- Parameters:
t
- tabletitleColumns
- columns to include in the chart title- Returns:
- this
Chart
with the title set to display comma-separated values from the table
-
chartTitle
Sets the title of this Chart.- Parameters:
showColumnNamesInTitle
- Whether to show column names in title. If this is true, the title format will include the column name before the comma separated values; otherwise only the comma separated values will be included.t
- tabletitleColumns
- columns to include in the chart title- Returns:
- this
Chart
with the title set to display comma-separated values from the table
-
chartTitle
Sets the title of this Chart.- Parameters:
titleFormat
- aMessageFormat
format string for the chart titlet
- tabletitleColumns
- columns to include in the chart title- Returns:
- this
Chart
with the title set to display values from the table
-
chartTitle
Sets the title of this Chart.- Parameters:
sds
- selectable data set (e.g. OneClick table)titleColumns
- columns to include in the chart title- Returns:
- this
Chart
with the title set to display comma-separated values from the table
-
chartTitle
default Chart chartTitle(boolean showColumnNamesInTitle, SelectableDataSet sds, String... titleColumns) Sets the title of this Chart.- Parameters:
showColumnNamesInTitle
- Whether to show column names in title. If this is true, the title format will include the column name before the comma separated values; otherwise only the comma separated values will be included.sds
- selectable data set (e.g. OneClick table)titleColumns
- columns to include in the chart title- Returns:
- this
Chart
with the title set to display comma-separated values from the table
-
chartTitle
Sets the title of this Chart.- Parameters:
titleFormat
- aMessageFormat
format string for the chart titlesds
- selectable data set (e.g. OneClick table)titleColumns
- columns to include in the chart title- Returns:
- this
Chart
with the title set to display values from the table
-
maxRowsInTitle
Sets the maximum row values that will be shown in title.If total rows <
maxRowsCount
, then all the values will be shown separated by comma, otherwise justmaxRowsCount
values will be shown along with ellipsis.
ifmaxRowsCount
is < 0, all values will be shown.
ifmaxRowsCount
is 0, then just first value will be shown without ellipsis.
The default is 0.- Parameters:
maxTitleRows
- maximum number of row values to show in chart title- Returns:
- this Chart
-
chartTitleFont
Sets the font of this Chart's title.- Parameters:
font
- font- Returns:
- this Chart
-
chartTitleFont
Sets the font of this Chart's title.- Parameters:
family
- font family; if null, set to Arialstyle
- font style; if null, set toFont.FontStyle
PLAINsize
- the point size of the Font- Returns:
- this Chart
-
chartTitleColor
Sets the color of this Chart's title.- Parameters:
color
- color- Returns:
- this Chart
-
chartTitleColor
Sets the color of this Chart's title.- Parameters:
color
- color- Returns:
- this Chart
-
gridLinesVisible
Sets whether the Chart has grid lines.- Parameters:
gridVisible
- whether the Chart's grid lines are drawn- Returns:
- this Chart
-
xGridLinesVisible
Sets whether the Chart has grid lines in the x direction.- Parameters:
xGridVisible
- whether the Chart's x grid lines are drawn- Returns:
- this Chart
-
yGridLinesVisible
Sets whether the Chart has grid lines in the y direction- Parameters:
yGridVisible
- whether the Chart's y grid lines are drawn- Returns:
- this Chart
-
legendVisible
Sets whether the Chart's legend is shown or hidden.- Parameters:
visible
- whether the Chart's legend is shown or hidden- Returns:
- this Chart
-
legendFont
Sets the font of this Chart's legend.- Parameters:
font
- font- Returns:
- this Chart
-
legendFont
Sets the font of this Chart's legend.- Parameters:
family
- font family; if null, set to Arialstyle
- font style; if null, set toFont.FontStyle
PLAINsize
- the point size of the Font- Returns:
- this Chart
-
legendColor
Sets the color of the text inside the Chart's legend.- Parameters:
color
- color- Returns:
- this Chart
-
legendColor
Sets the color of the text inside the Chart's legend.- Parameters:
color
- color- Returns:
- this Chart
-
span
Sets the size of this Chart within the grid of the figure.- Parameters:
rowSpan
- how many rows tallcolSpan
- how many columns wide- Returns:
- this Chart
-
colSpan
Sets the size of this Chart within the grid of the figure.- Parameters:
colSpan
- how many columns wide- Returns:
- this Chart
-
rowSpan
Sets the size of this Chart within the grid of the figure.- Parameters:
rowSpan
- how many rows tall- Returns:
- this Chart
-
newAxes
Axes newAxes()Creates newAxes
on this Chart.- Returns:
- newly created
Axes
with dimension 2 on this Chart
-
newAxes
Creates newAxes
on this Chart.- Parameters:
name
- name for the axes- Returns:
- newly created
Axes
with dimension 2 on this Chart
-
newAxes
Creates newAxes
on this Chart. -
newAxes
Creates newAxes
on this Chart. -
axes
Gets an axes.- Parameters:
id
- axes id.- Returns:
- selected axes.
-
axes
Gets an axes.- Parameters:
name
- axes name.- Returns:
- selected axes.
-
plotOrientation
Sets the orientation of plots in this Chart.- Parameters:
orientation
- plot orientation- Returns:
- this Chart
-