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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Dynamic chart gridview

Thread ID:





115913 Feb 25,2014 08:46 AM UTC Mar 3,2014 03:33 AM UTC WinRT 2
Tags: Chart
Klemen Ošlaj
Asked On February 25, 2014 08:46 AM UTC

I use gridview to show multiply charts. Everything works just fine now. As long as all charts are the same. But if I wish realy dinamyc charts I have one huge problem.

For an example...there is no need, that axisX will always be DateTime. It can somethimes be Numerical, or Category. Is there any possible way to achieve this?

My current XAML code:
       ItemsSource="{Binding List}">
                       <Charts:DateTimeAxis/>  //HERE -> Is possible to make this somehow dynamic?
                       ItemsSource="{Binding dataList}"
               </Charts:SfChart >

Klemen Ošlaj
Replied On February 25, 2014 10:11 AM UTC

Ok, I managed to do this:

class listOfCharts
        public listOfCharts(String id, String name, String type, ObservableCollection<chartsInput> data)
            this.Id = id;
            this.dataList = data; 
            this.primaryAxis = new DateTimeAxis();
            this.secundaryAxis = new NumericalAxis();

        public string Id { get; private set; }
        public ObservableCollection<chartsInput> dataList { get; private set; }
        public dynamic primaryAxis { get; private set; }
        public dynamic secundaryAxis { get; private set; }

<Charts:SfChart PrimaryAxis="{Binding primaryAxis}" SecondaryAxis="{Binding secundaryAxis}" />

But now, how can I choose proper series? For an example ColumnSeries.
And also, when to other page and return back on this page, application crashes(global::System.Diagnostics.Debugger.Break()). I dont know why.

Attachment: sync_2375c68a.zip

Karthikeyan V [Syncfusion]
Replied On March 3, 2014 03:33 AM UTC

Hi Klemen,

Thank you for your products,

We have analysed the reported issue with your sample. But we are unable to reproduce issue. Could you please give more information along with replication procedure? This would be helpful for us to serve you.


Karthikeyan V.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon