Nine Chart Examples
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Nine Chart Examples
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.)
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 (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
https://tlittle72.neocities.org/info.html
-
- VIP Livecode Opensource Backer
- Posts: 9802
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Nine Chart Examples
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
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Nine Chart Examples
Free Richard, all free for anyone to use. Terry
Beginner Lab (LiveCode tutorial) and StarterKit (my public stacks)
https://tlittle72.neocities.org/info.html
https://tlittle72.neocities.org/info.html
Re: Nine Chart Examples
Hi Terry
Thanks for the chart examples. Looks very good.
FYI: Thermometer gave an error on line 61:
button "Thermometer": execution error at line 61 (Property: invalid enumeration value), char 1
Livecode 7.0.6
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
-
- VIP Livecode Opensource Backer
- Posts: 9802
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Nine Chart Examples
That's very generous, Terry, but my question was more specific:TerryL wrote:Free Richard, all free for anyone to use. Terry
- 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
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Nine Chart Examples
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
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
https://tlittle72.neocities.org/info.html
-
- VIP Livecode Opensource Backer
- Posts: 9802
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Nine Chart Examples
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
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Nine Chart Examples
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
https://tlittle72.neocities.org/info.html