Hello,
I'm using TeeChart in a Java Desktop-Applikation. There are HorizBars and a Line in the chart. The series were displayed korrect in the legend (first attachement). When I set the legend transparent, the frame of the HorizBar-Series get the Color of the Line-Series (second attachement).
Do you have any suggestions how to to solve this problem?
Tanks in advance.
Kind Regards
Oliver
Legend for HorizBars/Line - Problem with Transparence
Legend for HorizBars/Line - Problem with Transparence
- Attachments
-
- Legend - 1988.png (52.83 KiB) Viewed 42112 times
-
- Legend transparent - 1988.png (52.98 KiB) Viewed 42112 times
Re: Legend for HorizBars/Line - Problem with Transparence
Hello,
I could reproduce it so I've added it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=2141
I could reproduce it so I've added it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=2141
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Legend for HorizBars/Line - Problem with Transparence
Hello,
I've just fixed the issue.
Since you own the sources, you can apply the fix to your sources. At CustomBar.java, change the drawLegendShape method for this one:
I've just fixed the issue.
Since you own the sources, you can apply the fix to your sources. At CustomBar.java, change the drawLegendShape method for this one:
Code: Select all
protected void drawLegendShape(IGraphics3D g, int valueIndex, Rectangle rect) {
ChartPen oldPen = g.getPen();
if (getBrush().getImage() != null)
g.getBrush().setImage(bBrush.getImage());
if (getPen().getVisible())
g.setPen(getPen());
super.drawLegendShape(g, valueIndex, rect);
if (getPen().getVisible())
g.setPen(oldPen);
}
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Legend for HorizBars/Line - Problem with Transparence
Hello Yeray,
thank you for your answer. This fixed my problem.
regards, Oliver
thank you for your answer. This fixed my problem.
regards, Oliver