chartCfg.show_legend = True chartCfg.human_readable = True chartCfg.pretty_print=True if bFilledLineChart: chartCfg.fill = True else: chartCfg.fill = False chartCfg.x_scale = 1 chartCfg.y_scale = 1 chartCfg.x_label_rotation = 45 chartCfg.include_x_axis = True chartCfg.show_dots=False if nMaxDataCount > 0: chartCfg.show_minor_x_labels=False chartCfg.x_labels_major_count=nMaxDataCount chartCfg.js = [ 'svg.jquery.js','pygal-tooltips.js' ] # Use script from local # chartCfg.style = LightSolarizedStyle chartCfg.print_values = False chartCfg.print_zeroes = True chartCfg.no_data_text = "All values are 0" if bLogarithmicChart: chartCfg.logarithmic=True # Makes chart Y-Axis data more readable # Create Linechart if bLineChart: myChart = pygal.Line(chartCfg) myChart.title = 'Line Chart of "' + szInput + '"' myChart.x_title = "Time elasped in seconds" myChart.x_labels = map(str, aData[aFields[0]] ) # myChart.x_labels_major = map(str, aMajorXData ) for iChartNum in range(3, len(aFields) ):
chartCfg.show_legend = True chartCfg.human_readable = True chartCfg.pretty_print = True if bFilledLineChart: chartCfg.fill = True else: chartCfg.fill = False chartCfg.x_scale = 1 chartCfg.y_scale = 1 chartCfg.x_label_rotation = 45 chartCfg.include_x_axis = True chartCfg.show_dots = False if nMaxDataCount > 0: chartCfg.show_minor_x_labels = False chartCfg.x_labels_major_count = nMaxDataCount chartCfg.js = ['svg.jquery.js', 'pygal-tooltips.js'] # Use script from local # chartCfg.style = LightSolarizedStyle chartCfg.print_values = False chartCfg.print_zeroes = True chartCfg.no_data_text = "All values are 0" if bLogarithmicChart: chartCfg.logarithmic = True # Makes chart Y-Axis data more readable # Create Linechart if bLineChart: myChart = pygal.Line(chartCfg) myChart.title = 'Line Chart of "' + szInput + '"' myChart.x_title = "Time elasped in seconds" myChart.x_labels = map(str, aData[aFields[0]]) # myChart.x_labels_major = map(str, aMajorXData ) for iChartNum in range(3, len(aFields)):