Generate a plot with bars, where the Y data labels are drawn, this values have precision 2, and have wholes numbers in the Y tick.
Request is to have separately controllable label formatting for Y Tick Labels and Y Data Labels (used over the bars in a bar chart). Currently, SetYLabelType configures both.
Generalizing, and including parts of user adoll's changes, extend this to X labels, and also allow separate controls for label angles.
New methods to be created: SetXDataLabelType, SetYDataLabelType, SetXDataLabelAngle, SetYDataLabelAngle.
Maintain backward compatibility, and order-independence:
Currently, SetYLabelType controls both Y tick and data label formatting. This will not change, if the new SetYDataLabelType is not called, and Y data label formatting will match Y tick label formatting. If both are called, in either order, then SetYLabelType controls tick labels only, and SetYDataLabelType controls data labels only. If only SetYDataLabelType is called, tick labels default to no formatting as before. This is asymmetrical but compatibility with existing behavior.
Same for SetXDataLabelType vs SetXLabelType, and similar for SetXDataLabelAngle vs SetXLabelAngle. Note, currently we can't have both X Data Labels and X Tick Labels on, so having separate controls isn't useful, but this anticipates a change (from user adoll).
Control of Y Data Label Angle is new - previously it was always zero. So it will default to zero if SetYDataLabelAngle is not called. Unlike with X, SetYLabelAngle and SetYDataLabelAngle will be independent.
This has now been implemented and committed to CVS, and will be in the next release.
Updated documentation has been committed to CVS and will be in the next release of the Reference Manual.
Title changed from "Decimal values"
Implemented in PHPlot-5.1.0