Page MenuHomePhabricator

Allow specifying bubble color via result column
Closed, ResolvedPublic

Description

Currently, the Bubble View on WDQS always automatically chooses the color based on the node name (out of the 20-color scale d3.scale.category20c). We could also use one of the result columns to let the query author explicitly specify the color of a bubble.

I have a patch for this that uses the color from the ?rgb column (if present) as RGB color, which I’m about to upload to Gerrit, but I figure that the discussion of this feature belongs here and not on code review.

Note that this feature is not limited to items that have some color statement; with BIND forms, you can also explicitly color-code arbitrary results.

Example queries: political parties with membership and color, countries with population color-coded by continent

Details

Related Gerrit Patches:

Event Timeline

Restricted Application added a project: Discovery. · View Herald TranscriptJun 5 2016, 4:53 PM
Restricted Application added subscribers: Zppix, Aklapper. · View Herald Transcript

Change 292840 had a related patch set uploaded (by Lucas Werkmeister):
Color bubbles based on rgb column if present

https://gerrit.wikimedia.org/r/292840

Change 292840 merged by jenkins-bot:
Color bubbles based on rgb column if present

https://gerrit.wikimedia.org/r/292840

The change was merged… should this ticket be closed then? CC @Jonas

Jonas closed this task as Resolved.Jun 9 2016, 9:00 PM
Jonas moved this task from Proposed to Done on the Wikidata-Sprint-2016-05-24 board.