Jump to content
Software FX Community

Associate a Date in aditional axis X


Recommended Posts

I have a graph in the format ( num x num ) and I created an additional axis "X" in which could be possible associate an especific date to each point (x,y) in the axis "X".

It was necessary to create an axis and define it as YAxis = false.

I would like to know cho the "chartFX" could position the dates according to the points that where defined. Since , when defining the lables of the new axis, the dates are placed equally espaced among them.

Posted Image


I created an exemple bellow with 4 points.

I would like to put this dates in the same position.

Is it possible?

chart1.OpenData(SoftwareFX.ChartFX.COD.Values |

SoftwareFX.ChartFX.COD.AllocHidden, 1, (int)SoftwareFX.ChartFX.COD.Unknown);

  chart1.OpenData(SoftwareFX.ChartFX.COD.XValues |

SoftwareFX.ChartFX.COD.AllocHidden, 1, (int)SoftwareFX.ChartFX.COD.Unknown);

  chart1.XValue[0, 0] = 1.5;

  chart1.XValue[0, 1] = 8.5;

  chart1.XValue[0, 2] = 9.5;

  chart1.XValue[0, 3] = 15.5;

  chart1.Value[0, 0] = 5;

  chart1.Value[0, 1] = 10;

  chart1.Value[0, 2] = 8;

  chart1.Value[0, 3] = 30;


  Axis axis3 = chart1.Axis[2];

  axis3.YAxis = false;

  // ???

  axis3.Label[0] = "01/01/2000";

  axis3.Label[1] = "01/02/2000";

  axis3.Label[2] = "01/03/2000";

  axis3.Label[3] = "01/04/2000"; 



I'm using ChartFX for C#.

Thanks !


Link to comment
Share on other sites

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...