Return an |BubbleChartData| object populated with *ser_count* series, each having *point_count* data points.
(ser_count, point_count)
| 657 | |
| 658 | |
| 659 | def make_bubble_chart_data(ser_count, point_count): |
| 660 | """ |
| 661 | Return an |BubbleChartData| object populated with *ser_count* series, |
| 662 | each having *point_count* data points. |
| 663 | """ |
| 664 | points = ( |
| 665 | (1.1, 11.1, 10.0), |
| 666 | (2.1, 12.1, 20.0), |
| 667 | (3.1, 13.1, 30.0), |
| 668 | (1.2, 11.2, 40.0), |
| 669 | (2.2, 12.2, 50.0), |
| 670 | (3.2, 13.2, 60.0), |
| 671 | ) |
| 672 | chart_data = BubbleChartData() |
| 673 | for i in range(ser_count): |
| 674 | series_label = "Series %d" % (i + 1) |
| 675 | series = chart_data.add_series(series_label) |
| 676 | for j in range(point_count): |
| 677 | point_idx = (i * point_count) + j |
| 678 | x, y, size = points[point_idx] |
| 679 | series.add_data_point(x, y, size) |
| 680 | return chart_data |
| 681 | |
| 682 | |
| 683 | def make_category_chart_data(cat_count, cat_type, ser_count): |
no test coverage detected
searching dependent graphs…