##// END OF EJS Templates
Fix vanishing labels for first and last ticks....
Fix vanishing labels for first and last ticks. Extra space must be reserved by layout for the axes that have wide labels for first or last tick. Changed the logic how axis sizeHint is interpreted to make the previously irrelevant height or width (depending on orientation) of the sizeHint to indicate how far the widest label extends past the first/last tick, and adjust the grid size accordingly in layout. Reviewed-by: Mika Salmela

File last commit:

r1647:35c35dbacb1e
r2443:5b27b7b1d72a RC2_1.2.1
Show More
examples-customchart.qdoc
26 lines | 921 B | text/plain | TextLexer
/ doc / src / examples-customchart.qdoc
/*!
\example examples/customchart
\title Custom chart example
\subtitle
This example shows how to customize the appearance of the different elements on a chart.
\image examples_customchart.png
We begin by creating a simple line series and a chart object.
\snippet ../examples/customchart/main.cpp 1
Let the customization begin. First we customize the series and the chart's title and background.
\snippet ../examples/customchart/main.cpp 2
Then we customize the axes.
\snippet ../examples/customchart/main.cpp 3
And the axis label values and ranges. Once the axes are ready we set them to be used by the chart.
\snippet ../examples/customchart/main.cpp 4
Finally we create a view containing the chart.
\snippet ../examples/customchart/main.cpp 5
Now we are ready to show the chart on a main window.
\snippet ../examples/customchart/main.cpp 6
*/