This is a migrated thread and some comments may be shown as answers.

Width and Height must be non-negative

6 Answers 116 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Pat
Top achievements
Rank 1
Pat asked on 10 Sep 2015, 06:50 PM

I'm working on a chart that had a bunch of series as bars.    I'm wanting to change one from a bar to a bubble series and when the chart goes to display I get an error in Telerik code with the exception: "Width and Height must be non-negative".

 The stack trace is in the attached PNG file ("Tracker" is my app).

 

6 Answers, 1 is accepted

Sort by
0
Pat
Top achievements
Rank 1
answered on 10 Sep 2015, 10:35 PM

Nobody has any thoughts?

I thought I'd ping the thread.    And also add that this happens when I am using either 2013/Q3 or 2015/Q2 versions of the Telerik controls.

0
Martin Ivanov
Telerik team
answered on 15 Sep 2015, 01:34 PM
Hello Pat,

Please note that RadChart has many known issues and limitations. Most of them are resolved in the new RadChartView suite. The new components have better implementation and improved performance. They are also very flexible and easier to set up. This is why, I recommend you to try RadCartesianChart instead of RadChart. You can read more about the difference between the charts in the RadChart vs. RadChartView help article.

For your convenience I attached a sample project demonstrating bubble and bar series. Please give the chartview a try and let me know if it works for you. You can also take a look at our SDK examples and demos.

Regards,
Martin
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Nicolas
Top achievements
Rank 1
answered on 07 Mar 2016, 01:52 PM

Hi Martin, 

do you have such limitation / known bug in the RadPivotMap ? 

I do have the same exception without call stack or any xaml code messing with height or width.

Cheers.

 

0
Martin Ivanov
Telerik team
answered on 10 Mar 2016, 08:58 AM
Hi Nicolas,

We are not aware for such issue in the RadPivotMap control. Can you send a runnable code snippets or a project demonstrating the error? 

Also, since your question is not related to the chart control, I would ask you to open a new forum in the RadPivotMap section or a new support ticket that targets RadPivotMap as a product. 

Regards,
Martin
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Nicolas
Top achievements
Rank 1
answered on 10 Mar 2016, 09:12 AM

Hi Martin, 

I norrowed down the issue. There was a negative "Sum" in the DataSource. So the exception message is misleading. I admit then it's my mistake but there should be a clearer message which is probably easy to fix. I suggest two different solutions:

1. Simply testing a negative to have a dedicated exception message like "Sum result must be positive"

2. You can also add a new property in the RadPivotMap indicating how to handle SUM(..) < 0. for instance an enum in {Ignore, ThrowException, UseAbsoluteValue}

 

Just ideas.

Cheers.

 

0
Martin Ivanov
Telerik team
answered on 10 Mar 2016, 01:12 PM
Hello Nicolas,

Thank you for your feedback. We will take it into account.

Regards,
Martin
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
Chart
Asked by
Pat
Top achievements
Rank 1
Answers by
Pat
Top achievements
Rank 1
Martin Ivanov
Telerik team
Nicolas
Top achievements
Rank 1
Share this question
or