Posts

Showing posts with the label chart

Google chart example.

Image
Google chart example: #! /bin/bash TEMP=$(mktemp -t chart.XXXXX) QUERY1=36 QUERY2=64 cat > $TEMP <<EOF <html> <head> <!--Load the AJAX API--> <script type="text/javascript" src="https://www.google.com/jsapi"></script> <script type="text/javascript"> // Load the Visualization API and the piechart package. google.load('visualization', '1.0', {'packages':['corechart']}); // Set a callback to run when the Google Visualization API is loaded. google.setOnLoadCallback(drawChart); // Callback that creates and populates a data table, // instantiates the pie chart, passes in the data and // draws it. function drawChart() { // Create the data table. var data = new google.visualization.DataTable(); data.addColumn('string', 'Title'); data.addColumn('number', 'Value...

Gantt - mgmt tool

Image
Gantt chart is a type of bar chart, developed by Henry Gantt in the 1910s, that illustrates a project schedule. Gantt charts illustrate the start and finish dates of the terminal elements and summary elements of a project. Terminal elements and summary elements comprise the work breakdown structure of the project. Here is some code to play with: [code] rem n - number of steps including start and stopping points. READ N DATA 7 rem get data DIM J$(N), L(N), S(N) FOR J = 1 TO N     READ J$(J), L(J), S(J) NEXT J rem process, length ,start time rem start DATA Begin,1,0  rem processes DATA Shop,12,1 DATA Prep,6,14 DATA Salad,7,14 DATA Cook,8,19 DATA Serve,2,27 rem stop DATA End,0,29 rem report CLS PRINT PRINT PRINT TAB(30); "Time (in minutes)" PRINT "Job"; TAB(11); "0         50       100       150       2...

Simple pie chart with Qbasic/Freebasic.

Image
Just something to play with. DIM Angle(1) DIM MyData(0 TO 4) DIM C(1 TO 4) Pi = 4 * ATN(1)                                                   '  Can use 3.141593 Radius = 200                                                      '  Change these to suit your taste  Xc = 319                               ...