Browse Source

Adjust legend for unit. Feature finished. Fixes #2

Neal Wilson 11 years ago
parent
commit
0641211f76
1 changed files with 16 additions and 2 deletions
  1. 16
    2
      config/Reports/chart.xml

+ 16
- 2
config/Reports/chart.xml View File

@@ -434,7 +434,14 @@
434 434
                 output.writeAttribute("x", "75");
435 435
                 output.writeAttribute("y", "120");
436 436
                 output.writeAttribute("font-size", "12");
437
-                output.writeCharacters("Previous Year Pounds");
437
+				switch(unitBox.currentIndex) {
438
+					case 0:
439
+						output.writeCharacters("Previous Year Kg");
440
+						break;
441
+					case 1:
442
+						output.writeCharacters("Previous Year Lb");
443
+						break;
444
+				}
438 445
                 output.writeEndElement();
439 446
                 output.writeStartElement("rect");
440 447
                 output.writeAttribute("fill", "rgb(255,0,0)");
@@ -447,7 +454,14 @@
447 454
                 output.writeAttribute("x", "225");
448 455
                 output.writeAttribute("y", "120");
449 456
                 output.writeAttribute("font-size", "12");
450
-                output.writeCharacters("Current Year Pounds");
457
+				switch(unitBox.currentIndex) {
458
+					case 0:
459
+						output.writeCharacters("Current Year Kg");
460
+						break;
461
+					case 1:
462
+						output.writeCharacters("Current Year Lb");
463
+						break;
464
+				}
451 465
                 output.writeEndElement();
452 466
                 output.writeStartElement("rect");
453 467
                 output.writeAttribute("fill", "rgb(0,255,0)");

Loading…
Cancel
Save