def area_chart(): ips = get_ips() crits = get_crits() high = get_high() medium = get_medium() low = get_low() stacked_area_chart(ips, crits, high, medium, low)
def basic_scatter_chart(data_option): ips = get_ips() if data_option == '1': score = get_score() scatter_plot(ips, score) elif data_option == '2': total_vuln = get_total_vulnerabilities() scatter_plot(ips, total_vuln) elif data_option == '3': crits = get_crits() scatter_plot(ips, crits) elif data_option == '4': high_vuln = get_high() scatter_plot(ips, high_vuln) elif data_option == '5': medium_vuln = get_medium() scatter_plot(ips, medium_vuln) elif data_option == '6': low_vuln = get_low() scatter_plot(ips, low_vuln) elif data_option == '7': info_vuln == get_info_vulns() scatter_plot(ips, info_vuln)