Ask a questionAsk a question
 

AnswerChart Control Series alignment with date

  • Monday, November 02, 2009 3:18 PMSRIki Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi,

    I am using the chart control to display multiple series whose Xaxis is days of a month. I marked the 'XValueType' as 'Date' for all the series and used AlignDataPointsByAxixLabel. When there is data for all days of a month, the series are aligned correctly and I have no problem. However, if there is no data for a particular day for one series, the days are not in the correct order. My situation can be best understood by seeing a sample chart which i uploaded at
    http://www.mediafire.com/?sharekey=507ee76cd5c92126e5c3dee5769931ece04e75f6e8ebb871

    In the sample chart, the 'yellow' series should be distributed amoung the 'blue' series based on the dates. But, it is to the end. How can I fix it? The data for the series are coming from individual sqlcommands and being binded using

    Chart1.Series(

    "series1").Points.DataBindXY(myReader3, "Date", myReader3, "Value")

    Thank you for your help.

Answers

  • Thursday, November 05, 2009 7:48 AMKishorePV Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Just go through the winforms samples Working with data->Data Manipulation->Series Allignment.
    May be you will find a solution there
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

All Replies

  • Thursday, November 05, 2009 7:48 AMKishorePV Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Just go through the winforms samples Working with data->Data Manipulation->Series Allignment.
    May be you will find a solution there
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.