How to show USA country with their states area with gChart??

Community Driven Extensions Project
Post Reply
benyamon
Posts: 9
Joined: 20 Sep 2013, 21:40

07 Oct 2015, 00:13

I was reading that gChart has option to show only one country with their States like Country, State and County on the map....
Into the Geo Chart example on http://www.primefaces.org/showcase-ext/ ... ochart.jsf the map show the WORLD map... I only need US Country with their states...
but I can't see where is this option....

Anybody want to help for me..... :)

Regards.
chartModel = new GChartModelBuilder().setChartType(GChartType.GEO)
.addColumns("State", "County")
.addRow(Locale.Florida.getDisplayCountry(englishLocale), 1200)
.addRow(Locale.Alabama.getDisplayCountry(englishLocale), 1800)
.addRow("Texas", 1800)
.addRow(Locale.Chicago.getDisplayCountry(englishLocale), 2000)
.addRow(Locale.Oregon.getDisplayCountry(englishLocale), 2200)
.addRow(Locale.Portland.getDisplayCountry(englishLocale), 2500)
.addRow(Locale.Michigan.getDisplayCountry(englishLocale), 2500)
.addRow(Locale.Ohio.getDisplayCountry(englishLocale), 2500)
.addOption("colorAxis", colorAxis)
.build();

benyamon
Posts: 9
Joined: 20 Sep 2013, 21:40

05 Nov 2015, 22:30

Hello, hello......

Primefaces Team.....

Any help for me since Cybertron???? :lol: :P 8-)

Regards

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests