We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Misplaced annotation when applying NumericalAxis on FastLineSeries. Bug?

Hi,
thank you very much for providing me with the syncfusion toolkit for drawing charts.
I am trying to add an annotation to a sfchart control carrying a series having custom numerical axis.
Is this a bug or am I doing somethung wrong?
Expected:
 Expected
Obtained:
Obtained
How to reproduce: Remove the Folowing lines from the following code:
Lines to remove:
this.fastlineSeries.XAxis = xAxis;
this.fastlineSeries.YAxis = yAxis;
Code:
namespace test1
{
    /// <summary>
    /// An empty page that can be used on its own or navigated to within a Frame.
    /// </summary>
    public sealed partial class MainPage : Page
    {
        private SfChart chart = new SfChart();
        private FastLineSeries fastlineSeries = new FastLineSeries();

        public MainPage()
        {
            this.InitializeComponent();
        }

        private void button_Click(object sender, RoutedEventArgs e)
        {
            TextAnnotation textAnnotation = new TextAnnotation();
            textAnnotation.CoordinateUnit = CoordinateUnit.Axis;
            textAnnotation.X1 = 0.5;
            textAnnotation.Y1 = 0.5;
            textAnnotation.Text = "symbol";
            textAnnotation.FontSize = 16;
            chart.Annotations.Add(textAnnotation);

        }

        private void Page_Loaded(object sender, RoutedEventArgs e)
        {
            NumericalAxis xAxis = new NumericalAxis();
            NumericalAxis yAxis = new NumericalAxis();
            this.fastlineSeries.XAxis = xAxis;
            this.fastlineSeries.YAxis = yAxis;
            this.chart.Series.Add(this.fastlineSeries);
            this.chartGrid.Children.Add(chart);
        }
    }
}


The whole solution is attached as Zip-File.
Any ideas? 
Thank you!


Attachment: test1_ce573e83.zip

3 Replies

RA Rachel A Syncfusion Team March 24, 2016 06:57 AM UTC

Hi Simon,

Thanks for contacting Syncfusion Support.

We considered “Text Annotation is positioned wrongly, when fastlineseries x and y axis alone defined” as a defect and a support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates.
 
https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents

Regards,
Rachel A.


UN Unknown April 14, 2016 02:24 PM UTC

Hi,
just for the record: Syncfusion released a patch which fixes this issue.
Thank you, Syncfusion, for your kind support,
Simon


SR Samuel Rajadurai Edwin Rajamanickam Syncfusion Team April 15, 2016 05:34 PM UTC

Hi Simon,

Thank you for the update.

We would like to inform that the reported issue will be resolved in the upcoming service pack for volume 1, which is expected to available on end of this April.

Please let us know, if you need any further assistance.

Thanks,
 Samuel

Loader.
Up arrow icon