Page 1 of 1

Nine Chart Examples

Posted: Mon Aug 03, 2015 6:33 pm
by TerryL
Here are nine charts I made as examples for your own project: pie, bar, bar group, line, spatial, spider, thermometer, speedometer, stem & leaf.

They demonstrate the use of templates, grouping using create, and points for line graphics.

I tried to make them simple and basic. No globals, no custom props, no custom functions, commented, self-contained within one button. Spider requires some manual completion (too complicated to calculate points). Speedometer requires some manual tabStop massage if resized.

Code improvements and additions are welcome.

I included them as an update to my "Beginner Lab" LC tutorial stack, 34 lessons in LiveCode basics at
http://tlittle72.neocities.org/info.html
or the charts in their own "Chart Maker" stack. Terry

(Edit 8/5/15: added horizontal bar chart, minor fixes as per below. Free, can make code modification, modifications can be distributed, can include in proprietary work.)

(Edit 9/25/17: now 15 charts. Added Pie Slice, Election, Dial%, Dial Range, Survey.)

Re: Nine Chart Examples

Posted: Mon Aug 03, 2015 6:45 pm
by FourthWorld
What license is this distributed under?

Re: Nine Chart Examples

Posted: Mon Aug 03, 2015 7:25 pm
by TerryL
Free Richard, all free for anyone to use. Terry

Re: Nine Chart Examples

Posted: Tue Aug 04, 2015 2:47 am
by golive
Hi Terry

Thanks for the chart examples. Looks very good.

FYI: Thermometer gave an error on line 61:

Code: Select all

set the style of the templateGraphic to "rounded rectangle"

button "Thermometer": execution error at line 61 (Property: invalid enumeration value), char 1



Livecode 7.0.6

Re: Nine Chart Examples

Posted: Tue Aug 04, 2015 3:24 am
by FourthWorld
TerryL wrote:Free Richard, all free for anyone to use. Terry
That's very generous, Terry, but my question was more specific:
- Can the user make modifications to the code?
- Can those modifications be distributed?
- Can the user include the code as part of a proprietary work?

There are several open source licenses in common use:
http://opensource.org/licenses

Sometimes folks even make new open source licenses for particular needs. It's often considered helpful to use an existing license where it meets the author's needs, but creating a new license hasn't stopped PHP, Python, and other projects from becoming popular.

It would be helpful if you have the time to add the terms of use to the software so folks know what rights and limitations they have. Even if your intention is to release it to the public domain, noting that explicitly allows people to know how they can use the software.

Thanks again for sharing this. Seems like a good foundation for a wide range of popular chart types.

Re: Nine Chart Examples

Posted: Wed Aug 05, 2015 6:44 pm
by TerryL
Updated Chart Maker stack at the top of the thread.
Thanks golive for the error catch. Changed the style to "rectangle". No error thrown in 6.7.5. Terry

Re: Nine Chart Examples

Posted: Wed Aug 05, 2015 8:48 pm
by FourthWorld
Thanks for the update, Terry. And thanks for adding terms to the stack script - very helpful.

Re: Nine Chart Examples

Posted: Mon Sep 25, 2017 6:44 pm
by TerryL
Updated Chart Maker stack at the top of the thread again, now with 15 charts. Also updated Pie Slice, enabled multi-snapshots, simplified deleting charts. Fun for all ages. Terry