Explorar el Código

Adjust legend for unit. Feature finished. Fixes #2

Neal Wilson hace 11 años
padre
commit
0641211f76
Se han modificado 1 ficheros con 16 adiciones y 2 borrados
  1. 16
    2
      config/Reports/chart.xml

+ 16
- 2
config/Reports/chart.xml Ver fichero

434
                 output.writeAttribute("x", "75");
434
                 output.writeAttribute("x", "75");
435
                 output.writeAttribute("y", "120");
435
                 output.writeAttribute("y", "120");
436
                 output.writeAttribute("font-size", "12");
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
                 output.writeEndElement();
445
                 output.writeEndElement();
439
                 output.writeStartElement("rect");
446
                 output.writeStartElement("rect");
440
                 output.writeAttribute("fill", "rgb(255,0,0)");
447
                 output.writeAttribute("fill", "rgb(255,0,0)");
447
                 output.writeAttribute("x", "225");
454
                 output.writeAttribute("x", "225");
448
                 output.writeAttribute("y", "120");
455
                 output.writeAttribute("y", "120");
449
                 output.writeAttribute("font-size", "12");
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
                 output.writeEndElement();
465
                 output.writeEndElement();
452
                 output.writeStartElement("rect");
466
                 output.writeStartElement("rect");
453
                 output.writeAttribute("fill", "rgb(0,255,0)");
467
                 output.writeAttribute("fill", "rgb(0,255,0)");

Loading…
Cancelar
Guardar