Wt: Charts (Wt::Chart)

Wt 4.10.4

Loading...
Searching...
No Matches
Classes | Typedefs | Enumerations
Charts (Wt::Chart)

A charting library implemented using the Wt Painting system. More...

## Classes
class | Wt::Chart::WAbstractChart
| Abstract base class for MVC-based charts. More...
class | Wt::Chart::WAbstractChartModel
| An abstract model for use with Wt's charts. More...
class | Wt::Chart::WAbstractColorMap
| Maps numerical values to colors. More...
class | Wt::Chart::WAbstractDataSeries3D
| Abstract base class for dataseries that can be drawn on a WCartesian3DChart. More...
class | Wt::Chart::WAbstractGridData
| Class representing grid-based data for on a 3D chart. More...
class | Wt::Chart::WAxis
| Class which represents an axis of a cartesian chart. More...
class | Wt::Chart::WAxisSliderWidget
| A widget for selecting an X axis range to display on an associated WCartesianChart. More...
class | Wt::Chart::WCartesian3DChart
| A 3D Cartesian chart. More...
class | Wt::Chart::SeriesIterator
| Abstract base class for iterating over series data in a chart. More...
class | Wt::Chart::WCartesianChart
| A cartesian chart. More...
class | Wt::Chart::WChartPalette
| Abstract base class for styling rendered data series in charts. More...
class | Wt::Chart::WDataSeries
| A single data series in a cartesian chart. More...
class | Wt::Chart::WEquidistantGridData
| Class representing grid-based data for on a 3D chart. More...
class | Wt::Chart::WGridData
| Class representing grid-based data for a 3D chart. More...
class | Wt::Chart::WPieChart
| A pie chart. More...
class | Wt::Chart::WScatterData
| Class representing a collection of points for on a 3D chart. More...
class | Wt::Chart::WSelection
| Represents a selection on a chart. More...
class | Wt::Chart::WStandardChartProxyModel
| A WAbstractChartModel implementation that wraps a WAbstractItemModel. More...
class | Wt::Chart::WStandardPalette
| Standard styling for rendering series in charts. More...

## Typedefs
typedef std::map< WFlags< KeyboardModifier >, InteractiveAction > | Wt::Chart::WheelActions
| A map of mouse wheel actions for interactive charts, indexed by WFlags<KeyboardModifier>

