Пример #1
0
def plotMaker(plotData,placeholder="placeholder",width="600",height="300",xAxisLabel=None,xAxisFontSize=None,xAxisFontFamily=None,xAxisCentralize=None,yAxisLabel=None,yAxisFontSize=None,yAxisFontFamily=None,yAxisCentralize=None):    
        
    
    try:
        dataString = printMultiplesPlotDatas(plotData)            
    except TypeError: 
        dataString = printSinglePlotData(plotData)                          
       
    return {'datasets': dataString,'placeholder':placeholder,'width':width,'height':height,
            'xAxisLabel':xAxisLabel,
            'xAxisFontSize':xAxisFontSize,
            'xAxisFontFamily':xAxisFontFamily,
            'xAxisCentralize':xAxisCentralize,
            
            'yAxisLabel':yAxisLabel,
            'yAxisFontSize':yAxisFontSize,
            'yAxisFontFamily':yAxisFontFamily,
            'yAxisCentralize':yAxisCentralize,            
            }
Пример #2
0
def multiplePlotsMaker(plotDatas,placeholder="placeholder",width="600",height="300"):  

    dataString = printMultiplesPlotDatas(plotDatas)               
        
                
    return {'datasets': dataString,'placeholder':placeholder,'width':width,'height':height}