Page 1 of 1

Legend Position in Silverlight application

Posted: Thu Sep 27, 2012 10:39 am
by 9641422
Hello Steema Support,

I am using tee chart in Silverlight Application .I am facing problem regarding the legend of the tee chart .I have set the legend's Alignment as bottom but when first time page is loading then Legend is coming on the extreme left corner on the bottom of chart and as I move mouse on chart then it would come on center on the bottom position of the chart .I have only set tee chart Legend's property in terms of Visibility and Alignment.
I want that Legend should come on the center on the bottom of the chart.

Any suggestion will be highly appreciated.

Thanks & Regards

Planoresearch

Re: Legend Position in Silverlight application

Posted: Fri Sep 28, 2012 10:36 am
by 10050769
Hello Amol,

I can not reproduce your problem using last version of TeeChart Silverlight and next code:

Code: Select all

        public MainPage()
        {
            InitializeComponent();
            InitializeChart();
        }
        private void InitializeChart()
        {
            tChart1.Aspect.View3D = false;
            tChart1.Legend.Alignment = LegendAlignments.Bottom;

            for (int i = 0; i < 8; i++)
            {
                new Steema.TeeChart.Silverlight.Styles.Line(tChart1.Chart);
                tChart1[i].FillSampleValues();
            }
        }
Can you please tell us which version are you using?

Thanks,