Minor improvements on the bubble plot

This commit is contained in:
Maxime Beauchemin 2015-12-24 22:54:42 -08:00
parent 9d0de6c8e7
commit 0a9600d994
3 changed files with 13 additions and 4 deletions

View File

@ -3,6 +3,8 @@ List of TODO items for Panoramix
## Improvments
* Table description is markdown
* Animated scatter plots
* Filter widget
* Default slice instead of default endpoint
* dashboard controller + filters
* Color hash in JS

View File

@ -127,7 +127,7 @@ function viz_nvd3(slice) {
s += "</table>";
return s;
});
chart.pointRange([5, 5000]);
chart.pointRange([5, fd.max_bubble_size * fd.max_bubble_size]);
} else if (viz_type === 'area') {
chart = nv.models.stackedAreaChart();

View File

@ -476,12 +476,19 @@ class BubbleViz(NVD3Viz):
{
'label': None,
'fields': (
'granularity',
('since', 'until'),
('series', 'entity'),
'x', 'y', 'size',
'limit',
'series', 'entity',
'x', 'y',
'size', 'limit',
)
},
{
'label': 'Chart Options',
'fields': (
('x_log_scale', 'y_log_scale'),
('show_legend', None),
'max_bubble_size',
)
},)