Display predetermined xAxis points Asp:Chart

Pregunta Display predetermined xAxis points Asp:Chart

  • 12 Juli 2012 16:48
     
      Memiliki Kode

    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 ?




    • Diedit oleh PhaDaPhunk 12 Juli 2012 16:53 modif
    •  

Semua Balasan

  • 16 Juli 2012 6:06
    Moderator
     
     
    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.”