e746fa8cd0ad323ba549ddb3ea05825f2927cec1 kate Mon May 15 15:47:13 2017 -0700 Cleanup some comments. refs #18736 diff --git src/hg/lib/barChartUi.c src/hg/lib/barChartUi.c index cb28ad3..f424dc2 100644 --- src/hg/lib/barChartUi.c +++ src/hg/lib/barChartUi.c @@ -160,32 +160,30 @@ /* Get category colors and descriptions. Use barChartColors setting if present. If not, if there is a barChartBars setting, assign rainbow colors. * O/w look for a table naed track+Category, and use labels and colors there */ { struct barChartCategory *categs = NULL; char *words[BAR_CHART_MAX_CATEGORIES]; char *colorWords[BAR_CHART_MAX_CATEGORIES]; char *labels = trackDbSettingClosestToHome(tdb, BAR_CHART_CATEGORY_LABELS); char *colors = trackDbSettingClosestToHome(tdb, BAR_CHART_CATEGORY_COLORS); struct barChartCategory *categ = NULL; if (labels == NULL) { errAbort("barChart track %s missing required %s setting\n", tdb->track, BAR_CHART_CATEGORY_LABELS); - // TODO: consider getting categories from .as schema - //categs = barChartGetCategories(database, tdb->table); } else { int count = chopLine(cloneString(labels), words); struct rgbColor *rainbow = getRainbow(&saturatedRainbowAtPos, count); if (colors != NULL) { int colorCount = chopLine(cloneString(colors), colorWords); if (colorCount != count) warn("barChart track %s mismatch between label (%d) and color (%d) settings", tdb->track, count, colorCount); } int i; char buf[6]; for (i=0; i