private PageBarGraph createBarGraph() {
			PageBarGraph b = new PageBarGraph();
			b.setPage(page);
			b.setModelID(modelIndex);
			if (uid != null) {
				b.setUid(uid);
				uid = null;
			}
			b.setValue(value);
			b.setInitialValue(value);
			b.setMinimum(minimum);
			b.setMaximum(maximum);
			if (dataType != 0) {
				b.setAverageType((byte) dataType);
				dataType = 0;
				switch (b.getAverageType()) {
				case PageBarGraph.EXPONENTIAL_RUNNING_AVERAGE:
					if (smoothingFactor > 0) {
						b.setSmoothingFactor(smoothingFactor);
						smoothingFactor = -1;
					}
					break;
				case PageBarGraph.SIMPLE_RUNNING_AVERAGE:
					if (samplingPoints > 0) {
						b.setSamplingPoints(samplingPoints);
						samplingPoints = -1;
					}
					break;
				}
			}
			if (average) {
				b.setAverageOnly(average);
				b.setAverage(b.getInitialValue());
				average = false;
			}
			if (orientation == PageBarGraph.VERTICAL || orientation == PageBarGraph.HORIZONTAL) {
				b.setOrientation(orientation);
				orientation = -1;
			}
			if ((argb1 | ARGB_NOT_SET) != ARGB_NOT_SET) {
				b.setBackground(new Color(argb1));
				argb1 = ARGB_NOT_SET;
			}
			if ((argb2 | ARGB_NOT_SET) != ARGB_NOT_SET) {
				b.setForeground(new Color(argb2));
				argb2 = ARGB_NOT_SET;
			}
			b.setPaintTicks(drawTicks);
			b.setPaintLabels(drawLabels);
			if (format != null) {
				b.setFormat(format);
				format = null;
			}
			if (maxFractionDigit != 3) {
				b.setMaximumFractionDigits(maxFractionDigit);
				maxFractionDigit = 3;
			}
			if (maxIntegerDigit != 3) {
				b.setMaximumIntegerDigits(maxIntegerDigit);
				maxIntegerDigit = 3;
			}
			if (multiplier != 1.0f) {
				b.setMultiplier(multiplier);
				multiplier = 1.0f;
			}
			if (addend != 0.0f) {
				b.setAddend(addend);
				addend = 0.0f;
			}
			if (titleText != null) {
				b.setPaintTitle(titleText.equalsIgnoreCase("true"));
				titleText = null;
			}
			if (nstep > 0) {
				b.setMinorTicks(nstep);
				nstep = 0;
			}
			if (majorTicks > 0) {
				b.setMajorTicks(majorTicks);
				majorTicks = 0;
			}
			if (description != null) {
				b.setDescription(description);
				description = null;
			}
			if (timeSeries != null) {
				b.setTimeSeriesName(timeSeries);
				timeSeries = null;
			}
			else {
				b.setTimeSeriesName(b.getDescription());
			}
			if (width > 0 && height > 0) {
				b.setPreferredSize(new Dimension((int) width, (int) height));
				width = height = 0;
			}
			b.setChangable(page.isEditable());
			connect(b);
			drawTicks = drawLabels = false;
			return b;
		}