chart x_labels ['httpie''django''flask' plot_dicts {'value' 'label''description of httpie '}{'value' 'label''description of django '}{'value' 'label''description of flask '} chart add(''plot_dictschart render_to_file('bar_descriptions svg'at we define list called plot_dicts that contains three dictionariesone for the httpie projectone for the django projectand one for flask each dictionary has two keys'valueand 'labelpygal uses the number associated with 'valueto figure out how tall each bar should beand it uses the string associated with 'labelto create the tooltip for each bar for examplethe first dictionary at will create bar representing project with , starsand its tooltip will say description of httpie the add(method needs string and list when we call add()we pass in the list of dictionaries representing the bars (plot_dictsw figure - shows one of the tooltips pygal includes the number of stars as default tooltip in addition to the custom tooltip we passed it figure - each bar has customized tooltip label plotting the data to plot our datawe'll generate plot_dicts automatically for the projects returned by the api call