Graphing Solution...

Mike Bonner bonnmike at gmail.com
Mon May 28 00:08:41 EDT 2018


Actually, change 2 lines and I think it'll work better:
Line 932, change to:  updateGridRect(rectangle [gridLeft(), tPadding +
tNeededTop, mWidth - tPadding - mMaxYLabelWidth, gridBottom()])

Line 1061 change to: fill text tString at left of rectangle [tYRight +
gridPadding(),tY-20,tYRight + mMaxYLabelWidth + gridPadding(),tY+20] on
this canvas


On Sun, May 27, 2018 at 10:05 PM, Mike Bonner <bonnmike at gmail.com> wrote:

> I floundered around cluelessly with it for a bit, randomly changing a few
> things till I got something that seems to work.  I'm sure there are things
> I still misunderstand about this, and that I've added code that probably
> doesn't need to be there.  Also not sure if there will be issues with
> larger labels etc, but if you're interested, the modified stuff can be
> found here: https://www.dropbox.com/s/bsj0u87tlg54xt2/com.livecode.widget.
> linegraphyright.zip?dl=1
>
> If you do a diff of the stock lcb and the lcb in the zip archive, you can
> see all my (unremarked) floundering differences.  As it sits though, the
> default data comes up and displays fine.  Just checked with larger values,
> some of the numbers I poked in there should probably be increased a little,
> though i'm sure theres a better way to calculate such things.
>
> On Sun, May 27, 2018 at 9:28 PM, Brian Milby via use-livecode <
> use-livecode at lists.runrev.com> wrote:
>
>> Here is the link on GitHub...
>>
>> https://github.com/livecode/livecode/tree/develop/extensions
>> /widgets/graph
>>
>> On May 27, 2018, 10:24 PM -0500, Mark Wieder via use-livecode <
>> use-livecode at lists.runrev.com>, wrote:
>> > On 05/27/2018 07:15 PM, Glen Bojsza via use-livecode wrote:
>> > > Hi Brian,
>> > >
>> > > They are good ideas...I haven't done anything with widgets.
>> > >
>> > > How do I get access to the source code?
>> >
>> > The source file is graph.lcb, and where it's stored depends on what
>> > operating system you're working with.
>> >
>> > <InstalledLiveCodeVersion>/Extensions/com.livecode.widget.linegraph
>> >
>> > so on my linux system, I've got it in
>> > /opt/livecodecommunity-9.0.0.x86_64/Extensions...
>> >
>> > and obviously it will be in different places on Windows and OSX.
>> >
>> > But beware that coding in LCB is quite different from "normal" LiveCode
>> > coding. Copy the source file, put it into its own folder somewhere, edit
>> > it (it's a text file), then open it in the extension builder and test
>> > the changes. Have fun.
>> >
>> > --
>> > Mark Wieder
>> > ahsoftware at gmail.com
>> >
>> > _______________________________________________
>> > use-livecode mailing list
>> > use-livecode at lists.runrev.com
>> > Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> > http://lists.runrev.com/mailman/listinfo/use-livecode
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
>



More information about the Use-livecode mailing list