Page 1 of 1

Tools for Silverlight

Posted: Wed Sep 29, 2010 2:12 pm
by 8120524
Hi.

I have some doubts about new .Net 2010 Version:

Does TChart .Net have?...

1 - Support for Cursor Tool for Silverlight? (I want to show all series values in my legend using cursor tool (follow mouse), just like in ActiveX).
2 - Support for real time data load like XML and Ajax on ActiveX version?
3 - Support for Zoom and Scroll like AX?

Thaks!

Re: Tools for Silverlight

Posted: Wed Sep 29, 2010 2:14 pm
by 8120524
Ops... I forgot to mention that all question is for Silverlight, ok?

Thanks!

Re: Tools for Silverlight

Posted: Thu Sep 30, 2010 10:18 am
by narcis
Hi IASTECH,

Yes, TeeChart.Silverlight.dll supports all features you requested. I strongly recommend you to download the fully functional evaluation version available at http://www.steema.com/evaluation/net and check the Silverlight demo included.

Re: Tools for Silverlight

Posted: Mon Oct 04, 2010 11:36 am
by 8120524
Hi!

I've tested a lot of functions that i use in Ax and works fine. I didn't find a way to load data with XML content data like Ax. In silverlight samples i found only method "Add" to add each point. I need something faster to load huge amount of data in silverlight.

Best Regards!

Re: Tools for Silverlight

Posted: Mon Oct 04, 2010 5:25 pm
by 8120524
Hi!

I'm facing a problem with cursor tool in silverlight version. It's too slow to follow mouse cursor, instead of Ax.

I just put the following code at page startup and i didn't associated with any series in order to try a faster cursor. I'll use timestamp of cursor position to calculate series value.

Is there something more efficient that works like cursor in Ax version?

Sample code at startup page:
CursorTool cursorTool1 = new CursorTool(tChart1.Chart);
cursorTool1.Active = true;
cursorTool1.FollowMouse = true;
cursorTool1.Style = CursorToolStyles.Both;

Note: My chart has 10000 points divided by 5 line series. Two thousand points per series.

Thanks!

Re: Tools for Silverlight

Posted: Tue Oct 05, 2010 4:14 pm
by 10050769
Hello IASTECH,

Sorry for delay. I have found a solution, because you can increase performance in your application. I have made a simple project based with this link and adapted for your code.

Code: Select all

public MainPage()
        {
            InitializeComponent();
            InitializeChart();
        }

        private Steema.TeeChart.Silverlight.Styles.FastLine series1, series2, series3, series4, series5;
        private void InitializeChart()
        {
           //Sample code at startup page:
           series1 = new Steema.TeeChart.Silverlight.Styles.FastLine(tChart1.Chart);
           series2 = new Steema.TeeChart.Silverlight.Styles.FastLine(tChart1.Chart);
           series3 = new Steema.TeeChart.Silverlight.Styles.FastLine(tChart1.Chart);
           series4 = new Steema.TeeChart.Silverlight.Styles.FastLine(tChart1.Chart);
           series5 = new Steema.TeeChart.Silverlight.Styles.FastLine(tChart1.Chart);
        
           series1.FillSampleValues(2000);
           series2.FillSampleValues(2000);
           series3.FillSampleValues(2000);
           series4.FillSampleValues(2000);
           series5.FillSampleValues(2000);

           series1.DrawAllPoints = false;
           series2.DrawAllPoints = false;
           series3.DrawAllPoints = false;
           series4.DrawAllPoints = false;
           series5.DrawAllPoints = false;

           Steema.TeeChart.Silverlight.Tools.CursorTool cursorTool1 = new Steema.TeeChart.Silverlight.Tools.CursorTool(tChart1.Chart);
           cursorTool1.Active = true;
           cursorTool1.FollowMouse = true;
           cursorTool1.Style = Steema.TeeChart.Silverlight.Tools.CursorToolStyles.Both;

        }   
Could you please, tell us if previous code works as you want?

I hope will helps.

Thanks,

Re: Tools for Silverlight

Posted: Wed Oct 06, 2010 10:37 am
by 8120524
Hi!

Unfortunately silverlight cursor tool is very slow unlike ax version. Have you another suggestion?! I need to show Y values while user move mouse cursor over the graph, like Google Finance Graph: http://www.google.com/finance?q=INDEXDJ ... SDAQ:.IXIC.

Do you think that Flex version could be better?! I'm running this demo on a Intel i7 with 8gb RAM, so computer is not the problem... :D

Please, let me know if there's a better way to load a huge amount of data instead of using "Line.Add" method.

Best Regards!

Re: Tools for Silverlight

Posted: Fri Oct 08, 2010 9:49 am
by 10050769
Hello IASTECH,

Sorry for the delay. I am afraid that the only think I could recommend you is take a look in our article of Real-TimeCharting where explain how you do optimized your performances of your charts. You can find it here.

Thanks,

Re: Tools for Silverlight

Posted: Fri Oct 08, 2010 10:12 am
by 8120524
Thanks, but i already knew this article. I'll try something with Flash/Flex.

Best regards!