Width and Height must be non-negative

7 posts, 0 answers
  1. Pat
    Pat avatar
    7 posts
    Member since:
    Jan 2015

    Posted 10 Sep 2015 Link to this post

    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).

     

  2. Pat
    Pat avatar
    7 posts
    Member since:
    Jan 2015

    Posted 10 Sep 2015 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 15 Sep 2015 Link to this post

    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
  5. Nicolas
    Nicolas avatar
    3 posts
    Member since:
    Sep 2015

    Posted 07 Mar Link to this post

    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.

     

  6. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 10 Mar Link to this post

    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.
  7. Nicolas
    Nicolas avatar
    3 posts
    Member since:
    Sep 2015

    Posted 10 Mar in reply to Martin Link to this post

    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.

     

  8. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 10 Mar Link to this post

    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.
Back to Top
UI for WPF is Visual Studio 2017 Ready