คำถาม Display predetermined xAxis points Asp:Chart

  • 12 กรกฎาคม 2555 16:48
     
      มีโค้ด

    I have 13 points on my X-Axis. 
    They always have to appear even if their Y-Value is null.

    8 | 7 | * 6 | * 5 |* * 4 |* * * 3 |* * * * * 2 |* * * * * * * * * 1 |* * * * * * * * * * _ _ _ _ _ _ _ _ _ _ _ _ _ 1 2 3 4 5 6 7 8 9 10 11 12 13


    Like in the exemple above, I need to see 4, 6 and 11 even if they are empty. The problem is I never know which

    column is going to be empty and which will not.

    Right now I have set IsXValueIndex to true to get the values I want. Filled Points collection in the serie with

    my 13 values but I still only have values where Y is not null. Any idea how I can accomplish this ?




    • แก้ไขโดย PhaDaPhunk 12 กรกฎาคม 2555 16:53 modif
    •  

ตอบทั้งหมด

  • 16 กรกฎาคม 2555 6:06
    ผู้ดูแล
     
     
    can you show the code on how you populate the Series, please?

    “This forum post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.”