| chartbarcategoryaxisx.cpp |
|
3991 |
- |
| chartbarcategoryaxisx_p.h |
CHARTBARCATEGORYAXISX_H |
1194 |
- |
| chartbarcategoryaxisy.cpp |
|
4154 |
- |
| chartbarcategoryaxisy_p.h |
CHARTBARCATEGORYAXISY_H |
1189 |
- |
| qbarcategoryaxis.cpp |
!
\class QBarCategoryAxis
\inmodule QtCharts
\brief The QBarCategoryAxis class adds categories to a chart's axes.
QBarCategoryAxis can be set up to show an axis line with tick marks, grid lines, and shades.
Categories are drawn between the ticks. It can be used also with a line series, as demonstrated
by the \l {Charts with Widgets Gallery}.
The following code illustrates how to use QBarCategoryAxis:
\code
QChartView *chartView = new QChartView;
QBarSeries *series = new QBarSeries;
// ...
chartView->chart()->addSeries(series);
chartView->chart()->createDefaultAxes();
QBarCategoryAxis *axisX = new QBarCategoryAxis;
QStringList categories;
categories << "Jan" << "Feb" << "Mar" << "Apr" << "May" << "Jun";
axisX->append(categories);
axisX->setRange("Feb", "May");
chartView->chart()->setAxisX(axisX, series);
\endcode
|
16345 |
- |
| qbarcategoryaxis.h |
|
1947 |
- |
| qbarcategoryaxis_p.h |
|
1682 |
- |