-
Notifications
You must be signed in to change notification settings - Fork 0
create gradient bubble chart example
pythononwheels edited this page Jul 3, 2012
·
1 revision
Task; Importance; Cost; Project; Effort
First Task; 4; 20;1; 39
2nd Task; 12; 10;1; 11
3rd Task; 23; 11;2; 46
another Task; 31; 16;2; 18
one more Task; 5; 8;3; 11
the last Task; 44; 11;3; 20
options for chart generation khz (2.7.2012); [email protected]
"STRIPCHARS" : " \n\t", <--- chars that will be striped from any input token
"SPLITCHARS" : ";", <--- by which char is the csv input separated
"NUM_COLS" : "5" <--- number of input columns
}
chart options:
CHART_TYPE : [SERIES || GRADIENT]
GRAD_COLORS : only used when chart_type is GRADIENT.
"CHART_TYPE" : "GRADIENT", <-- resulting chart type to be genrated
"GRAD_COLORS" : "RED,BLUE", <--- colors for the gradient chart.
"TITLE_CHART" : "A beautiful Chart made by smart_chart and python",
"TITLE_XAXIS" : "Importance",
"TITLE_YAXIS" : "Costs",
"FONTSIZE" : "11",
"OUTPUT_DIR" : "c:/xampp/htdocs/smartchart",
"OUT_FILE" : "2.html"
}
1st parameter defines the colum number 2nd parameter defines the column goal datatype. Can Be STRING,INT, FLOAT so far. By Default, any Column is handled as STRING as is, if nothing else is specified here.
"1" : "STRING",
"2" : "INT",
"3" : "INT",
"4" : "INT",
"5" : "INT"
}
C:\khz\devel\smart_chart>python create_bubble_chart.py -f bubble_input_2.csv ...starting to process data ...found chart_type: GRADIENT ...writing to: c:/xampp/htdocs/smartchart\2.html ...processed: 8 lines