Create two python charting functions using google chart api

Ukończone Opublikowano 7 lat temu Płatność przy odbiorze
Ukończone Płatność przy odbiorze

I need two python functions created. Each function will render data provided to it in a chart format. Please read below for information about each function. I would like to use the Google Chart API, unless there is a better one to make the charts visually better.

Function1: Piechart

This function will create a pie chart image using the colors provided in data. The chart will be saved as a png to the filepath provided. If legend is true, the image will provide a legend showing what colors equate to what name. If overlay is true, each pie section will have the numeric count overlayed over the slice.

IMPORTANT NOTE: The data must stay in order as it is in the list

Input: ChartTitle (string), Data (list of dictionaries, see below), Outputfile(string, filepath), Legend=True,Overlay=True, Size=(height,width)#inches

Data structure:

data = [{'Name':'Critical',

'Count':10,

'Color':'Red'},#this is the color of the pie section

{'Name':'High',

'Count':6,

'Color':'Orange'},

{'Name':'Medium',

'Count':0,

'Color':'Yellow'},

{'Name':'Low',

'Count':7,

'Color':'Green'},

{'Name':'Info',

'Count':2,

'Color':'Blue'},

]

Fuction 2: Barchart

This function will create a bar chart image using the colors provided in data.

Input: ChartTitle (string), Data (list of dictionaries, see below),Barcolor='Blue', Outputfile(string, filepath),Overlay=True,Size=(height,width)#inches

data = [{'Name':'Item1',

'Count':10,},

{'Name':'Item2',

'Count':6,},

{'Name':'Item3',

'Count':0,},

{'Name':'Item4',

'Count':7,},

{'Name':'Item5',

'Count':2,},

]

Python

Numer ID Projektu: #13380819

O projekcie

4 ofert Zdalny projekt Aktywny 7 lat temu

Przyznany użytkownikowi:

origami07

Hello, I can make these functions with python. I have been scripting for over 5 years. Regards, Steven

$25 USD w 1 dzień
(11 ocen)
3.8

4 freelancerów złożyło ofertę za $26 w tym projekcie

rehmansattar

A proposal has not yet been provided

$25 USD w ciągu 1 dnia
(0 Oceny)
0.0