.NET Framework Developer Center > .NET Development Forums > Chart Controls for .NET Framework > EmptyPointStyle["EmptyPointValue"] Custom Properties and Values
Ask a questionAsk a question
 

AnswerEmptyPointStyle["EmptyPointValue"] Custom Properties and Values

  • Friday, October 30, 2009 8:45 PMDaveMexico Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    What are ALL the Custom Properties allowable for EmptyPointsStyle?  And All the Custom values for EmptyPointsValue?
    From reading tons of stuff online, including this forum,

    1) series.EmptyPointStyle["EmptyPointValue"] = "Average";
    2) series.EmptyPointStyle["EmptyPointValue"] = "Zero";
    Any others?  Where should I look for the complete list.

    Thanks
    -Dave

Answers

All Replies

  • Friday, October 30, 2009 10:32 PMDaveMexico Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    My guess is that there are no other ways for the MSChart to plot my empty point, except as an average of the [i-1] and [i+1] point, or plot it with Y=0.
    But it would be nice to plot my empty points as Y=80.0 for example, since that is the bottom of my graph.

    Also, is there a way to tell the system that an empty point has a value other than float.NaN (or double.NaN)?
    Meaning if it spots a Y value of say 0.0, then that is an EmptyPoint.  That's why I was wondering if there were other custom properties other than ["EmptyPointValue"] .   I have the feeling I missed something obvious here.

    Thanks
    -Dave






  • Sunday, November 01, 2009 5:05 PMAlex GorevMSFT, OwnerUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    "Average" and "Zero" are the only options. Instead of using empty points you can just use a 'regular' data point point and set the same visual attributes as in the empty point.

    Alex.
    http://blogs.msdn.com/alexgor
  • Monday, November 02, 2009 5:07 PMDaveMexico Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    ROTFLOL - oh man, thanks Alex - sometimes I get too deep into this and forget the obvious.  Thanks for entertaining the reasonable side of my questions, as well as the absurd.
    -Dave