KChart
KChartWidget.cpp
85 void Widget::setDataset( int column, const QVector< QPair< qreal, qreal > > & data, const QString& title )
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
void setParent(QWidget *parent)
void setGlobalLeadingLeft(int leading)
Sets the left leading (border).
Definition: KChartWidget.cpp:150
virtual void takeAxis(CartesianAxis *axis)
Removes the axis from the diagram, without deleting it.
Definition: KChartAbstractCartesianDiagram.cpp:80
DisplayRole
virtual int rowCount(const QModelIndex &parent) const const=0
void setSubType(KChart::Widget::SubType subType)
Sets the type of the chart without changing the main type.
Definition: KChartWidget.cpp:403
void addLegend(Position position)
Adds an empty legend on the given position.
Definition: KChartWidget.cpp:238
Class only listed here to document inheritance of some KChart classes.
PolarDiagram * polarDiagram()
If the current diagram is a PolarDiagram, it is returned; otherwise 0 is returned.
Definition: KChartWidget.cpp:292
Base class common for all coordinate planes, CartesianCoordinatePlane, PolarCoordinatePlane,...
Definition: KChartAbstractCoordinatePlane.h:30
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 setGlobalLeadingRight(int leading)
Sets the right leading (border).
Definition: KChartWidget.cpp:170
Definition: KChartPosition.h:22
PieDiagram * pieDiagram()
If the current diagram is a Plotter, it is returned; otherwise 0 is returned.
Definition: KChartWidget.cpp:284
void setType(KChart::Widget::ChartType chartType, KChart::Widget::SubType subType=Normal)
Sets the type of the chart.
Definition: KChartWidget.cpp:314
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
void takeHeaderFooter(HeaderFooter *header)
Remove the header (or footer, resp.) from the widget, without deleting it.
Definition: KChartWidget.cpp:223
Plotter * plotter()
If the current diagram is a LineDiagram, it is returned; otherwise 0 is returned.
Definition: KChartWidget.cpp:280
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
Plotter defines a diagram type plotting two-dimensional data.
Definition: KChartPlotter.h:24
virtual bool setHeaderData(int section, Qt::Orientation orientation, const QVariant &value, int role) override
AbstractDiagram * diagram()
Definition: KChartAbstractCoordinatePlane.cpp:114
virtual KChart::CartesianAxisList axes() const
Definition: KChartAbstractCartesianDiagram.cpp:90
Horizontal
bool isEmpty() const const
AbstractCoordinatePlane * coordinatePlane()
Returns a pointer to the current coordinate plane.
Definition: KChartWidget.cpp:297
virtual int columnCount(const QModelIndex &parent) const const=0
virtual bool setData(const QModelIndex &index, const QVariant &value, int role) override
AbstractDiagram * diagram()
Returns a pointer to the current diagram.
Definition: KChartWidget.cpp:264
QList< HeaderFooter * > allHeadersFooters()
Returns a list with all headers.
Definition: KChartWidget.cpp:195
virtual bool insertColumns(int column, int count, const QModelIndex &parent)
virtual void addAxis(CartesianAxis *axis)
Add the axis to the diagram.
Definition: KChartAbstractCartesianDiagram.cpp:71
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
int size() const const
AbstractDiagram defines the interface for diagram classes.
Definition: KChartAbstractDiagram.h:36
void setPosition(Position position)
Specify the position of a non-floating legend.
Definition: KChartLegend.cpp:450
BarDiagram * barDiagram()
If the current diagram is a BarDiagram, it is returned; otherwise 0 is returned.
Definition: KChartWidget.cpp:272
void setModel(QAbstractItemModel *model) override
Associate a model with the diagram.
Definition: KChartAbstractDiagram.cpp:122
width
LineDiagram * lineDiagram()
If the current diagram is a LineDiagram, it is returned; otherwise 0 is returned.
Definition: KChartWidget.cpp:276
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
Legend defines the interface for the legend drawing class.
Definition: KChartLegend.h:41
size
void setGlobalLeading(int left, int top, int right, int bottom)
Sets all global leadings (borders).
Definition: KChartWidget.cpp:145
void setDiagram(KChart::AbstractDiagram *newDiagram)
A convenience method doing the same as replaceDiagram( newDiagram, 0 );.
Definition: KChartLegend.cpp:426
Base class for diagrams based on a cartesian coordianate system.
Definition: KChartAbstractCartesianDiagram.h:27
SubType
Sub type values, matching the values defines for the respective Diagram classes.
Definition: KChartWidget.h:204
void setDataCell(int row, int column, qreal data)
Sets the Y value data for a given cell.
Definition: KChartWidget.cpp:107
virtual bool insertRows(int row, int count, const QModelIndex &parent)
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Jul 1 2022 05:09:20 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Jul 1 2022 05:09:20 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.