Jump to content
Software FX Community

Last month label is not displying in lines graph


Recommended Posts


I have a series of data from January-08 to December-08,

The graph is showing fine but In the X Axis it showing labels from January to November only, December is missing

 and in Bar graph label December also showing fine only problem with Lines graph


HTML code:

    <ChartFX:Chart id="Chart_CumulativeReturn" runat="server" LineWidth="2" Gallery="Lines" MarkerShape="None"           BackColor="ControlLight" BorderColor="#A8A8A8" Width="1000px" Height="450px"  NValues="0"  >           <ConstantLines><ChartFX:ConstantLine Axis=Y Value=1000 Color=black /></ConstantLines>           <AxisY Title-Text="Growth of $1,000"></AxisY>           <LegendBoxObj TextColor="ControlText" Docked="Bottom"></LegendBoxObj>           <SerLegBoxObj Docked="Bottom"></SerLegBoxObj>           <AxisX MinorTickMark="None" Title-Text="Date" Step="31"  >             <LabelsFormat CustomFormat="MMM-yy" Format="Date" ></LabelsFormat>           </AxisX>   <Series>   <chartfx:SeriesAttributes />   <chartfx:SeriesAttributes />   </Series>         </CHARTFX:CHART>


VB Code:

  Chart_CumulativeReturn.DataSourceSettings.DataType(0) = SoftwareFX.ChartFX.DataType.Label   Chart_CumulativeReturn.DataSourceSettings.DataType(0) = SoftwareFX.ChartFX.DataType.Value   Chart_CumulativeReturn.DataSourceSettings.DataType(1) = SoftwareFX.ChartFX.DataType.Label   Chart_CumulativeReturn.DataSourceSettings.DataType(1) = SoftwareFX.ChartFX.DataType.Value

          Chart_CumulativeReturn.DataSource = objDataSet


data tabel:

Col1   Col2       Col3 

956.00   938.80   2008-01-01 00:00:00.000985.16   906.13   2008-02-01 00:00:00.000936.49   900.69   2008-03-01 00:00:00.000942.58   943.47   2008-04-01 00:00:00.000936.08   953.57   2008-05-01 00:00:00.000910.62   871.56   2008-06-01 00:00:00.000893.41   862.93   2008-07-01 00:00:00.000876.88   873.46   2008-08-01 00:00:00.000844.61   794.15   2008-09-01 00:00:00.000817.41   659.62   2008-10-01 00:00:00.000811.44   610.21   2008-11-01 00:00:00.000812.17   614.97   2008-12-01 00:00:00.000


Thank you,


Link to comment
Share on other sites

  • 3 weeks later...


You need to enable the "ShowEnds" flag of the axis style which forces ChartFX to display the minimum and maximum value independently from the step set to the chart. Take a look at the following sample:

Chart1.AxisY.Style |= AxisStyles.ShowEnds;



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