## Enumerations
enum class | Wt::Chart::Series3DType { Wt::Chart::Series3DType::Point , Wt::Chart::Series3DType::Surface , Wt::Chart::Series3DType::Bar }
| Enumeration with the possible representations of a WAbstractGridData. More...
enum class | Wt::Chart::Axis { Wt::Chart::Axis::X = 0 , Wt::Chart::Axis::Y = 1 , Wt::Chart::Axis::Y1 = Y , Wt::Chart::Axis::Y2 = 2 , Wt::Chart::Axis::Ordinate = Y , Wt::Chart::Axis::X3D = 0 , Wt::Chart::Axis::Y3D = 3 , Wt::Chart::Axis::Z3D = 1 }
| Enumeration that indicates a chart axis. More...
enum class | Wt::Chart::AxisValue { Wt::Chart::AxisValue::Minimum = 0x1 , Wt::Chart::AxisValue::Maximum = 0x2 , Wt::Chart::AxisValue::Zero = 0x4 , Wt::Chart::AxisValue::Both = 0x8 }
| Enumeration that indicates a logical location for an axis. More...
enum class | Wt::Chart::AxisScale { Wt::Chart::AxisScale::Discrete = 0 , Wt::Chart::AxisScale::Linear = 1 , Wt::Chart::AxisScale::Log = 2 , Wt::Chart::AxisScale::Date = 3 , Wt::Chart::AxisScale::DateTime = 4 }
| Enumeration that indicates a scale for an axis. More...
enum class | Wt::Chart::InteractiveAction { Wt::Chart::InteractiveAction::ZoomX , Wt::Chart::InteractiveAction::ZoomY , Wt::Chart::InteractiveAction::ZoomXY , Wt::Chart::InteractiveAction::ZoomMatching , Wt::Chart::InteractiveAction::PanX , Wt::Chart::InteractiveAction::PanY , Wt::Chart::InteractiveAction::PanMatching }
| Enumeration of mouse wheel actions for interactive charts. More...
enum class | Wt::Chart::SeriesType { Wt::Chart::SeriesType::Point , Wt::Chart::SeriesType::Line , Wt::Chart::SeriesType::Curve , Wt::Chart::SeriesType::Bar }
| Enumeration that specifies the type of a chart series. More...
enum class | Wt::Chart::MarkerType { Wt::Chart::MarkerType::None , Wt::Chart::MarkerType::Square , Wt::Chart::MarkerType::Circle , Wt::Chart::MarkerType::Cross , Wt::Chart::MarkerType::XCross , Wt::Chart::MarkerType::Triangle , Wt::Chart::MarkerType::Custom , Wt::Chart::MarkerType::Star , Wt::Chart::MarkerType::InvertedTriangle , Wt::Chart::MarkerType::Asterisk , Wt::Chart::MarkerType::Diamond }
| Enumeration that specifies a type of point marker. More...
enum class | Wt::Chart::FillRangeType { Wt::Chart::FillRangeType::None , Wt::Chart::FillRangeType::MinimumValue , Wt::Chart::FillRangeType::MaximumValue , Wt::Chart::FillRangeType::ZeroValue }
| Enumeration that specifies how an area should be filled. More...
enum class | Wt::Chart::ChartType { Wt::Chart::ChartType::Category , Wt::Chart::ChartType::Scatter }
| Enumeration type that indicates a chart type for a cartesian chart. More...
enum class | Wt::Chart::AxisProperty
| Enumeration that specifies a property of the axes.
enum class | Wt::Chart::LegendLocation { Wt::Chart::LegendLocation::Inside , Wt::Chart::LegendLocation::Outside }
| Enumeration type that indicates a legend location. More...
enum class | Wt::Chart::LabelOption { Wt::Chart::LabelOption::None = 0x00 , Wt::Chart::LabelOption::Inside = 0x01 , Wt::Chart::LabelOption::Outside = 0x02 , Wt::Chart::LabelOption::TextLabel = 0x10 , Wt::Chart::LabelOption::TextPercentage = 0x20 }
| Enumeration that specifies options for the labels. More...
enum class | Wt::Chart::Plane { Wt::Chart::Plane::XY , Wt::Chart::Plane::XZ , Wt::Chart::Plane::YZ }
| Lists the three orthogonal planes in 3D. More...
enum class | Wt::Chart::ChartUpdates { Wt::Chart::ChartUpdates::CameraMatrix = 0x1 , Wt::Chart::ChartUpdates::GLContext = 0x2 , Wt::Chart::ChartUpdates::GLTextures = 0x4 }
| Lists the different ways that a chart can be updated. More...

## Detailed Description

A charting library implemented using the Wt Painting system.

The charting library contains two main chart widget classes, WCartesianChart and WPieChart, and a number of utility classes for drawing simple to complex charts.

## Typedef Documentation

## ◆ WheelActions

typedef std::map<WFlags<KeyboardModifier>, InteractiveAction> Wt::Chart::WheelActions

A map of mouse wheel actions for interactive charts, indexed by WFlags<KeyboardModifier>

See also
  WCartesianChart::setWheelActions(WheelActions)
  WCartesianChart::wheelActions()

## Enumeration Type Documentation

## ◆ Axis

enum class Wt::Chart::Axis
| strong

Enumeration that indicates a chart axis.

See also
  WCartesianChart::axis(Axis)

Enumerator
X | X axis.
Y | First Y axis (== Y1).
Y1 | First Y axis (== Y).
Y2 | Second Y Axis.
Ordinate | Ordinate axis (== Y1 for a 2D plot).
X3D | X axis on 3D chart.
Y3D | Y axis on 3D chart.
Z3D | Z axis on 3D chart.

## ◆ AxisScale

enum class Wt::Chart::AxisScale
| strong

Enumeration that indicates a scale for an axis.

The scale determines how values are mapped onto an axis.

See also
  WAxis::setScale(AxisScale scale)

Enumerator
Discrete | A discrete scale is set as the scale for the X axis in a ChartType::Category, and is only applicable there. It lists all values, evenly spaced, and consecutively in the order of the model. The categories are converted to numbers using their ordinal (first category = 0, second = 1, ...).
Linear | A linear scale is the default scale for all axes, except for the X scale in a AxisScale::Discrete. It maps values in a linear fashion on the axis.
Log | A logarithmic scale is useful for plotting values with of a large range, but only works for positive values.
Date | A date scale is a special linear scale, which is useful for the X axis in a ChartType::Scatter, when the X series contain dates (of type WDate). The dates are converted to numbers, as Julian Days.
DateTime | A datetime scale is a special linear scale, which is useful for the X axis in a ChartType::Scatter, when the X series contain timedates (of type WDateTime). The dates are converted to numbers, as the number of seconds since the Unix Epoch (midnight Coordinated Universal Time (UTC) of January 1, 1970).

