Nine Chart Examples

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
TerryL
Posts: 78
Joined: Sat Nov 23, 2013 8:57 pm

Nine Chart Examples

Post by TerryL » Mon Aug 03, 2015 6:33 pm

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.)
Attachments
Chart 1.png
Chart 1.png (8.71 KiB) Viewed 5597 times
ChartMaker.zip
(14.33 KiB) Downloaded 241 times
Last edited by TerryL on Mon Sep 25, 2017 6:39 pm, edited 2 times in total.
Beginner Lab (LiveCode tutorial) and StarterKit (my public stacks)
https://tlittle72.neocities.org/info.html

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Nine Chart Examples

Post by FourthWorld » Mon Aug 03, 2015 6:45 pm

What license is this distributed under?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

TerryL
Posts: 78
Joined: Sat Nov 23, 2013 8:57 pm

Re: Nine Chart Examples

Post by TerryL » Mon Aug 03, 2015 7:25 pm

Free Richard, all free for anyone to use. Terry
Beginner Lab (LiveCode tutorial) and StarterKit (my public stacks)
https://tlittle72.neocities.org/info.html

golive
Posts: 98
Joined: Wed Jul 01, 2015 5:16 am

Re: Nine Chart Examples

Post by golive » Tue Aug 04, 2015 2:47 am

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

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Nine Chart Examples

Post by FourthWorld » Tue Aug 04, 2015 3:24 am

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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

TerryL
Posts: 78
Joined: Sat Nov 23, 2013 8:57 pm

Re: Nine Chart Examples

Post by TerryL » Wed Aug 05, 2015 6:44 pm

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
Beginner Lab (LiveCode tutorial) and StarterKit (my public stacks)
https://tlittle72.neocities.org/info.html

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Nine Chart Examples

Post by FourthWorld » Wed Aug 05, 2015 8:48 pm

Thanks for the update, Terry. And thanks for adding terms to the stack script - very helpful.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

TerryL
Posts: 78
Joined: Sat Nov 23, 2013 8:57 pm

Re: Nine Chart Examples

Post by TerryL » Mon Sep 25, 2017 6:44 pm

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
Beginner Lab (LiveCode tutorial) and StarterKit (my public stacks)
https://tlittle72.neocities.org/info.html

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”