Scatterplot: wind down current development, fix label assignment, flatten model config, style fixes

This commit is contained in:
Carl Eberhard
2014-03-14 13:44:26 -04:00
parent 095d7098e5
commit 72907724b8
8 changed files with 21 additions and 16 deletions
@@ -1,5 +1,6 @@
/* =============================================================================
todo:
localize
import button(display), func(model) - when user doesn't match
Move margins into wid/hi calcs (so final svg dims are w/h)
Better separation of AJAX in scatterplot.js (maybe pass in function?)
@@ -141,18 +142,18 @@ var ScatterplotConfigEditor = Backbone.View.extend( LoggableMixin ).extend({
/** tab content to control how the chart is rendered (data glyph size, chart size, etc.) */
_render_chartControls : function( $where ){
//TODO: as controls on actual chart
$where = $where || this.$el;
var editor = this,
config = this.model.get( 'config' ),
$chartControls = $where.find( '#chart-control' );
// ---- skeleton/form for controls
$chartControls.html( ScatterplotConfigEditor.templates.chartControl( config ) );
//console.debug( '$chartControl:', $chartControls );
// ---- slider controls
// limits for controls (by control/chartConfig id)
//TODO: as class attribute
var controlRanges = {
'datapointSize' : { min: 2, max: 10, step: 1 },
'width' : { min: 200, max: 800, step: 20 },