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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to use ChartAxis.Range property or what is the syntax of DoubleRangeConverter?

Thread ID:

Created:

Updated:

Platform:

Replies:

71326 Jan 28,2008 08:45 AM UTC Jan 28,2008 02:55 PM UTC WPF 3
loading
Tags: Chart
Mike Eshva
Asked On January 28, 2008 08:45 AM UTC

Hi guys!
You've developed a great WPF chart library. I think to buy it for our company. Currently I'm evaluating a few similar libraries to choose one. Your is the best for the moment, but... Help reference file is lack of ditails. Every member has a place holder but no more. Shame on you! Hope it's just a qustion on time. When do you plan to update it?

My current problem is with using of DoubleRangeConverter class. What is the syntax of string to be coverted into an instance of this class?



Administrator [Syncfusion]
Replied On January 28, 2008 11:13 AM UTC

Hi Mike,
You can set the range of the Chart Axis using the following lines of code.

[XAML]



...
...



Similarly, you can set for SecondaryAxis also.

[C#]

ChartAxis cpr = myChart.Areas[0].PrimaryAxis;
cpr.IsAutoSetRange = false;
cpr.Interval = 10;
cpr.Range = new DoubleRange(1, 100);


Currently we are working on the user guide and will be available in the next release. However the class reference file will be available in the installation folder and also you can visit http://www.syncfusion.com/library to view online documentation.

Please let me know if you have any questions.

Thanks for interest in Syncfusion products.

Regards,
Asem



Mike Eshva
Replied On January 28, 2008 01:09 PM UTC

Well, but what if I don't know in advance some of the values (min or max). In my test case I know the minimum (0) and want the maximum be auto assigned by the maximum value in the serie(s). Can I use something like "0,*"? Exactly "0,*" I can't use, I've tested it. But for that you need to make DoubleRange.Start and DoubleRange.Stop nullable (double? type). Currently it isn't. May be it's a desired feature? Don't you think so?


Asem Ibohal Meitei [Syncfusion]
Replied On January 28, 2008 02:55 PM UTC

Hi Mike,

Use of * for auto range to set the range of the chart axis is not available in the WPF chart. Instead, by having the IsAutoRange property as true and RangePadding property as none, chartaxis range can be set from minimum value of chart series to maximum value of the chart series respectively and it will be updated automatically when a value higher than range is added.

Let me know if you have any queries

Thanks for your interest in Syncfusion products.

Regards,
Asem


CONFIRMATION

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.

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

;