Changeset 2065


Ignore:
Timestamp:
Oct 17, 2011, 2:52:48 PM (12 years ago)
Author:
tjeerd@…
Message:

VIS-42, changed the way the valueAxis is sorted. Also made the padding in the graphs larger

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/visualization/VisualizeController.groovy

    r2064 r2065  
    689689        } else {
    690690            groupedData[ groupAxis ].eachWithIndex { group, i ->
    691                 combined << [ "group": group, "value": groupedData[ valueAxis ][ i ] ]
    692             }
    693             combined.sort { it.group.toString() }
     691                combined << [ "group": (groupAxisType==CATEGORICALDATA ? group.toString() : group), "value": groupedData[ valueAxis ][ i ] ]
     692            }
     693            combined.sort { it.group }
    694694            groupedData[groupAxis] = renderTimesAndDatesHumanReadable(combined*.group, groupAxisType)
    695695            groupedData[valueAxis] = renderTimesAndDatesHumanReadable(combined*.value, valueAxisType)
  • trunk/web-app/js/visualization.js

    r2061 r2065  
    261261                                    labelRenderer: $.jqplot.CanvasAxisLabelRenderer
    262262                                }
     263                            },
     264                            axesDefaults: {
     265                                pad: 1.4
    263266                            }
    264267
     
    294297                                    formatString:'%.2f'
    295298                                }
     299                            },
     300                            axesDefaults: {
     301                                pad: 1.4
    296302                            }
    297303                        };
     
    321327                                    formatString:'%.2f'
    322328                                }
     329                            },
     330                            axesDefaults: {
     331                                pad: 1.4
    323332                            }
    324333                        };                             
     
    357366                                    formatString:'%.2f'
    358367                                }
     368                            },
     369                            axesDefaults: {
     370                                pad: 1.4
    359371                            }
    360372
Note: See TracChangeset for help on using the changeset viewer.