User (Legacy) Posted February 15, 2002 Report Share Posted February 15, 2002 This code doesn't seem to right align the constant line. It draws the line perfectly except that it doesn't align the label at the right of the graph Chart.OpenDataEx COD_CONSTANTS,1,0 chart.ConstantLine(0).Axis = AXIS_Y2 Chart.ConstantLine(0).LineStyle = CHART_DOT Chart.ConstantLine(0).LineWidth = 1 Chart.ConstantLine(0).Style = Chart.ConstantLine(0).Style OR CC_RIGHTALIGNED chart.ConstantLine(0).Label = "hello" chart.ConstantLine(0).Value = 50 Chart.CloseData COD_CONSTANTS Link to comment Share on other sites More sharing options...
User (Legacy) Posted February 19, 2002 Author Report Share Posted February 19, 2002 The constant CC_RIGHTALIGNED is NOT defined in CfxIE.inc but CfxIEExtra.inc. I included that file and it worked fine for me. Note, at the beginning of your ASP file, you might want to insert the line (it has to be the first line, I think): <% Option Explicit %> What this does is forces all variables to be declared/dimensioned (Dim). It will catch simple mis-spellings and situations like these where you might think a constant has been defined but it actually has not. Hope this helps. Chris "Michael Kolodenko" <mkolodenko@hotmail.com> wrote in message news:bJrdQqmtBHA.1412@webserver1.softwarefx.com... > This code doesn't seem to right align the constant line. It draws the line > perfectly > except that it doesn't align the label at the right of the graph > > Chart.OpenDataEx COD_CONSTANTS,1,0 > chart.ConstantLine(0).Axis = AXIS_Y2 > Chart.ConstantLine(0).LineStyle = CHART_DOT > Chart.ConstantLine(0).LineWidth = 1 > Chart.ConstantLine(0).Style = Chart.ConstantLine(0).Style OR > CC_RIGHTALIGNED > chart.ConstantLine(0).Label = "hello" > chart.ConstantLine(0).Value = 50 > Chart.CloseData COD_CONSTANTS > > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted February 19, 2002 Author Report Share Posted February 19, 2002 Thanks It worked great "Chris Taylor" <ctaylor@belltechlogix.com> wrote in message news:A06VO5XuBHA.2636@webserver1.softwarefx.com... > The constant CC_RIGHTALIGNED is NOT defined in CfxIE.inc but CfxIEExtra.inc. > I included that file and it worked fine for me. Note, at the beginning of > your ASP file, you might want to insert the line (it has to be the first > line, I think): > <% Option Explicit %> > > What this does is forces all variables to be declared/dimensioned (Dim). It > will catch simple mis-spellings and situations like these where you might > think a constant has been defined but it actually has not. Hope this helps. > > Chris > > > "Michael Kolodenko" <mkolodenko@hotmail.com> wrote in message > news:bJrdQqmtBHA.1412@webserver1.softwarefx.com... > > This code doesn't seem to right align the constant line. It draws the > line > > perfectly > > except that it doesn't align the label at the right of the graph > > > > Chart.OpenDataEx COD_CONSTANTS,1,0 > > chart.ConstantLine(0).Axis = AXIS_Y2 > > Chart.ConstantLine(0).LineStyle = CHART_DOT > > Chart.ConstantLine(0).LineWidth = 1 > > Chart.ConstantLine(0).Style = Chart.ConstantLine(0).Style OR > > CC_RIGHTALIGNED > > chart.ConstantLine(0).Label = "hello" > > chart.ConstantLine(0).Value = 50 > > Chart.CloseData COD_CONSTANTS > > > > > > > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.