KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Region Geochart in Dashboard #2677

Open Ralf Nohl opened this topic on on May 16, 2022 - 1 comments

Ralf Nohl commented on May 16, 2022

Hi,I need help at Dashboard with a Geochart-Widget. I want to make a Geochart with different Citys.In your documentation to nomal geochart:

    "title"=>"World Polulation 2016",
    "dataSource"=>[
        ['City',   'Population', 'Area'],
        ['Rome',      2761477,    1285.31],
        ['Milan',     1324110,    181.76],
        ['Naples',    959574,     117.27],
        ['Turin',     907563,     130.17],
        ['Palermo',   655875,     158.9],
        ['Genoa',     607906,     243.60],
        ['Bologna',   380181,     140.7],
        ['Florence',  371282,     102.41],
        ['Fiumicino', 67370,      213.44],
        ['Anzio',     52192,      43.43],
        ['Ciampino',  38262,      11]
    ],
    'mapsApiKey'=> 'your-google-key-map',
    "options"=>[
        "region"=>'IT',
        "displayMode" => 'markers',
        "colorAxis" => ["colors"=> ['green', 'blue']]
    ]
]);

Where I have to set up the Option 'region' in the dasboard syntax?

KoolReport commented on May 18, 2022

The syntax will be something like this for GeoChart inside Dashboard

GeoChart::create("myGeoChart")
->options([
        "region"=>'IT',
        "displayMode" => 'markers',
        "colorAxis" => ["colors"=> ['green', 'blue']]
])

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed

Dashboard