I'm experimenting with Google's GeoCharts. I have state data and city data that I want to display over the city data. This means I want to use the geochart regions
and markers
display mode at the same time. Can this be done, or faked? I can't seem to find a way but was wondering if anyone else has had success.
相关问题
- Broken axis in Google charts
- Google Charts backgroundColor not working with exa
- Drawing a chart after a click of a button in Googl
- Set API key with embed API google analytics
- Google Charts-Code for Category Filter
相关文章
- Google Chart veritcal axis with percentage sign
- Google Combo Chart add horizontal and vertical lin
- Google charts X-axis don't look so good
- GWT with Charts API example from Google not workin
- How to output javascript Date in json
- PHP array into google charts
- How to set google chart API locale
- Google Charts - Avoid showing negative values in y
with some CSS hacking you can use the markers mode and color the region you want. It's not easy, you would have to know wich 'child' path of the svg map you want to color and make advanced css rules.
For example:
Check out the last example of this page, from my website: http://cmoreira.net/interactive-world-maps-demo/advanced-customization/
Hope it helps! Cheers
or maybe put one chart with type "marker" over another of type "region" ? :)
As stated in documentation
mode
parameter could beregion
ormarker
. So they could not be used together. I would recommend you to try jVectorMap library which supports such kind of behavior.VectorWorkz GeoChart lets you define region color binding and marker binding within the same instance, take a look at the VectorWorkz online demo.
I could do it by overlapping two charts one for region, one for markers (using absolute divs with z-index)
you need to use transparent color as style for the marker layer backgroundColor: 'transparent', datalessRegionColor: 'transparent', defaultColor: 'transparent' and put it on the top layer