Hi,
I need to set a disconituous line in my graph ( the value is a constant value.)
is this possible?
very thanks.
discontinous line
hi joolz
I think, there is something in my source that don't work, can you help me?
I think, there is something in my source that don't work, can you help me?
Code: Select all
// List<Valor> valors=indicador.getValors();
// for (Iterator iter = valors.iterator(); iter.hasNext();) {
// Valor valor = (Valor) iter.next();
// if (valor.data_valor!=null) {
// if (!discontinua){
// s3.addOrUpdate(new Month(valor.data_valor), mitjana);
// discontinua = true;
// }else {
// s3.addOrUpdate(new Month(valor.data_valor), null);
// discontinua = false;
// }
// }
//
Without seeing the rest of the source, and without knowing what exactly didn't work, its very hard for me to help you.
That said, maybe try this:
That said, maybe try this:
Code: Select all
List<Valor> valors=indicador.getValors();
for (Iterator iter = valors.iterator(); iter.hasNext();)
{
Valor valor = (Valor) iter.next();
if (valor.data_valor!=null)
{
s3.addOrUpdate(new Month(valor.data_valor), mitjana);
}
else
{
s3.addOrUpdate(new Month(valor.data_valor), null);
}
}