Beispiel #1
0
def Gantt(filename, yCol, startCol, endCol):
    try:
        chart = Helpers._chartGant(request, filename, yCol, startCol, endCol)
        return Helpers.SetupParamsAndReturnFilePlot("FilePlot", request,
                                                    [chart.GetChartHTML()])
    except Exception as e:
        return EX.HandleException(e)
Beispiel #2
0
def scatter(filename, xCol, yCol, textCol):
    try:
        chart = Helpers._chartScatter(request, filename, xCol, yCol, textCol)
        return Helpers.SetupParamsAndReturnFilePlot("FilePlot", request,
                                                    [chart.GetChartHTML()])
    except Exception as e:
        return EX.HandleException(e)
Beispiel #3
0
def timeline(filename, timeCol, eventCol):
    try:
        chart = Helpers._chartTimeline(request, filename, timeCol, eventCol)
        return Helpers.SetupParamsAndReturnFilePlot("FilePlot", request,
                                                    [chart.GetChartHTML()])
    except Exception as e:
        return EX.HandleException(e)
Beispiel #4
0
def trendAnimation(filename, yearCols, yCol, yVal='-'):
    try:
        charts = Helpers._chartTrendAnimation(request, filename, yearCols,
                                              yCol, yVal)
        return Helpers.SetupParamsAndReturnFilePlot("FilePlot", request,
                                                    [charts.GetChartHTML()])
    except Exception as e:
        return EX.HandleException(e)
Beispiel #5
0
def plot(plotName, filename, xCol, yCol, isHorizontal="False"):
    try:
        chart = Helpers._chartPlot(request, plotName, filename, xCol, yCol,
                                   isHorizontal == "True")
        return Helpers.SetupParamsAndReturnFilePlot("FilePlot", request,
                                                    [chart.GetChartHTML()])
    except Exception as e:
        return EX.HandleException(e)
Beispiel #6
0
def Sunburst(filename, labelCol, parentCol, valCol):
    try:
        chart = Helpers._chartSunburst(request, filename, labelCol, parentCol,
                                       valCol)
        return Helpers.SetupParamsAndReturnFilePlot("FilePlot", request,
                                                    [chart.GetChartHTML()])
    except Exception as e:
        return EX.HandleException(e)
Beispiel #7
0
def pie(filename, yCol, commaSeparatedColumns):
    try:
        charts = Helpers._chartPie(request, filename, yCol,
                                   commaSeparatedColumns)
        return Helpers.SetupParamsAndReturnFilePlot(
            "FilePlot", request, [chart.GetChartHTML() for chart in charts])
    except Exception as e:
        return EX.HandleException(e)
Beispiel #8
0
def stacked(filename, yCol, commaSeparatedColumns):
    try:
        chart = Helpers._chartStackedBar(request, filename, yCol,
                                         commaSeparatedColumns)
        return Helpers.SetupParamsAndReturnFilePlot("FilePlot", request,
                                                    [chart.GetChartHTML()])
    except Exception as e:
        return EX.HandleException(e)
Beispiel #9
0
def Trend(api_file, filename, yearCols, yCol, yVal='-'):
    try:
        charts = [
            chart.GetChartHTML() for chart in Helpers._chartTrend(
                request, api_file, filename, yearCols, yCol, yVal)
        ]
        return Helpers.SetupParamsAndReturnFilePlot("FilePlot", request,
                                                    charts)
    except Exception as e:
        return EX.HandleException(e)
Beispiel #10
0
def GetTable(filename):
    chart = Helpers._chartTable(filename)
    return Helpers.SetupParamsAndReturnFilePlot("FilePlot", request,
                                                [chart.GetChartHTML()])
Beispiel #11
0
def MultiPlotGet():
    return Helpers.SetupParamsAndReturnFilePlot("MultiPlot", request, [])