b33425c626414803bbddc702caecc256c5022277 max Fri Mar 20 09:10:59 2026 -0700 defining detailsHistogram tdb statements and an example histogram drawing code for it, used in the trexplorer track, refs #37273 diff --git src/hg/hgc/hgc.h src/hg/hgc/hgc.h index 9ca7c3047b8..9231d4f6d24 100644 --- src/hg/hgc/hgc.h +++ src/hg/hgc/hgc.h @@ -536,30 +536,34 @@ */ void printIframe(struct trackDb *tdb, char *itemName); /* print an iframe with the URL specified in trackDb (iframeUrl), can have * the standard codes in it (like $$ for itemName, etc) */ char *getIdInUrl(struct trackDb *tdb, char *itemName); /* If we have an idInUrlSql tag, look up itemName in that, else just * return itemName. */ void printFieldLabel(char *entry); /* print the field label, the first column in the table, as a . Allow a * longer description after a |-char, as some fields are not easy to * understand. */ +void printFieldLabelWithId(char *entry, char *fieldName); +/* Like printFieldLabel but adds id="bfld_" to the element, + * so JavaScript can find the row by field name. */ + struct slPair* getExtraFields(struct trackDb *tdb, char **fields, int fieldCount); /* return the extra field names and their values as a list of slPairs */ struct slPair *getFields(struct trackDb *tdb, char **fields); /* return field names and their values as a list of slPairs. */ void printEmbeddedTable(struct trackDb *tdb, struct embeddedTbl *embeddedTblList, struct dyString *tableLabelsDy); /* Pretty print a '|' and ';' encoded table or a JSON encoded table from a bigBed field. * The JSON encoded tables get passed through as json so hgc.js can build them instead, * which preserves the table order */ void getExtraTableFields(struct trackDb *tdb, struct slName **retFieldNames, struct embeddedTbl **retEmbeddedTblList, struct hash *fieldsToEmbeddedTbl); /* Parse the trackDb field "extraTableFields" into the field names and titles specified, * and fill out a hash keyed on the bigBed field name (which may be in an external file