'xlink': repo_dict['html_url'] } plot_dicts.append(plot_dict) # Visualizing the repos with pygal # ----------------------------------------------------------------------------- my_style = LS('#25bec4', base_style=LCS) my_style.title_font_family = 'Helvetica' # NOTE: google fonts will only render when the svg is embedded because the # google stylesheet is added in the XML processing. # my_style.title_font_family = 'googlefont:Slabo' my_style.title_font_size = 14 my_style.foreground = '#586e75' my_style.foreground_strong = '#334145' my_style.foreground_subtle = '#fdca32' my_style.label_font_size = 9 my_style.major_label_font_size = 12 my_style.tooltip_font_size = 11 my_config = pygal.Config() my_config.show_legend = False my_config.truncate_label = 15 my_config.show_y_guides = True my_config.width = 1000 my_config.y_labels = list(range(0, 42000, 2000)) my_config.y_labels_major_count = 3 my_config.x_labels = names
plot_dict = { 'value': submission_dict['comments'], 'label': submission_dict['id'], 'xlink': submission_dict['link'], 'title': title } plot_dicts.append(plot_dict) # Style info: # ----------------------------------------------------------------------------- style = LS('#25bec4', base_style=DS) # style.plot_background = '#586e75' # style.background = '#586e75' style.foreground = '#586e75' # all labels, guides style.foreground_strong = '#13434f' # major labels and title # style.foreground_subtle = '#fdca32' # minor guides # style.font_family = 'Helvetica' style.title_font_family = 'Helvetica' style.label_font_family = 'Helvetica' # style.major_label_font_family = 'Helvetica' # style.value_font_family = 'Helvetica' # style.value_label_font_family = 'Helvetica' # style.tooltip_font_family = 'Helvetica' # style.legend_font_family = 'Helvetica' # style.no_data_font_family = 'Helvetica' style.title_font_size = 18 style.label_font_size = 13