c9cbc02d602f92f2a1175a2e2666d9626f2d991c kent Tue Jan 4 13:20:24 2022 -0800 Making it show 7 items per facet before unfolding rather than 6, so as to be consistent with hgTrackUi. diff --git src/hg/hgc/facetedBar.c src/hg/hgc/facetedBar.c index 12d6bda..9fa05c5 100644 --- src/hg/hgc/facetedBar.c +++ src/hg/hgc/facetedBar.c @@ -125,24 +125,24 @@ struct wrapContext context = { .valIx = fieldedTableFindFieldIx(selected, "val"), .colorIx = fieldedTableFindFieldIx(selected, "color"), }; context.maxVal = fieldedTableMaxInCol(selected, context.valIx); /* Add wrapper function(s) */ hashAdd(wrapperHash, "val", wrapVal); /* Pick which fields to display. We'll take the first field whatever it is * named, and also count, and the "val" field we added and wrapped. */ char displayList[256]; safef(displayList, sizeof(displayList), "%s,count,val", selected->fields[0]); facetedTableWriteHtml(facTab, cart, selected, selectedFf, displayList, - returnUrl->string, 45, wrapperHash, &context, 6); + returnUrl->string, 45, wrapperHash, &context, 7); /* Clean up and go home. */ printf("\n"); facetedTableFree(&facTab); sqlDisconnect(&conn); }