package picta
- Alphabetic
- Public
- Protected
Type Members
- final case class Axis(type: AxisType, position: Opt[Int] = Blank, title: Opt[String] = Blank, side: Opt[Side] = Blank, overlaying: Opt[Axis] = Blank, domain: Opt[(Double, Double)] = Blank, range: Opt[(Double, Double)] = Blank, tickformat: Opt[String] = Blank, logarithmic: Boolean = false, reversed: Boolean = false, showgrid: Boolean = true, zeroline: Boolean = false, showline: Boolean = false, start_tick: Opt[Double] = Blank, tick_gap: Opt[Double] = Blank) extends Component with Product with Serializable
A case class representing an axis.
- sealed trait AxisType extends AnyRef
Specifies the axis direction.
- final case class Canvas(rows: Int = 1, columns: Int = 1, grid: Opt[Array[Chart]] = Blank) extends Product with Serializable
This is the top level object which renders and plots the charts.
This is the top level object which renders and plots the charts. All other Components sit inside it.
- rows
: Number of rows in the Canvas subplot grid.
- columns
: Number of columns in the Canvas subplot grid.
- grid
: The actual grid containing the chart data.
- final case class Chart(series: List[Series] = Nil, layout: ChartLayout = ChartLayout(), config: Config = Config(), animated: Boolean = false, transition_duration: Int = 100, animate_multiple_series: Boolean = false, id: String = generateRandomText()) extends Component with Product with Serializable
This is a single chart that renders in a slot in the Canvas grid.
This is a single chart that renders in a slot in the Canvas grid.
- series
: A list of series we wish to plot on the page.
- layout
: This specifies how the chart will be laid out.
- config
: This configures the chart.
- animated
: This specifies whether the chart is animated.
- transition_duration
: If the chart is animated, this specifies the duration between the frames.
- id
: This is used by the Picta library internally for book-keeping purposes.
- final case class ChartLayout(title: Opt[String] = Blank, axes: Opt[List[Axis]] = Empty, legend: Opt[Legend] = Blank, auto_size: Opt[Boolean] = Blank, margin: Opt[Margin] = Blank, map_options: Opt[MapOption] = Blank, multi_chart: Opt[MultiChart] = Blank, hover_distance: Opt[Int] = Blank, show_legend: Boolean = true, hover_mode: HoverMode = CLOSEST, height: Int = 550, width: Int = 600, XYZ: Boolean = false) extends Component with Product with Serializable
Specifies the layout for the chart.
- final case class Config(responsive: Boolean = true, scrollZoom: Boolean = true) extends Component with Product with Serializable
A class that allows the user to specify chart configuration options.
A class that allows the user to specify chart configuration options.
- responsive
: specify whether the chart should be responsive to window size
- scrollZoom
: specify whether mousewheel or two-finger scroll zooms the plot
- trait HoverMode extends AnyRef
Determines how the hover mode interactions behave.
- final case class LatAxis(range: List[Double], showgrid: Boolean = true, dtick: Int = 10) extends MapAxis with Product with Serializable
- final case class LongAxis(range: List[Double], showgrid: Boolean = true, dtick: Int = 10) extends MapAxis with Product with Serializable
- final case class Map[T](lat: List[Double] = Nil, lon: List[Double] = Nil, name: String = generateRandomText, style: Opt[Style] = Blank, line: Opt[Line[T]] = Blank)(implicit evidence$1: Color[T]) extends Series with Product with Serializable
This sets the Series for a Map chart specifically.
This sets the Series for a Map chart specifically.
- lat
: This is the list of latitudes.
- lon
: This is the list of longitudes.
- name
: This sets the series name.
- style
: This sets the series mode.
- line
: This configures the line for the Map.
- trait MapOption extends Component
- final case class MapOptions[T0, T1](region: Opt[Region] = Blank, landcolor: Opt[T0] = Blank, lakecolor: Opt[T1] = Blank, projection: Opt[Projection] = Blank, lataxis: Opt[LatAxis] = Blank, longaxis: Opt[LongAxis] = Blank, showland: Boolean = true, showlakes: Boolean = true, resolution: Int = 50, coastlinewidth: Int = 2)(implicit evidence$1: Color[T0], evidence$2: Color[T1]) extends MapOption with Product with Serializable
This is configures the Chart for a Map.
This is configures the Chart for a Map.
- region
: This determines the geographic scope for the map.
- landcolor
: Specifcies the landcolor.
- lakecolor
: Specifies the lakecolor.
- projection
: TODO
- lataxis
: This is the component that configures the lataxis.
- longaxis
: This is the component that configures the longaxis.
- showland
: Specifies whether the land is shown on the map.
- showlakes
: Specifies whether lakes are shown on the map.
- resolution
: This sets the resolution.
- coastlinewidth
: Specifies the coast line width on the map.
- sealed trait Orientation extends AnyRef
Specifies the direction of orientation.
Specifies the direction of orientation. An example use case is specifying whether a histogram is displayed vertically or horizontally.
- final case class PieElement(value: Double, name: String) extends Component with Product with Serializable
Represents a slice of a pie chart, with a value and name pair.
Represents a slice of a pie chart, with a value and name pair. Can be composed into a Pie chart.
- value
: Value for the slice.
- name
: Name for the particular slice.
- sealed trait Projection extends AnyRef
Sets how the projection is calculated on a map.
- case class RGB(r: Double, g: Double, b: Double) extends Product with Serializable
This case class represents an RGB color.
- case class RGBA(r: Double, g: Double, b: Double, a: Double) extends Product with Serializable
This case class represents and RGBA color
- sealed trait Region extends AnyRef
Sets the region for a map chart.
- sealed trait Side extends AnyRef
Enum type for specifying a side.
- sealed trait Style extends AnyRef
ENUM for series markers
- final case class XY[T0, T1, T2, T3](x: List[T0], y: Opt[List[T1]] = Empty, name: String = generateRandomText, type: XYType = SCATTER, style: Opt[Style] = Blank, xaxis: Opt[Axis] = Blank, yaxis: Opt[Axis] = Blank, marker: Opt[Marker[T2, T3]] = Blank, hist_options: Opt[HistOptions] = Blank, hist2d_options: Opt[Hist2dOptions] = Blank, xerror: Opt[XError] = Blank, yerror: Opt[YError] = Blank, text: Opt[List[String]] = Empty)(implicit evidence$1: Serializer[T0], evidence$2: Serializer[T1], evidence$3: Color[T2], evidence$4: Color[T3]) extends Series with Product with Serializable
- x
: The data series for the first dimension.
- y
: The data series for the second dimension.
- name
: The name for the series.
- style
: This specifies the style for the marker.
- xaxis
: This specifies the xaxis that the series maps to.
- yaxis
: This specifies the yaxis that the series maps to.
- marker
: This is a Marker component that sets a range of marker-specific options.
- hist_options
: This is a HistOptions component that sets a range of histogram specific options
- hist2d_options
: This is a Hist2dOptions component that sets 2D histogram specific options.
- xerror
: This specifies the behaviour of the x error bar.
- yerror
: This specifies the behaviour of the y error bar.
- final case class XYZ[T0, T1, T2](x: Opt[List[T0]] = Empty, y: Opt[List[T1]] = Empty, z: List[T2], name: String = generateRandomText, type: XYZType = SCATTER3D, style: Opt[Style] = Blank, n: Opt[Int] = Blank, colorbar_options: Opt[ColorBar] = Blank)(implicit evidence$1: Serializer[T0], evidence$2: Serializer[T1], evidence$3: Serializer[T2]) extends Series with Product with Serializable
* A Series for a 3d chart.
- sealed trait XYZType extends AnyRef
ENUM for the XYZ chart series types
Value Members
- case object AFRICA extends Region with Product with Serializable
- case object AITOFF extends Projection with Product with Serializable
- case object ALBERS_USA extends Projection with Product with Serializable
- case object ASIA extends Region with Product with Serializable
- case object AZIMUTHAL_EQUAL_AREA extends Projection with Product with Serializable
- case object AZIMUTHAL_EQUIDISTANT extends Projection with Product with Serializable
- object Axis extends Serializable
- case object BAR extends XYType with Product with Serializable
- case object BOTTOM_SIDE extends Side with Product with Serializable
- case object CLOSEST extends HoverMode with Product with Serializable
Hover label appears for the closest data point.
- case object CLosest_Y extends HoverMode with Product with Serializable
Hover label appears for the closest data point in the y direction.
- case object CONIC_CONFORMAL extends Projection with Product with Serializable
- case object CONIC_EQUAL_AREA extends Projection with Product with Serializable
- case object CONIC_EQUAL_EQUIDISTANT extends Projection with Product with Serializable
- case object CONTOUR extends XYZType with Product with Serializable
- case object Closest_X extends HoverMode with Product with Serializable
Hover label appears for the closest data point in the x direction.
- object ColorOptions
This object creates a priority implicit which allows either a List[String] or List[Double] to be added as chart components.
- case object ECKERT4 extends Projection with Product with Serializable
- case object EQURECTANGULAR extends Projection with Product with Serializable
- case object EUROPE extends Region with Product with Serializable
- case object FALSE extends HoverMode with Product with Serializable
Hover label are disabled.
- case object GNOMONIC extends Projection with Product with Serializable
- case object HAMMER extends Projection with Product with Serializable
- case object HEATMAP extends XYZType with Product with Serializable
- case object HISTOGRAM extends XYType with Product with Serializable
- case object HISTOGRAM2DCONTOUR extends XYType with Product with Serializable
- case object HORIZONTAL extends Orientation with Product with Serializable
- object IO
Contains helper methods to work with common IO tasks.
- case object KAVRAYSKIY7 extends Projection with Product with Serializable
- case object LEFT_SIDE extends Side with Product with Serializable
- case object LINES extends Style with Product with Serializable
- case object LINES_MARKERS extends Style with Product with Serializable
- case object LINES_MARKERS_TEXT extends Style with Product with Serializable
- case object LINES_TEXT extends Style with Product with Serializable
- case object MARKERS extends Style with Product with Serializable
- case object MARKERS_TEXT extends Style with Product with Serializable
- case object MERCATOR extends Projection with Product with Serializable
- case object MILLER extends Projection with Product with Serializable
- case object MOLLWEIDE extends Projection with Product with Serializable
- case object NATURAL_EARTH extends Projection with Product with Serializable
- case object NONE extends Style with Product with Serializable
- case object NORTH_AMERICA extends Region with Product with Serializable
- case object ORTHOGRAPHIC extends Projection with Product with Serializable
- case object PIE extends XYType with Product with Serializable
- case object RIGHT_SIDE extends Side with Product with Serializable
- case object ROBINSON extends Projection with Product with Serializable
- case object SCATTER extends XYType with Product with Serializable
- case object SCATTER3D extends XYZType with Product with Serializable
- case object SCATTERGL extends XYType with Product with Serializable
- case object SINUSOIDAL extends Projection with Product with Serializable
- case object SOUTH_AMERICA extends Region with Product with Serializable
- case object STEROGRAPHIC extends Projection with Product with Serializable
- case object SURFACE extends XYZType with Product with Serializable
- object SymbolShape
Specifies the symbol shape that is displayed on the chart.
- case object TEXT extends Style with Product with Serializable
- case object TOP_SIDE extends Side with Product with Serializable
- case object TRANSVERSE_MERCATOR extends Projection with Product with Serializable
- case object USA extends Region with Product with Serializable
- case object VERTICAL extends Orientation with Product with Serializable
- case object WINKEL_TRIPEL extends Projection with Product with Serializable
- case object WORLD extends Region with Product with Serializable
- case object X extends AxisType with Product with Serializable
- object XY extends Serializable
- case object X_UNIFIED extends HoverMode with Product with Serializable
Support to be added .
- case object Y extends AxisType with Product with Serializable
- case object Y_UNIFIED extends HoverMode with Product with Serializable
- case object Z extends AxisType with Product with Serializable
This is the API documentation for Picta, a graphing library for Scala.
More detailed documentation about using the library can be found at https://acse-fk4517.github.io/picta-docs/.
Click on the following link to get started with the API docs: https://acse-fk4517.github.io/picta-docs/pages/api/org/carbonateresearch/picta/index.html