User (Legacy) Posted March 8, 2004 Report Share Posted March 8, 2004 Hi, I need to show label point pcnt for all the values in the stacked barchart. However, some labels are not showing up (see attached sample). The following code is used for this purpose (database retrieval omitted): Chart1.HtmlTag = Session("chartTag").ToString Chart1.ImgWidth = 650 Chart1.ImgHeight = 400 Chart1.AxisX.Title.Text = Session("Xaxis") Chart1.AxisX.LabelAngle = 45 Chart1.ShowTips = True Chart1.ImgMap = ImgMap.TitleTip Chart1.PointLabelColor = Color.Black Chart1.DataEditor = False Chart1.PointLabelFont = New Font("Arial Narrow", 6) Chart1.PointLabelAlign = LabelAlign.Center Or LabelAlign.VCenter ... maskString = "%v " + Chr(10) + "(" + "%P " + "%% )" maskString = "%P " + "%%" Chart1.PointLabelMask = maskString Chart1.AxisX.Step = 1 Chart1.FileMask = Chart1.FileMask Or FileMask.All Chart1.Export(SoftwareFX.ChartFX.Internet.Server.FileFormat.XML, "C:\\temp\exp_mygraph.xml") Chart1.Export(SoftwareFX.ChartFX.Internet.Server.FileFormat.Binary, "C:\\temp\exp_mygraph.bin") Chart1.Export(SoftwareFX.ChartFX.Internet.Server.FileFormat.Png, "C:\\temp\exp_mygraph.png") ... dr = SqlHelper.ExecuteReader(ConfigurationSettings.AppSettings("connAtum"), CommandType.StoredProcedure, "up_IRT_get_graph_data", arParms) If arParms(2).Value = 0 Then If Chart1.Visible Then Chart1.DataSource = dr Chart1.DataBind() Call displayConditions(arParms(0).Value) End If Else Chart1.Visible = False lblSelFilters.Text = "No Data Available" End If Even if it will not be very pretty, the label 0% should show up when no data are available. That sometimes happens, but not systematically?! Bug, or am I doing anything wrong? Regards, Zarko Link to comment Share on other sites More sharing options...
Software FX Posted March 8, 2004 Report Share Posted March 8, 2004 Some bars are being clipped, and the point label is clipped as well. Since you are settings the labels to be in the middle of the bars, they may disappear when the middle of the bar is not in the current view. -- 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.