Jump to content
Software FX Community

Chart Point Labelling Issue


User (Legacy)

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...