def view_bar_stacked(): bar_plot = prepare_bar_plot() bar_plot.render_in_browser() bar_plot.render_to_file('timeline_bar_stacked.svg') svgFile = 'C://Users//domin//PycharmProjects//GitHubStatistics//timeline_bar_stacked.svg' name = "C://Users//domin//Downloads//timeline_bar_stacked.pdf" saveToPDF(svgFile, name)
def sevePDFStarStats(): chart = prepare_chart() chart.render_to_file('lang_top_projects.svg') svgFile = 'C://Users//domin//PycharmProjects//GitHubStatistics//lang_top_projects.svg' name = "C://Users//domin//Downloads//lang_top_projects.pdf" saveToPDF(svgFile, name)
def savePDFPythonStats(): chart = prepare_chart() chart.render_to_file('python_repos.svg') svgFile = 'C://Users//domin//PycharmProjects//GitHubStatistics//python_repos.svg' name = "C://Users//domin//Downloads//Python_repos.pdf" saveToPDF(svgFile, name)
def savePDF_line(): line_chart = prepare_line_plot() line_chart.render_to_file('timeline.svg') svgFile = 'C://Users//domin//PycharmProjects//GitHubStatistics//timeline.svg' name = "C://Users//domin//Downloads//timeline_chart.pdf" saveToPDF(svgFile, name)
def savePDF_dot_chart(): dot_chart = prepare_dot_chart() dot_chart.render_to_file('timeline_bar_horizontal.svg') svgFile = 'C://Users//domin//PycharmProjects//GitHubStatistics//timeline_bar_horizontal.svg' name = "C://Users//domin//Downloads//timeline_bar_horizontal.pdf" saveToPDF(svgFile, name)
def savePDF_bar_stacked(): bar_plot = prepare_bar_plot() svgFile = 'C://Users//domin//PycharmProjects//GitHubStatistics//timeline_bar_stacked.svg' name = "C://Users//domin//Downloads//timeline_bar_stacked.pdf" saveToPDF(svgFile, name)