Page 1 of 1

Imagebar

Posted: Wed Nov 04, 2015 9:50 am
by 15670607
Hi

Please find attached a screen image of my silverlight application.

How do I add a black line at the bottom and the right side of the image bar?

Also, when I export the graph to PNG the whole image bar is coloured black?

And last, each stacked image bar represents a depth interval with a top depth and bottom depth, how do I add the last bottom depth on the bottom of the left axis?

Environment:
Windows 7, VS 2012
.NET 4.0 & Silverlight 5.0
TeeChart version 4.1.2015.8063

Thanks & Regards

Re: Imagebar

Posted: Thu Nov 05, 2015 3:04 pm
by Christopher
Hello,
cjherasmus wrote:How do I add a black line at the bottom and the right side of the image bar?
It seems that image placement is not pixel perfect, I'm afraid. The best I can offer you is to set this pen to invisible, e.g.

Code: Select all

    private void InitializeChart()
    {
      tChart1.Aspect.View3D = false;
      ImageBar bar = new ImageBar(tChart1.Chart);
      bar.FillSampleValues();

      bar.Pen.Visible = false;
    }
cjherasmus wrote: Also, when I export the graph to PNG the whole image bar is coloured black?
This works with the latest public version and the standard ImageBar series above. The image will need to be added to your project, however, e.g.

SilverlightApplication1\Images\ImageBar\Dollar.png (here
Dollar.png
Dollar.png (1.62 KiB) Viewed 5050 times
)

Which version of TeeChart.Silverlight.dll are you using?
cjherasmus wrote: And last, each stacked image bar represents a depth interval with a top depth and bottom depth, how do I add the last bottom depth on the bottom of the left axis?
I'm sorry, but I'm not entirely sure I can visualize your problem here. Could you please give me a few more details to help me?