Jump to content
Software FX Community

Re: Legend Values Too Large


User (Legacy)

Recommended Posts

After a little more research, it turns out NO text fields can be displayed

on the legend. This is even if there as short as 3 characters. Any number

fields can be displayed on the legend (X-Axis) successfully. The database is

Access 2000, on an IIS 5.0 server with all the latest ODBC drivers. Here is

the stripped down code that produces a bar graph with 10 points and Red tag

fields:

<!-- #include virtual="/CfxTemp/CfxIE.inc" -->

<%

Set chart = Server.CreateObject("ChartFX.WebServer")

Chart.LoadDefault 1

chart.RgbBk = RGB(255,255,255)

Set Conn = Server.CreateObject("ADODB.Connection")

Conn.Open ("Survey")

sql = "SELECT ROUND(Expr1,1), Tag FROM `Report 1` WHERE `Primary Tag`

= '"+strDistrict+"'"

Set RS = Conn.Execute(sql)

Chart.AdoResultset RS

Chart.DataType(0) = CDT_VALUE

Chart.Datatype(1) = CDT_STRING

Chart.ImgQuality = 100

Chart.ImgSmooth = 0

Chart.LegStyle = CL_VERTXLEG

Chart.BottomGap=50

Chart.Grid = 1

Conn.Close

set conn = nothing

%>

<p>

<%= chart.GetHtmlTag(700,400) %>

"Lee Wolfe" <Lee.Wolfe@Compaq.com> wrote in message

news:#CHgsgofAHA.3648@sfxserver.softwarefx.com...

> I have X-AXIS legend values that are 20 characters long. Setting a large

> bottom gap, turning off single line, or setting the legend to verticle

still

> produces a Red tag number. This Red tag number means the string is too

large

> and will not print out. I even tried a seperate right aligned legend, and

> just the Red tag labels print. How can I print legend values this long?

>

> -Lee

>

>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...