616062bf13f7e2b83b636936ec237d22caad6d94
kate
Tue Mar 28 21:18:23 2017 -0700
Add boxplot to details page. Fix colors on track config page. refs #18736
diff --git src/hg/lib/barChartUi.c src/hg/lib/barChartUi.c
index eca370a..d9a7874 100644
--- src/hg/lib/barChartUi.c
+++ src/hg/lib/barChartUi.c
@@ -12,31 +12,31 @@
#include "rainbow.h"
#include "barChartCategory.h"
#include "barChartUi.h"
/* Restrict features on right-click (popup) version */
/* FIXME: NOT STATIC */
static boolean isPopup = FALSE;
/* Convenience functions for category filter controls */
char *makeCategoryLabel(struct barChartCategory *categ)
/* Display category color and label */
{
char buf[256];
-safef(buf, sizeof(buf), "
| "
+safef(buf, sizeof(buf), " | "
" %s | ",
categ->color, categ->label);
return(cloneString(buf));
}
struct categorySelect
{
struct categorySelect *next;
char *name;
char *label;
boolean checked;
};
static void makeGroupCheckboxes(char *name, char *title, struct categorySelect *selects)
{
@@ -55,31 +55,32 @@
int row=0;
int tableColumns=1;
for (i=0; i=count)
{
printf("");
row++;
col = 0;
}
j = row + col*(count/tableColumns+1);
if (!isPopup)
{
printf(" | " "%s | \n",
- name, categArray[j]->name, categArray[j]->checked ? "checked" : "", categArray[j]->label);
+ name, categArray[j]->name, categArray[j]->checked ? "checked" : "",
+ categArray[j]->label);
}
col++;
}
if ((i % tableColumns) != 0)
while ((i++ % tableColumns) != 0)
printf(" | ");
printf("
|
\n");
}
static void makeCategoryCheckboxes(char *name, struct barChartCategory *categs,
struct slName *checked)
{
// TODO: use style sheet!
puts("