ualbertalib / can-link

Front end react app for CanLink project
1 stars 0 forks source link

Names on Universities visualization not appearing #10

Closed sfarnel closed 3 years ago

sfarnel commented 4 years ago

The names of the Universities are cut off on this visualization:

image

Perhaps used a shortened version?

jchartrand commented 3 years ago

I've switched the visualization for the universities to use the same bubbles as the degrees, which does two things:

1) only shows the university names (in the bubbles) if the names fit

2) shows the university names over in a legend so that even if a bubble can't show the full name, you can still figure it out from the legend, like so:

image

You'll notice that some of the university names still are cut off in the legend. Not sure what do to about that, if anything. If you want shorter names, they could be added to the university mapping I guess, but that could be hard since that mapping is dynamically built from the triple store. If you do want something like that, it would be a question for Danoosh, and whether his script could somehow incorporate shorter names.

sfarnel commented 3 years ago

Thanks @jchartrand This is looking great!

For @danydvd can we get alternative names for each University for better display? (Also same for degree names). If so I can help model in whatever way makes sense.

For @CarlsoFiorention since we have two bubble visualizations - university and degree - should we leave them both named as bubbles? what would you suggest otherwise?

danydvd commented 3 years ago

@sfarnel I can add alternative names for universities (institutions.json) but I am not sure what an alternative would be? Mabye we can use something like this: {"http://canlink.library.ualberta.ca/institution/Athabasca_University": {"name": "Athabasca University", "items": "4", "coordinates": [...,...], "short_name": "XYZ"}, ...

jchartrand commented 3 years ago

That 'short_name' field would work for me.

sfarnel commented 3 years ago

Thanks @danydvd this looks good. I will compile the data and send it along

sfarnel commented 3 years ago

Short names:

Athabasca University: Athabasca Brock University: Brock Carleton University: Carleton Concordia University: Concordia Dalhousie University: Dalhousie Laurentian University: Laurentian McGill University: McGill Memorial University of Newfoundland: Memorial OCAD University: OCAD Queen's University: Queen's Royal Roads University: Royal Roads University of Alberta: U Alberta University of British Columbia: U British Columbia University of Guelph: U Guelph University of Manitoba: U Manitoba University of Ontario Institute of Technology: Ontario Tech University of Ottawa: Ottawa U University of Regina: U Regina University of Saskatchewan: U Saskatchewan University of Toronto: U Toronto University of Victoria: U Victoria University of Waterloo: U Waterloo Université de Montréal: U de Montréal York University: York

sfarnel commented 3 years ago

@jchartrand please see this note from Carlos re: we have two visualizations named 'Bubbles': "Given the repetition of widgets, I suggest to call the first one “bubbles” to be consistent with the rest, and the second just “degrees”"

jchartrand commented 3 years ago

@sfarnel I've renamed the second Bubbles visualization to 'degrees'

sfarnel commented 3 years ago

Excellent; thanks!

sfarnel commented 3 years ago

Issued addressed. Closing