21bf4f713e944af4e8810544d68c441510ea85a3
kate
  Wed Jul 26 16:31:01 2017 -0700
Add support for maxHeightPixels in trackDb and UI of barChart type tracks. refs #19872

diff --git src/hg/inc/barChartUi.h src/hg/inc/barChartUi.h
index 03ae679..0c959ee 100644
--- src/hg/inc/barChartUi.h
+++ src/hg/inc/barChartUi.h
@@ -2,43 +2,48 @@
 
 /* Copyright (C) 2015 The Regents of the University of California 
  * See README in this or parent directory for licensing information. */
 #ifndef BAR_CHARTUI_H
 #define BAR_CHARTUI_H
 
 /* Color scheme */
 #define BAR_CHART_COLORS                     "colorScheme"
 #define BAR_CHART_COLORS_RAINBOW             "rainbow"
 
 /* Color scheme from user */
 #define BAR_CHART_COLORS_USER                "user"
 #define BAR_CHART_COLORS_DEFAULT             BAR_CHART_COLORS_USER
 
 /* Data transform */
-    // WARNING: this also appears in JS
+
+// WARNING: these also appear in JS
 #define BAR_CHART_LOG_TRANSFORM              "logTransform"
 #define BAR_CHART_LOG_TRANSFORM_DEFAULT      TRUE
 #define BAR_CHART_AUTOSCALE                  "autoScale"
 #define BAR_CHART_AUTOSCALE_DEFAULT           FALSE
 
 /* Data range and viewing limits */
 #define BAR_CHART_MAX_LIMIT                  "maxLimit"
 #define BAR_CHART_MAX_LIMIT_DEFAULT          10000
-    // WARNING: this also appears in JS
 #define BAR_CHART_MAX_VIEW_LIMIT             "maxViewLimit"
 #define BAR_CHART_MAX_VIEW_LIMIT_DEFAULT     50
 
+/* These cann be set via maxHeightPixels */
+#define BAR_CHART_MAX_HEIGHT_MIN             50
+#define BAR_CHART_MAX_HEIGHT_DEFAULT         175
+#define BAR_CHART_MAX_HEIGHT_MAX             250
+
 /* Category (bar) info */
 #define BAR_CHART_MAX_CATEGORIES        100
 
 /* Category filter */
 #define BAR_CHART_CATEGORY_SELECT      "categories"
 
 /* Labels for categories */
 #define BAR_CHART_CATEGORY_LABELS        "barChartBars"
 #define BAR_CHART_CATEGORY_LABEL         "barChartLabel"
 #define BAR_CHART_CATEGORY_LABEL_DEFAULT "Categories"
 
 /* Colors for categories */
 #define BAR_CHART_CATEGORY_COLORS        "barChartColors"
 
 /* Units to display on bar mouseover */