Tags:
tag this topic
create new tag
view all tags
---+ Chart Design Overview _Esta página describe los pasos básicos y las llamadas relacionadas con subrutinas para crear un gráfico simple._ ---++ Description: Diseño de un gráfico puede ser tan simple como llamar dos subrutinas - uno para inicializar una nueva especificación gráfica(.CHART INITIALIZE)y uno para representar el gráfico (.CHART RENDER). El siguiente ejemplo ilustra los estados ILF necesarias para inicializar y hacer un gráfico de sectores por default (/tmp/piechart.png) usando un conjunto de datos previamente definido que consta de siete valores de los datos. <pre> * Initialize Pie Chart PASS PIE CHART FIELD SHARE? N GOSUB 0CD .CHART INITIALIZE * Note: We aren't showing the steps to supply the data, * see the next example * Render chart SET --- TEMP 256 = /tmp/piechart.png PASS --- TEMP 256 FIELD SHARE? Y GOSUB 0CD .CHART RENDER</pre> <br /><img width="678" alt="DefaultPieChart.png" src="%PUBURL%/Main/CDOverviewChartDesign/DefaultPieChart.png" height="597" /> Mediante la adición de una subrutina adicional cuantas llamadas para establecer un título, los siete valores de datos con etiquetas del sector, y una vista 3D, un gráfico más útil puede ser prestado. <pre> * ================================================================ * Create Pie Chart * ================================================================ * Initialize a Pie Chart PASS PIE CHART FIELD SHARE? N GOSUB 0CD .CHART INITIALIZE * Set a title PASS Sales % By Day of Week FIELD SHARE? N GOSUB 0CD .CHART SET TITLE * Set 3D view PASS 3D FIELD SHARE? N GOSUB 0CD .PIE SET VIEW * Add pie sectors with day of week labels and data values PASS 25 FIELD SHARE? N PASS Monday FIELD SHARE? N GOSUB 0CD .PIE SECT ADD NEXT PASS 14 FIELD SHARE? N PASS Tuesday FIELD SHARE? N GOSUB 0CD .PIE SECT ADD NEXT PASS 36 FIELD SHARE? N PASS Wednesday FIELD SHARE? N GOSUB 0CD .PIE SECT ADD NEXT PASS 2 FIELD SHARE? N PASS Thursday FIELD SHARE? N GOSUB 0CD .PIE SECT ADD NEXT PASS 12 FIELD SHARE? N PASS Friday FIELD SHARE? N GOSUB 0CD .PIE SECT ADD NEXT PASS 33 FIELD SHARE? N PASS Saturday FIELD SHARE? N GOSUB 0CD .PIE SECT ADD NEXT PASS 5 FIELD SHARE? N PASS Sunday FIELD SHARE? N GOSUB 0CD .PIE SECT ADD NEXT * ================================================================ * Render chart * ================================================================ SET --- TEMP 256 = /tmp/piechart.png PASS --- TEMP 256 FIELD SHARE? Y GOSUB 0CD .CHART RENDER </pre> <br /><img width="678" alt="piechart.png" src="%PUBURL%/Main/CDOverviewChartDesign/piechart.png" height="597" /> ---++ Comments _Read what other users have said about this page or add your own comments._ <br />%COMMENT% -- Main.SteveFrizzell - 2010-04-01
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r2
<
r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r2 - 2013-02-15
-
RayPelegrino
Home
Site map
Main web
MedicaidBilling web
Sandbox web
TWiki web
Main Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
P
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
E
dit
A
ttach
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback