(self)
| 98 | |
| 99 | class TestChart: |
| 100 | def setup_method(self): |
| 101 | data = chartify.examples.example_data() |
| 102 | data = data.sort_values(["date", "fruit"]) |
| 103 | color_order = data["fruit"].unique() |
| 104 | ch = chartify.Chart(x_axis_type="datetime") |
| 105 | ch.plot.scatter( |
| 106 | data_frame=data, |
| 107 | x_column="date", |
| 108 | y_column="unit_price", |
| 109 | size_column="quantity", |
| 110 | color_column="fruit", |
| 111 | color_order=color_order, |
| 112 | ) |
| 113 | self.chart = ch |
| 114 | self.data = data |
| 115 | self.color_order = color_order |
| 116 | |
| 117 | def test_data(self): |
| 118 | data = self.data |