DataPoint Visibility

4 posts, 0 answers
  1. alizator
    alizator avatar
    12 posts
    Member since:
    Oct 2011

    Posted 17 Feb 2012 Link to this post

    Hello,

    Is there a posibility to hide a datapoint based on some predefined rules? Like don't display values below "X" value?

    For a particulary scenario where the value is empty there is the posibility to choose from EmptyPointBehavior.Zero, EmptyPointBehavior.Gap, EmptyPointBehavior.Zero. But for BarSeriesDefinition the gap behaviour is the same like the Drop behaviour. A good example is the the Drop behaviour for LineSeriesDefinition where an empty value is not replaced with blanks spaces.

    Thank You!
  2. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 22 Feb 2012 Link to this post

    Hello,

    One possible option in this case would be to manipulate the underlying datasource directly - either set null values, or remove the entries. The reason for this is twofold. On one hand, manipulating the visual elements will not bring the desired results. And second, since the chart is correlated to the underlying data, it is best to preserve this correlation. Thus, you can use a separate datalayer, to hold all "valid" values, and bind the chart to it.
    I hope that this is a feasible approach for you.

    Greetings,
    Yavor
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. DevCraft banner
  4. alizator
    alizator avatar
    12 posts
    Member since:
    Oct 2011

    Posted 22 Feb 2012 Link to this post

    Hello,

    Ok I modified my data and all my values that are below "X" value will be equal to NULL. Is there a posibility that the DROP behaviour in BarSeriesDefinition case to acctually drop the series items and not to have a behaviour like in the GAP case?

    Thanks
  5. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 22 Feb 2012 Link to this post

    Hi,

    This behavior, at present, is also dependent on the type of series, as demonstrated here:

    http://demos.telerik.com/silverlight/#Chart/EmptyValues

    This behaviour would not be in line with your requirements when using a bar chart. In this case, you could remove the entries from the underlying datasource.

    Greetings,
    Yavor
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top