Wt  4.11.1
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 >, InteractiveActionWt::Chart::WheelActions
 A map of mouse wheel actions for interactive charts, indexed by WFlags<KeyboardModifier> More...
 

Enumerations

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

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 Wt::Chart::Axis
strong

Enumeration that indicates a chart axis.

See also
WCartesianChart::axis(Axis)
Enumerator

X axis.

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 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 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 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

Lists the different ways that a chart can be updated.

Enumerator
CameraMatrix 

Camera matrix.

GLContext 

GL context.

GLTextures 

GL textures.

◆ FillRangeType

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

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

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

Enumeration type that indicates a legend location.

Enumerator
Inside 

Inside the chart area.

Outside 

Outside the chart area (in the padding area)

◆ MarkerType

enum 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 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

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 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.