KChart
KChartWidget.cpp
85void Widget::setDataset( int column, const QVector< QPair< qreal, qreal > > & data, const QString& title )
Base class for diagrams based on a cartesian coordianate system.
Definition KChartAbstractCartesianDiagram.h:28
virtual KChart::CartesianAxisList axes() const
Definition KChartAbstractCartesianDiagram.cpp:90
virtual void addAxis(CartesianAxis *axis)
Add the axis to the diagram.
Definition KChartAbstractCartesianDiagram.cpp:71
virtual void takeAxis(CartesianAxis *axis)
Removes the axis from the diagram, without deleting it.
Definition KChartAbstractCartesianDiagram.cpp:80
Base class common for all coordinate planes, CartesianCoordinatePlane, PolarCoordinatePlane,...
Definition KChartAbstractCoordinatePlane.h:31
virtual void replaceDiagram(AbstractDiagram *diagram, AbstractDiagram *oldDiagram=nullptr)
Replaces the old diagram, or appends the diagram, it there is none yet.
Definition KChartAbstractCoordinatePlane.cpp:77
AbstractDiagram * diagram()
Definition KChartAbstractCoordinatePlane.cpp:114
AbstractDiagram defines the interface for diagram classes.
Definition KChartAbstractDiagram.h:37
void setModel(QAbstractItemModel *model) override
Associate a model with the diagram.
Definition KChartAbstractDiagram.cpp:122
Legend defines the interface for the legend drawing class.
Definition KChartLegend.h:42
void setPosition(Position position)
Specify the position of a non-floating legend.
Definition KChartLegend.cpp:450
void setDiagram(KChart::AbstractDiagram *newDiagram)
A convenience method doing the same as replaceDiagram( newDiagram, 0 );.
Definition KChartLegend.cpp:426
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 setSubType(KChart::Widget::SubType subType)
Sets the type of the chart without changing the main type.
Definition KChartWidget.cpp:403
void setType(KChart::Widget::ChartType chartType, KChart::Widget::SubType subType=Normal)
Sets the type of the chart.
Definition KChartWidget.cpp:314
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
virtual int columnCount(const QModelIndex &parent) const const=0
virtual bool insertColumns(int column, int count, const QModelIndex &parent)
virtual bool insertRows(int row, int count, const QModelIndex &parent)
virtual int rowCount(const QModelIndex &parent) const const=0
qsizetype size() const const
T qobject_cast(QObject *object)
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
virtual bool setData(const QModelIndex &index, const QVariant &value, int role) override
virtual bool setHeaderData(int section, Qt::Orientation orientation, const QVariant &value, int role) override
bool isEmpty() const const
DisplayRole
Horizontal
void setParent(QWidget *parent)
size
width
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:18:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:18:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.