Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Difficult time with a chart

Status
Not open for further replies.

kjjj

Technical User
Apr 23, 2005
19
US
I can't seem to find any information in regards to manipulating a line on a chart (1 dimension) in respect to "turning on - off, true - false, visible - invisible

The only properties that I have found that even come close would be setting

ui.series.line.color to the same as my background color

or possible setting

ui.series.line.thickness = 0 (if thats possible)

I have 6 Lines or fields charted and I want to shut 1 line "off" any suggestions.
thanks

kim
kjjj
 
Thanks Tony,
I just got home I'll give it a try. I was up late reading and found the work you we're working on a few years ago with charts... " [(2 graphs, 2 forms) OK. Just finished incorporating this at work and testing...]"
I think I'm working on something similar (2 charts) when I turn one series off I want to turn the same series on in the other chart.
In another one of your posts ( 2 years ago) You wrote to Peter...
"[Peter, All
var
ui uiObject
endvar
ui.attach(chartname)

; set which series you wish to work on
ui.currentseries=1 ; 2, 3, etc

; this redefines which field the series will represent
ui.seriesname="[tablename.fieldname]"

Yes, you CAN use

ui.YAxisName="[tablename.fieldname]"
; here, I'd be sure to capture the 'currentseries' # to know which to apply stuff later]"

So if I understand this correctly and I'll try it shortly
I need to get a handle to the series before I can use
the "ui.series.line.linestyle=noLine"

Thanks for your help once again

Oh did You ever marry Liz The goddess of paradox? :)
I'll let you know how this works out for me
Thanks
kim
kjjj
 
Yes, Liz and I got married a couple of years ago (January 2003).

Sorry, I don't remember the post(s) you refer to. I tend to dig as deep as I need into something when someone asks, if I don't already know the answer to a question. But I'd think getting a handle to the chart/series being manipulated would be an absolute requirement.

Tony McGuire
"It's not about having enough time. It's about priorities.
 
The subject I was reading was "Graphs - next...."
Your sign off was
<brag>Liz 'the Goddess of Paradox' has agreed to Marry **Me**!</brag>
dec 13 2002
:) :) :) :) I hope it always works and stays fun :) :) :)
Tony I wanted to thank you for the "noLine"
it works great!!!

ui.attach(Dlta1Skin)

ui.currentseries=10
ui.seriesname="[Dlta1.ddrun10]"

if ui.series.line.linestyle=noLine then
ui.series.line.linestyle=SolidLine
ui.Series.Line.Color = rgb(255,241,50)
ui.Series.Line.Thickness = 30

else
if ui.series.line.linestyle=SolidLine then
ui.series.line.linestyle=noLine

endif
endif

I haven't attached the second chart yet, but now feel dialed in.

For convienence(sp?) I thought rather than use rgb(255,241,50) I could spell it out in the Const Method of the form as the colors are refeared to often LtOrg = "rgb(255,241,50)" however at run time I get an error [invalid character "r"gb(255,241,50)]
Normally I would think of the Const Method as string or name = an object, this is a string or name = value .

Any suggestions?
Thanks
kim
kjjj
ps I met my wife in a courtship and marriage class;)
 
Even without the quotes around the rgb() statement, I get "Error. Constant expected".

You CAN use it as a variable:

var
ltOrg longint
endvar
LtOrg = rgb(255,241,50)

Nearly as short as assigning as a Const, and just as simple to reference.

Tony McGuire
"It's not about having enough time. It's about priorities.
 
Thanks Tony I haven't had a chance to get back to you.
A GFV reared it's ugly head on a unbacked up form.
thanks for all your help.
kim
kjjj
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top