KChart
KChartWidget.h
68 void setDataset( int column, const QVector< QPair< qreal, qreal > > & data, const QString& title = QString() );
Definition of global enums.
Contains KChart macros.
Base class common for all coordinate planes, CartesianCoordinatePlane, PolarCoordinatePlane,...
Definition KChartAbstractCoordinatePlane.h:31
AbstractDiagram defines the interface for diagram classes.
Definition KChartAbstractDiagram.h:37
Legend defines the interface for the legend drawing class.
Definition KChartLegend.h:42
Plotter defines a diagram type plotting two-dimensional data.
Definition KChartPlotter.h:25
void replaceHeaderFooter(HeaderFooter *header, HeaderFooter *oldHeader=nullptr)
Replaces the old header (or footer, resp.), or appends the new header or footer, it there is none yet...
Definition KChartWidget.cpp:217
QList< HeaderFooter * > allHeadersFooters()
Returns a list with all headers.
Definition KChartWidget.cpp:195
BarDiagram * barDiagram()
If the current diagram is a BarDiagram, it is returned; otherwise 0 is returned.
Definition KChartWidget.cpp:272
void setGlobalLeading(int left, int top, int right, int bottom)
Sets all global leadings (borders).
Definition KChartWidget.cpp:145
Plotter * plotter()
If the current diagram is a LineDiagram, it is returned; otherwise 0 is returned.
Definition KChartWidget.cpp:280
void takeHeaderFooter(HeaderFooter *header)
Remove the header (or footer, resp.) from the widget, without deleting it.
Definition KChartWidget.cpp:223
PieDiagram * pieDiagram()
If the current diagram is a Plotter, it is returned; otherwise 0 is returned.
Definition KChartWidget.cpp:284
AbstractCoordinatePlane * coordinatePlane()
Returns a pointer to the current coordinate plane.
Definition KChartWidget.cpp:297
void setGlobalLeadingRight(int leading)
Sets the right leading (border).
Definition KChartWidget.cpp:170
LineDiagram * lineDiagram()
If the current diagram is a LineDiagram, it is returned; otherwise 0 is returned.
Definition KChartWidget.cpp:276
SubType
Sub type values, matching the values defines for the respective Diagram classes.
Definition KChartWidget.h:199
void setGlobalLeadingBottom(int leading)
Sets the bottom leading (border).
Definition KChartWidget.cpp:180
RingDiagram * ringDiagram()
If the current diagram is a RingDiagram, it is returned; otherwise 0 is returned.
Definition KChartWidget.cpp:288
void addHeaderFooter(const QString &text, HeaderFooter::HeaderFooterType type, Position position)
Adds a new header/footer with the given text to the position.
Definition KChartWidget.cpp:200
PolarDiagram * polarDiagram()
If the current diagram is a PolarDiagram, it is returned; otherwise 0 is returned.
Definition KChartWidget.cpp:292
void setDataset(int column, const QVector< qreal > &data, const QString &title=QString())
Sets the data in the given column using a QVector of qreal for the Y values.
Definition KChartWidget.cpp:67
void setDataCell(int row, int column, qreal data)
Sets the Y value data for a given cell.
Definition KChartWidget.cpp:107
void setGlobalLeadingLeft(int leading)
Sets the left leading (border).
Definition KChartWidget.cpp:150
void addLegend(Position position)
Adds an empty legend on the given position.
Definition KChartWidget.cpp:238
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
QObject * parent() const const
QWidget(QWidget *parent, Qt::WindowFlags f)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:24 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:24 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.