Plot Chart Point Color

Thread is closed for posting
2 posts, 0 answers
  1. Rod Barrand
    Rod Barrand avatar
    10 posts
    Member since:
    Dec 2002

    Posted 10 Apr 2010 Link to this post

    Hi, i have a very simple plot chart. The query returns a date and a int value.

    When the int value exceeds a predetermined amount i want the point color red
    If it's not possible to have different colors depending on a value, is it possible to have a red grid line at a given value.

    Thanks
    Rod
  2. Rod Barrand
    Rod Barrand avatar
    10 posts
    Member since:
    Dec 2002

    Posted 10 Apr 2010 Link to this post

    opps, worked it out

    Set it in itemdatabound

     

    DataRowView

     

    drv = e.DataItem as DataRowView;

     

     

    int i = ((int)drv["Reading"]);

     

    if (i > 130)

     

    {

        e.SeriesItem.Appearance.FillStyle.MainColor = System.Drawing.

    Color.Red;
    }

     

Back to Top