jfreechart - Personalización de StackedBarChart
A continuación he mencionado 4 archivos xml en los que tengo estado y clave y BuildDate. Necesito representar la información de "estado" de "clave" en un gráfico basado en BuildDate.
El eje x debe tener más de 6 días (w.r.t fecha actual. Supongamos que hoy es el 7 de septiembre, entonces la entrada debe ser del 1 al 6 de septiembre). Si hay una entrada para la fecha correspondiente en BuildDate feild, entonces el estado debe mostrarse en rojo o verde (Fallido - rojo, Éxito - verde). De lo contrario, se debe mostrar el negro.
Principalmente estoy luchando para agregar el valor y mostrar de acuerdo a la fecha.
¿Cómo puedo hacer esto a través de jfreechart? (StackedBarChart?)
inupt_1.xml:
<?xml version="1.0" encoding="UTF-8"?>
<results>
<result id="1" number="10" lifeCycleState="Finished" state="Failed" key="PLAN-A" BuildDate="2014 Sept 1">
</result>
<result id="2" number="20" lifeCycleState="Finished" state="Success" key="PLAN-A" BuildDate="2014 Sept 2">
</result>
<result id="3" number="30" lifeCycleState="Finished" state="Failed" key="PLAN-A" BuildDate="2014 Sept 3">
</result>
<result id="4" number="40" lifeCycleState="Finished" state="Success" key="PLAN-A" BuildDate="2014 Sept 4">
</result>
<result id="5" number="50" lifeCycleState="Finished" state="Failed" key="PLAN-A" BuildDate="2014 Sept 5">
</result>
<result id="6" number="60" lifeCycleState="Finished" state="Failed" key="PLAN-A" BuildDate="2014 Sept 7">
</result>
</results>
inupt_2.xml:
<?xml version="1.0" encoding="UTF-8"?>
<results>
<result id="1" number="10" lifeCycleState="Finished" state="Success" key="PLAN-B" BuildDate="2014 Sept 1">
</result>
<result id="2" number="20" lifeCycleState="Finished" state="Failed" key="PLAN-B" BuildDate="2014 Sept 2">
</result>
<result id="3" number="30" lifeCycleState="Finished" state="Success" key="PLAN-B" BuildDate="2014 Sept 4">
</result>
<result id="4" number="40" lifeCycleState="Finished" state="Success" key="PLAN-B" BuildDate="2014 Sept 5">
</result>
<result id="5" number="50" lifeCycleState="Finished" state="Failed" key="PLAN-B" BuildDate="2014 Sept 6">
</result>
<result id="6" number="60" lifeCycleState="Finished" state="Failed" key="PLAN-B" BuildDate="2014 Sept 7">
</result>
</results>
inupt_3.xml:
<?xml version="1.0" encoding="UTF-8"?>
<results>
<result id="1" number="10" lifeCycleState="Finished" state="Failed" key="PLAN-C" BuildDate="2014 Sept 1">
</result>
<result id="2" number="20" lifeCycleState="Finished" state="Success" key="PLAN-C" BuildDate="2014 Sept 3">
</result>
<result id="3" number="30" lifeCycleState="Finished" state="Failed" key="PLAN-C" BuildDate="2014 Sept 4">
</result>
<result id="4" number="40" lifeCycleState="Finished" state="Success" key="PLAN-C" BuildDate="2014 Sept 5">
</result>
<result id="5" number="50" lifeCycleState="Finished" state="Success" key="PLAN-C" BuildDate="2014 Sept 6">
</result>
<result id="6" number="60" lifeCycleState="Finished" state="Failed" key="PLAN-C" BuildDate="2014 Sept 7">
</result>
</results>
inupt_4.xml:
<?xml version="1.0" encoding="UTF-8"?>
<results>
<result id="1" number="10" lifeCycleState="Finished" state="Failed" key="PLAN-D" BuildDate="2014 Sept 1">
</result>
<result id="2" number="20" lifeCycleState="Finished" state="Success" key="PLAN-D" BuildDate="2014 Sept 2">
</result>
<result id="3" number="30" lifeCycleState="Finished" state="Success" key="PLAN-D" BuildDate="2014 Sept 4">
</result>
<result id="4" number="40" lifeCycleState="Finished" state="Success" key="PLAN-D" BuildDate="2014 Sept 5">
</result>
<result id="6" number="60" lifeCycleState="Finished" state="Failed" key="PLAN-D" BuildDate="2014 Sept 7">
</result>
</results>
Grafico: