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 ## Improvments
* Table description is markdown * Table description is markdown
* Animated scatter plots
* Filter widget
* Default slice instead of default endpoint * Default slice instead of default endpoint
* dashboard controller + filters * dashboard controller + filters
* Color hash in JS * Color hash in JS

View File

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

View File

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