From cb1fa07282b4448df76752563761d63604a22718 Mon Sep 17 00:00:00 2001 From: Airen Zaldivar Date: Tue, 10 Dec 2024 15:42:22 -0600 Subject: [PATCH] Increased font size in table header slightly. Added - before plot name in radar charts so it is clear that is a menu item. Added Templates title and removed tooltip --- client/dom/table.ts | 6 +++++- client/mass/charts.js | 3 +-- client/plots/profileForms.ts | 4 ++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/client/dom/table.ts b/client/dom/table.ts index fa99431f6e..b05073aa64 100644 --- a/client/dom/table.ts +++ b/client/dom/table.ts @@ -183,7 +183,11 @@ export function renderTable({ } if (showHeader) for (const c of columns) { - const th = theadRow.append('th').text(c.label).attr('class', 'sjpp_table_item sjpp_table_header') + const th = theadRow + .append('th') + .style('font-size', '1.1em') + .text(c.label) + .attr('class', 'sjpp_table_item sjpp_table_header') if (c.width) th.style('width', c.width) if (c.title) th.attr('title', c.title) } diff --git a/client/mass/charts.js b/client/mass/charts.js index 69fae7390f..4a65fafa41 100644 --- a/client/mass/charts.js +++ b/client/mass/charts.js @@ -146,8 +146,7 @@ function getChartTypeList(self, state) { chartType: 'profileForms', clickTo: self.showTree_select1term, usecase: { target: 'profileForms', detail: 'tw' }, - config: { chartType: 'profileForms' }, - tooltip: 'Visualization tools to provide insights and assist in leveraging data' + config: { chartType: 'profileForms' } }, ////////////////////// PROFILE PLOTS END ////////////////////// { diff --git a/client/plots/profileForms.ts b/client/plots/profileForms.ts index 512a5407df..51c103e089 100644 --- a/client/plots/profileForms.ts +++ b/client/plots/profileForms.ts @@ -189,7 +189,7 @@ export class profileForms extends profilePlot { .attr('x', x + 80) .attr('y', 18) .style('font-weight', 'bold') - .text('* Site coordinator') + .text('* Site coordinator vs POC staff') } onMouseOver(event) { @@ -284,7 +284,7 @@ export async function getPlotConfig(opts, app, _activeCohort) { let config = formsConfig[module] if (!config) throw 'No data available for the module ' + module config.settings = getDefaultProfileFormsSettings() - config.header = 'Templates' + config.header = 'Templates: Visualization tools to provide insights and assist in leveraging data' config = copyMerge(structuredClone(config), opts) for (const plot of config.plots) { await fillTwLst(plot.terms, app.vocabApi)