## ◆ AxisValue

enum class Wt::Chart::AxisValue
| strong

Enumeration that indicates a logical location for an axis.

The location is dependent on the values of the other axis.

See also
  WAxis::setLocation(AxisValue)

Enumerator
Minimum | The minimum value.
Maximum | The maximum value.
Zero | The zero value (if displayed).
Both | At both sides (Minimum and Maximum).

## ◆ ChartType

enum class Wt::Chart::ChartType
| strong

Enumeration type that indicates a chart type for a cartesian chart.

Enumerator
Category | The X series are categories.
Scatter | The X series must be interpreted as numerical data.

## ◆ ChartUpdates

enum class Wt::Chart::ChartUpdates
| strong

Lists the different ways that a chart can be updated.

Enumerator
CameraMatrix | Camera matrix.
GLContext | GL context.
GLTextures | GL textures.

## ◆ FillRangeType

enum class Wt::Chart::FillRangeType
| strong

Enumeration that specifies how an area should be filled.

Data series of type SeriesType::Line or CurveSerie may be filled under or above the line or curve. This enumeration specifies the other limit of this fill. Data series of type SeriesType::Bar can use this setting to configure the bottom of the chart.

See also
  WDataSeries::setFillRange(FillRangeType range)
  WCartesianChart

Enumerator
None | Do not fill under the curve.
MinimumValue | Fill from the curve to the chart bottom (min)
MaximumValue | Fill from the curve to the chart top.
ZeroValue | Fill from the curve to the zero Y value.

## ◆ InteractiveAction

enum class Wt::Chart::InteractiveAction
| strong

Enumeration of mouse wheel actions for interactive charts.

See also
  WCartesianChart::WheelActions
  WCartesianChart::setWheelActions(WheelActions)

Enumerator
ZoomX | Zoom x-axis.
ZoomY | Zoom y-axis.
ZoomXY | Zoom along both x and y-axes.
ZoomMatching | Zoom y-axis on vertical scroll, x-axis on horizontal scroll.
PanX | Pan x-axis.
PanY | Pan y-axis.
PanMatching | Pan y-axis on vertical scroll, x-axis on horizontal scroll.

## ◆ LabelOption

enum class Wt::Chart::LabelOption
| strong

Enumeration that specifies options for the labels.

See also
  WPieChart::setDisplayLabels(WFlags<LabelOption>)

Enumerator
None | Do not display labels (default).
Inside | Display labels inside each segment.
Outside | Display labels outside each segment.
TextLabel | Display the label text.
TextPercentage | Display the value (as percentage)

## ◆ LegendLocation

enum class Wt::Chart::LegendLocation
| strong

Enumeration type that indicates a legend location.

Enumerator
Inside | Inside the chart area.
Outside | Outside the chart area (in the padding area)

## ◆ MarkerType

enum class Wt::Chart::MarkerType
| strong

Enumeration that specifies a type of point marker.

See also
  WDataSeries::setMarker(MarkerType marker)
  WCartesianChart

Enumerator
None | Do not draw point markers.
Square | Mark points using a square.
Circle | Mark points using a circle.
Cross | Mark points using a cross (+).
XCross | Mark points using a cross (x).
Triangle | Mark points using a triangle.
Custom | Mark points using a custom marker.
Star | Mark points using a star.
InvertedTriangle | Mark points using an inverted (upside-down) triangle.
Asterisk | Mark points using an asterisk (*).
Diamond | Mark points using a diamond.

## ◆ Plane

enum class Wt::Chart::Plane
| strong

Lists the three orthogonal planes in 3D.

Enumerator
XY | X/Y Plane.
XZ | X/Z Plane.
YZ | Y/Z Plane.

## ◆ Series3DType

enum class Wt::Chart::Series3DType
| strong

Enumeration with the possible representations of a WAbstractGridData.

Enumerator
Point | Series rendered as points.
Surface | Series rendered as a surface.
Bar | Series rendered as bars.

## ◆ SeriesType

enum class Wt::Chart::SeriesType
| strong

Enumeration that specifies the type of a chart series.

See also
  WDataSeries::setType(SeriesType)
  WCartesianChart

Enumerator
Point | Series rendered solely as point markers.
Line | Series rendered as points connected by straight lines.
Curve | Series rendered as points connected by curves.
Bar | Series rendered as bars.