コード例 #1
0
    def __init__(self):
        # Variables for the graph
        ranging_variable = "Services"
        frequency = "People Count"
        report_name = "Different Referral Services"
        # Get the dataframe from query
        df = self.get_data(ranging_variable, frequency)

        # Create graph and display
        his = Histogram(df, ranging_variable, frequency, title=report_name)
        his.display()
コード例 #2
0
 def test_case1(self):
     h = Histogram([1, 3, 4, 2, 5])
     h.display()
     self.assertEqual(h.calculateMaxAreaON(), 8)