Jump to content
Software FX Community

Legend should be split into columns, but isn't


jch111

Recommended Posts

Usually, ChartFX correctly figures out how many columns to break the legend into based on the height of the chart. However, if a title is added to the legend, ChartFX does not always break the legend into columns as it should. This can result in the title being truncated.

For example:

<%@ LANGUAGE="VBSCRIPT" %>

<!-- #include virtual="/ChartFXInt62/Include/ChartFX.ASP.Core.inc" -->

<%

  Dim chart1

  Set chart1 = Server.CreateObject("ChartFX.ASP.Server")

  chart1.OpenData COD_Values, 2,1

  chart1.Value(0,0) = 1

  chart1.Value(1,0) = 1

  chart1.Value(2,0) = 1  

  chart1.CloseData COD_Values

 

  Chart1.SerLegBoxObj.DrawingArea = False

  Dim serLegBoxObj

  Set serLegBoxObj = chart1.SerLegBoxObj

  serLegBoxObj.Titles(0).Text = "XXXXX"

  Chart1.SerLegBox = True 

  chart1.Gallery = Gallery_Gantt

  chart1.Stacked = Stacked_Normal

  Chart1.Series(0).Legend = "A"

  Chart1.Series(1).Legend = "B"

  Chart1.Series(2).Legend = "C"

%>

<%= chart1.GetHtmlTag(200, 80, "PNG") %>

Notice how the XXXXX legend title is truncated.

Link to comment
Share on other sites

  • 2 weeks later...

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.

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