Page MenuHomePhabricator

GUI can not display query result
Closed, ResolvedPublic

Description

For this query:

# Given names of all people born in Armenia, on Wikidata
#defaultView:BubbleChart
SELECT ?givenName ?givenNameLabel ?count
WHERE
{
  {
    SELECT ?givenName (count(?item) as ?count)
    WHERE {
      ?item wdt:P19 ?place .
      ?place wdt:P17 wd:Q399 .
      ?item wdt:P735 ?givenName .
    }
    GROUP BY ?givenName
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "hy" }
}
ORDER BY DESC(?count)

GUI returns "unable to display result". Replacing hy with hy,en fixes it.

Event Timeline

Smalyshev created this task.Sep 1 2016, 6:11 AM
Restricted Application added projects: Wikidata, Discovery. · View Herald TranscriptSep 1 2016, 6:11 AM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Error messages:

d3.js:670 Error: <g> attribute transform: Expected number, "translate(NaN,NaN)".attrFunction @ d3.js:670
d3.js:670 Error: <circle> attribute r: Expected length, "NaN".attrFunction @ d3.js:670
d3.js:670 Error: <circle> attribute r: Expected length, "NaN".attrFunction @ d3.js:670
App.js:689 TypeError: Cannot read property 'substring' of undefined
    at SVGTextElement.<anonymous> (BubbleChartResultBrowser.js:135)
    at SVGTextElement.arguments.length.each.value.function.value.textContent (d3.js:782)
    at d3.js:962
    at d3_selection_each (d3.js:968)
    at Array.d3_selectionPrototype.each (d3.js:961)
    at Array.d3_selectionPrototype.text (d3.js:781)
    at SELF.wikibase.queryService.ui.resultBrowser.BubbleChartResultBrowser.SELF._drawBubbleChart (BubbleChartResultBrowser.js:133)
    at SELF.wikibase.queryService.ui.resultBrowser.BubbleChartResultBrowser.SELF.draw (BubbleChartResultBrowser.js:76)
    at App.js:685
thiemowmde triaged this task as Normal priority.Sep 1 2016, 2:59 PM
thiemowmde added a subscriber: Jonas.
Jonas closed this task as Resolved.Nov 2 2016, 2:25 PM

Query seems to work. Maybe there was a problem in d3 library.