diff --git a/examples/scatterchart/chartview.cpp b/examples/scatterchart/chartview.cpp index 4306dad..1d3a120 100644 --- a/examples/scatterchart/chartview.cpp +++ b/examples/scatterchart/chartview.cpp @@ -51,6 +51,7 @@ ChartView::ChartView(QWidget *parent) : chart()->addSeries(series0); chart()->addSeries(series1); chart()->setTitle("Simple scatterchart example"); + chart()->createDefaultAxes(); chart()->setDropShadowEnabled(false); //![3] } diff --git a/examples/splinechart/main.cpp b/examples/splinechart/main.cpp index 50ae123..9b0dc2d 100644 --- a/examples/splinechart/main.cpp +++ b/examples/splinechart/main.cpp @@ -48,6 +48,7 @@ int main(int argc, char *argv[]) chart->legend()->hide(); chart->addSeries(series); chart->setTitle("Simple spline chart example"); + chart->createDefaultAxes(); chart->axisY()->setRange(0, 10); //![3]