##// END OF EJS Templates
Few QChart doc updates
Marek Rosa -
r1633:569878e4ed89
parent child
Show More
@@ -306,7 +306,7 void QChart::zoom(qreal factor)
306 }
306 }
307
307
308 /*!
308 /*!
309 Returns the pointer to the x axis object of the chart
309 Returns the pointer to the x axis object of the chart asociated with the specified \a series
310 */
310 */
311 QAbstractAxis* QChart::axisX(QAbstractSeries* series) const
311 QAbstractAxis* QChart::axisX(QAbstractSeries* series) const
312 {
312 {
@@ -314,14 +314,29 QAbstractAxis* QChart::axisX(QAbstractSeries* series) const
314 }
314 }
315
315
316 /*!
316 /*!
317 Returns the pointer to the y axis object of the \a series
317 Returns the pointer to the y axis object of the chart asociated with the specified \a series
318 If no \a series is provided then default Y axis of the chart is returned.
319 */
318 */
320 QAbstractAxis* QChart::axisY(QAbstractSeries *series) const
319 QAbstractAxis* QChart::axisY(QAbstractSeries *series) const
321 {
320 {
322 return d_ptr->m_dataset->axisY(series);
321 return d_ptr->m_dataset->axisY(series);
323 }
322 }
324
323
324 /*!
325 NOTICE: This function has to be called after series has been added to the chart if no customized axes are set to the chart. Otherwise axisX(), axisY() calls return NULL.
326
327 Creates the axes for the chart based on the series that has already been added to the chart.
328 If QXYSeries derived series has been added to the chart then QValuesAxes are created as X and Y axes for the series.
329 If QBarSeries or series types derived from it has been added then QBarCategoriesAxis is created as X axis and QValueAxis as Y axis.
330 If there are several QXYSeries derived series added to the chart and no other series type has been added then only one pair of axes is created.
331 If there are sevaral series added of different types then each series gets its own axes pair.
332
333 NOTICE: if there is more than one x and y axes created then no axis is drawn by default and one needs to choose explicitly which axis should be shown.
334
335 Axis specifix to the series can be later obtained from the chart by providing the series as the parameter of axisX(), axisY() function calls.
336 QPieSeries does not create any axes.
337
338 \sa axisX(), axisY(), setAxisX(), setAxisY()
339 */
325 void QChart::createDefaultAxes()
340 void QChart::createDefaultAxes()
326 {
341 {
327 d_ptr->m_dataset->createDefaultAxes();
342 d_ptr->m_dataset->createDefaultAxes();
@@ -401,11 +416,21 void QChart::setMarginsMinimum(const QRectF& margins)
401 d_ptr->m_presenter->setMarginsMinimum(margins);
416 d_ptr->m_presenter->setMarginsMinimum(margins);
402 }
417 }
403
418
419 /*!
420 Sets \a axis to the chart, which will control the presentation of the \a series
421
422 \sa axisX(), axisY(), setAxisY(), createDefaultAxes()
423 */
404 void QChart::setAxisX(QAbstractAxis* axis , QAbstractSeries *series)
424 void QChart::setAxisX(QAbstractAxis* axis , QAbstractSeries *series)
405 {
425 {
406 d_ptr->m_dataset->setAxisX(series,axis);
426 d_ptr->m_dataset->setAxisX(series,axis);
407 }
427 }
408
428
429 /*!
430 Sets \a axis to the chart, which will control the presentation of the \a series
431
432 \sa axisX(), axisY(), setAxisX(), createDefaultAxes()
433 */
409 void QChart::setAxisY( QAbstractAxis* axis , QAbstractSeries *series)
434 void QChart::setAxisY( QAbstractAxis* axis , QAbstractSeries *series)
410 {
435 {
411 d_ptr->m_dataset->setAxisY(series,axis);
436 d_ptr->m_dataset->setAxisY(series,axis);
General Comments 0
You need to be logged in to leave comments. Login now