Giter Site home page Giter Site logo

Comments (5)

alfredorubin96 avatar alfredorubin96 commented on August 11, 2024

Hi, looks like it's mapped on another kind of format, for an example look here: https://raw.githubusercontent.com/neo4j-labs/neodash-static/main/world_polymap_level_1_entities.json. I will file a bug for it and add a selector to choose between the iso 3166 and the other

from neodash.

Lupanoide avatar Lupanoide commented on August 11, 2024

Thank you, I have seen your pull request, but this don't seem to be the problem. I have seen that you are trying to change the ISTAT code of the regions to the ISO_3166 code, but this don't solve the problem.

I have already the ISTAT code of the Italian Regions as property of my nodes:

MATCH (r:Regione) RETURN "IT."+ apoc.text.lpad(toString(r.idRegione), 2, '0'), r.nomeRegione LIMIT 5

╒════════════════════════════════════════════════════╤════════════════╕
│"IT."+ apoc.text.lpad(toString(r.idRegione), 2, '0')│r.nomeRegione   │
╞════════════════════════════════════════════════════╪════════════════╡
│"IT.01"                                             │"Abruzzo"       │
├────────────────────────────────────────────────────┼────────────────┤
│"IT.02"                                             │"Basilicata"    │
├────────────────────────────────────────────────────┼────────────────┤
│"IT.03"                                             │"Calabria"      │
├────────────────────────────────────────────────────┼────────────────┤
│"IT.04"                                             │"Campania"      │
├────────────────────────────────────────────────────┼────────────────┤
│"IT.05"                                             │"Emilia-Romagna"│
└────────────────────────────────────────────────────┴────────────────┘

If I try to convert the query inside of the Area Map visualization settings, nothing happens:

MATCH (r:Regione)<-[:HA_REGIONE]-(p:Provincia)
RETURN "IT."+ apoc.text.lpad(toString(r.idRegione), 2, '0') AS code, count(p) AS value

Probably there is a setting that should be enabled and it is not documented or there is a bug. Could you please verify? Thank you

from neodash.

alfredorubin96 avatar alfredorubin96 commented on August 11, 2024

Did you enabled the drilldown options inside the card settings?

from neodash.

Lupanoide avatar Lupanoide commented on August 11, 2024

Yes, sure. But I haven't passed any country ISO3 format cause I would like to visualize statistics on Italian regions. Regions visualization works only as a drill down of the country?

from neodash.

Lupanoide avatar Lupanoide commented on August 11, 2024

Yes, It works only as a drilldown of the country!!

MATCH (c:Comune)-[:HA_PROVINCIA]->(p:Provincia)-[:HA_REGIONE]->(r:Regione)-[:IN_COUNTRY]->(n:Nazione)
WITH c, r AS region, n AS country
CALL {
    WITH c, country
    RETURN country.sigla_iso_3166_1_alpha_3_stato as code, count(c) as value
    UNION
    WITH c, region
    RETURN  "IT."+ apoc.text.lpad(toString(region.idRegione), 2, '0') as code, count(c) as value
}
WITH code, sum(value) AS value
RETURN code, value

Thank you for your time! Could you please add to the documentation that the regions visualization is possible only as a drilldown of the country?

from neodash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.