User (Legacy) Posted January 24, 2005 Report Share Posted January 24, 2005 Here is my function below. I have values from time 9:02 to 17:20 each day. I want the labels to begin with 9 and then paint a number for each hour, like 9,10,11,12,13,14,15,16,17, or maybe 9:00, 10:00 etc. Right now, when I point the mouse over the curve it says correctly the X-value (time), and Y-value (indexvalue) but no labels are painted, why? Please think of that sometimes an hour contain less values than 60 and sometimes it contains a few more. private void PaintGraph() { SoftwareFX.ChartFX.Axis axisx = chart1.AxisX; SoftwareFX.ChartFX.Axis axisy = chart1.AxisY; axisy.LabelsFormat.Format = SoftwareFX.ChartFX.AxisFormat.Number; axisx.LabelsFormat.Format = SoftwareFX.ChartFX.AxisFormat.DateTime; axisx.LabelsFormat.CustomFormat = "hh:mm"; axisx.Step = 60; string strRes; string[] strArrRes; strRes = HTTPAPI.GetLinkSync(7,"a1=OMXS30",true); strRes = HTTPAPI.ReplaceEnter(strRes); strArrRes = strRes.Split(' Link to comment Share on other sites More sharing options...
Software FX Posted January 24, 2005 Report Share Posted January 24, 2005 axisx.Step = 60 means "60 days". By your formatting (time only) this seems incorrect. Do you want 60 hours ? Minutes ? double oneHour = 1/24.0; double oneMinute = oneOhour/60; -- FP Software FX Link to comment Share on other sites More sharing options...
User (Legacy) Posted January 24, 2005 Author Report Share Posted January 24, 2005 thanks, I thought it was steps in values. "SoftwareFX Support" <noreply@softwarefx.com> skrev i meddelandet news:m4HqrHiAFHA.1144@webserver3.softwarefx.com... > axisx.Step = 60 > > means "60 days". By your formatting (time only) this seems incorrect. Do > you want 60 hours ? Minutes ? > > double oneHour = 1/24.0; > double oneMinute = oneOhour/60; > > > -- > FP > Software FX > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.