|
Interline coloring overlapping |
Posted by mephy on May-03-2015 18:31 |
|
Hello.
I'm using Inter-Line Coloring chart.
Sometimes I have overlapping in data, and chart shows something strange (see pic)
How to fix it?
Thank you.
Best regards, mephy.
|
Re: Interline coloring overlapping |
Posted by Peter Kwan on May-05-2015 01:21 |
|
Hi mephy,
Just from your charts, I am not sure where are the lines or interline layer. Without knowing
the details, I suspect it may be due to the ordering in which you add the layers. In brief,
the blue and magneta parts of the chart should be in different layers. For example, the blue
lines and the magneta lines should be in two different line layers. The magenta lines and
interline layer should come together, and not interleave with those of the blue parts of the
chart.
Regards
Peter Kwan |
Re: Interline coloring overlapping |
Posted by mephy on May-07-2015 18:13 |
|
Hi, Peter!
Zoomed chart on pic.
Looks like graph lines come above interline fill.
Solved by setting $layer->setLineWidth(0);
code:
$layer->setLineWidth(0);
$layer->addDataSet($ee600_min, 0xff22ff, "line1_min");
$layer->addDataSet($ee600_max, 0xff22ff, "line1_max");
$layer->addDataSet($ee25_min, 0x2222ff, "line2_min");
$layer->addDataSet($ee25_max, 0x2222ff, "line2_max");
$layer->addDataSet($ee15_min, 0xff2222, "line3_min");
$layer->addDataSet($ee15_max, 0xff2222, "line3_max");
$c->addInterLineLayer($layer->getLine(0), $layer->getLine(1), 0xff22ff, -1);
$c->addInterLineLayer($layer->getLine(2), $layer->getLine(3), 0x2222ff, -1);
$c->addInterLineLayer($layer->getLine(4), $layer->getLine(5), 0xff2222, -1);
|
Re: Interline coloring overlapping |
Posted by mephy on May-07-2015 18:52 |
|
Hm, Width() not the best option, since when min amd max are close line disappears. |
Re: Interline coloring overlapping |
Posted by mephy on May-07-2015 19:16 |
|
Finally, it works!
Made each min-max in different layer. |
|