Skip to content

Commit

Permalink
Increased font size in table header slightly. Added - before plot nam…
Browse files Browse the repository at this point in the history
…e in radar charts so it is clear that is a menu item. Added Templates title and removed tooltip
  • Loading branch information
airenzp authored and xzhou82 committed Dec 10, 2024
1 parent 7ce6c3b commit cb1fa07
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 5 additions & 1 deletion client/dom/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
3 changes: 1 addition & 2 deletions client/mass/charts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 //////////////////////
{
Expand Down
4 changes: 2 additions & 2 deletions client/plots/profileForms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit cb1fa07

Please sign in to comment.