| 56 | }; |
| 57 | |
| 58 | DataValueAttributes::Private::Private() |
| 59 | : visible(false) |
| 60 | , showInfinite(true) |
| 61 | { |
| 62 | Measure me(20.0, KDChartEnums::MeasureCalculationModeAuto, KDChartEnums::MeasureOrientationAuto); |
| 63 | textAttributes.setFontSize(me); |
| 64 | me.setValue(8.0); |
| 65 | me.setCalculationMode(KDChartEnums::MeasureCalculationModeAbsolute); |
| 66 | textAttributes.setMinimalFontSize(me); |
| 67 | textAttributes.setRotation(-45); |
| 68 | |
| 69 | // we set the Position to unknown: so the diagrams can take their own decisions |
| 70 | positiveRelPos.setReferencePosition(Position::Unknown); |
| 71 | negativeRelPos.setReferencePosition(Position::Unknown); |
| 72 | |
| 73 | positiveRelPos.setAlignment(Qt::AlignTop | Qt::AlignRight); |
| 74 | negativeRelPos.setAlignment(Qt::AlignBottom | Qt::AlignRight); |
| 75 | |
| 76 | showRepetitiveDataLabels = false; |
| 77 | showOverlappingDataLabels = false; |
| 78 | |
| 79 | usePercentage = false; |
| 80 | mirrorNegativeValueTextRotation = false; |
| 81 | } |
| 82 | |
| 83 | DataValueAttributes::DataValueAttributes() |
| 84 | : _d(new Private()) |
nothing calls this directly
no test coverage detected