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
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.
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
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.
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
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.
Thank you for your feedback. We will take it into account.
Regards,
Martin
Telerik