Jump to content
Software FX Community

Best way to fix the AxisX and AxisY range?


Recommended Posts

I have attached a datatable to the chart control. Datatable always contains one column "DateAxis" which is mapped as AxisX in chartControl. Then i add other series columns to the datatable. To display the correct XAxis value i add following two rows to the datatable.

DataRow rw = dtGraph.NewRow();rw["DateXAxis"] = 01/01/2010;  //for Min valuedtGraph.Rows.Add(rw);

rw = dtGraph.NewRow();rw["DateXAxis"] = 31/01/2010; //for Max valuedtGraph.Rows.Add(rw);

But if series values are available only for 15/01/2010 to 20/01/2010 then AxisX displays range for 15th to 20th. I need to display the AxisX range for 01 to 31 always. Do i need to plot some hidden point or any other suggestion to fix this issue.




Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...