a981318c28445664c4fb9c6ef2b6918e2094da98
chmalee
  Fri Mar 4 14:38:29 2022 -0800
Changes from code review. Also restore original bar width calculation as it makes barChartStretchToItem work better, refs #29021

diff --git src/hg/inc/barChartUi.h src/hg/inc/barChartUi.h
index c54f1ab..bb218c1 100644
--- src/hg/inc/barChartUi.h
+++ src/hg/inc/barChartUi.h
@@ -55,32 +55,32 @@
 #define BAR_CHART_METRIC                 "barChartMetric"
 
 /* Suppress whiteout behind graph (to show highlight and blue lines) */
 #define BAR_CHART_NO_WHITEOUT         "noWhiteout"
 #define BAR_CHART_NO_WHITEOUT_DEFAULT        FALSE
 
 /* Support limiting graphs to small or medium hights (bypass semantic zoom) */
 #define BAR_CHART_MAX_GRAPH_SIZE                 "barChartMaxSize"
 #define BAR_CHART_MAX_GRAPH_SIZE_SMALL           "small"
 #define BAR_CHART_MAX_GRAPH_SIZE_MEDIUM          "medium"
 #define BAR_CHART_MAX_GRAPH_SIZE_LARGE           "large"
 #define BAR_CHART_MAX_GRAPH_SIZE_DEFAULT          BAR_CHART_MAX_GRAPH_SIZE_LARGE
 #define BAR_CHART_SIZE_WINDOWS                   "barChartSizeWindows"
 
 /* Let users configure bar width and padding if semantic zoom doesn't work */
-#define BAR_CHART_USER_BAR_WIDTH "barChartBarWidth"
-#define BAR_CHART_USER_BAR_PADDING "barChartBarPadding"
+#define BAR_CHART_USER_BAR_MIN_WIDTH "barChartBarMinWidth"
+#define BAR_CHART_USER_BAR_MIN_PADDING "barChartBarMinPadding"
 
 void barChartCfgUi(char *database, struct cart *cart, struct trackDb *tdb, char *track, 
                         char *title, boolean boxed);
 /* Bar chart track type */
 
 #define barChartAutoSqlString \
 "table barChartBed\n" \
 "\"BED6+ with additional fields for category count and values\"\n" \
     "(\n" \
     "string chrom;       \"Reference sequence chromosome or scaffold\"\n" \
     "uint   chromStart;  \"Start position in chromosome\"\n" \
     "uint   chromEnd;    \"End position in chromosome\"\n" \
     "string name;        \"Item identifier\"\n" \
     "uint   score;       \"Score from 0-1000; derived from total median all categories (log-transformed and scaled)\"\n" \
     "char[1] strand;     \"+ or - for strand\"\n" \