examples-logvalueaxis.qdoc
30 lines
| 859 B
| text/plain
|
TextLexer
Marek Rosa
|
r2374 | /*! | ||
\example examples/logvalueaxis | ||||
Nico Vertriest
|
r2610 | \title Logarithmic Axis Example | ||
Marek Rosa
|
r2374 | \subtitle | ||
The example shows how to use QLogValueAxis. | ||||
\image examples_logvalueaxis.png | ||||
Nico Vertriest
|
r2610 | |||
Create a QLineSeries instance and add some data to it. | ||||
Marek Rosa
|
r2374 | |||
\snippet ../examples/logvalueaxis/main.cpp 1 | ||||
Nico Vertriest
|
r2610 | To present the data on the chart we need a QChart instance. Add the series to it, hide the legend and set the title of the chart. | ||
Marek Rosa
|
r2374 | |||
\snippet ../examples/logvalueaxis/main.cpp 2 | ||||
Create the axes. Add them to the chart and attach to the series. | ||||
\snippet ../examples/logvalueaxis/main.cpp 3 | ||||
Nico Vertriest
|
r2610 | Then create a QChartView object with QChart as a parameter. Enable antialiasing to have the rendered line look nicer. | ||
\snippet ../examples/logvalueaxis/main.cpp 4 | ||||
Marek Rosa
|
r2374 | |||
Nico Vertriest
|
r2610 | The chart is ready to be shown. | ||
Marek Rosa
|
r2374 | |||
\snippet ../examples/logvalueaxis/main.cpp 5 | ||||
Nico Vertriest
|
r2610 | |||
Marek Rosa
|
r2374 | */ | ||