ammap

AMCharts Maps v4 - Is there a way to have more than two colors in a heatLegend?

北战南征 提交于 2020-06-14 07:13:30
问题 Was thinking that it would be nice to be able to set a range of colors for a heatmap instead of just two (min and max). Like what we do for the gradient list. Something like... function am4themes_myHeatmap(target) { if (target instanceof am4core.ColorSet) { target.list = [ am4core.color("#F7E3D4"), am4core.color("#FFC480"), am4core.color("#DC60BF"), am4core.color("#A43B7D"), am4core.color("#5B0A25") ]; } } See example from mockup If something like this already exists, I would the love to see

Create location sensitive map Ammaps

∥☆過路亽.° 提交于 2019-12-13 06:47:31
问题 I have an array like this: Lat/long. [{-13123,-21312},{-13123,-21312},{-12123,-21312}] OBS: the values may repeat. How can I display an amMap of the kind location sensitive based on these datas using % of occurrences ?. I've not found anything in the docs, please help. A jsfidle will be awesome. 来源: https://stackoverflow.com/questions/35925718/create-location-sensitive-map-ammaps

How do I use an amMap in AngularJS?

瘦欲@ 提交于 2019-12-12 02:43:42
问题 I am using the amCharts library in my Web application in order to render all the charts. They are working fine, but I need to add a mapChart on the page. I am not as familiar with mapCharts as I am with other charts, as using it seems to require a different approach than the others. Please look at the setup of my code and look at what may have gone wrong within my code. The following code adds the library into the index file: <script type="text/javascript" src="bower_components/ammap3/ammap

How to modify the label of Category Field in amCharts

岁酱吖の 提交于 2019-12-12 02:25:34
问题 I am using amCharts in my AngularJS application and I am looking for a way to rename the label of the category field. Following is my code: var configChart = function () { employeeChart = new AmCharts.AmSerialChart(); employeeChart.categoryField = "empId"; var yAxis = new AmCharts.ValueAxis(); yAxis.position = "left"; employeeChart.addValueAxis(yAxis); mcfBarGraph = new AmCharts.AmGraph(); mcfBarGraph.valueField = "employeeRating"; mcfBarGraph.type = "column"; mcfBarGraph.fillAlphas = 1;

Latitude/Longitude coordinates are not correct in amMap USA map

那年仲夏 提交于 2019-12-07 04:20:40
问题 I am building a map using the usaLow.js map. On map init, I call a json method that returns this data: [{latitude: "40.4258686",longitude: "-86.9080655"}] With this data I add to the map's data provider (mapData) with this: mapData.images = []; for(var i = 0; i < resp.length; ++i){ mapData.images.push({ type: "circle", color:"#FF0000", latitude: parseFloat(resp[i].latitude), longitude: parseFloat(resp[i].longitude) }); } map.validateData(); This location should be in Indiana, but this is

Latitude/Longitude coordinates are not correct in amMap USA map

旧城冷巷雨未停 提交于 2019-12-05 07:51:44
I am building a map using the usaLow.js map. On map init, I call a json method that returns this data: [{latitude: "40.4258686",longitude: "-86.9080655"}] With this data I add to the map's data provider (mapData) with this: mapData.images = []; for(var i = 0; i < resp.length; ++i){ mapData.images.push({ type: "circle", color:"#FF0000", latitude: parseFloat(resp[i].latitude), longitude: parseFloat(resp[i].longitude) }); } map.validateData(); This location should be in Indiana, but this is where I see the marker: Do lat/long coordinates need to be converted when not using world maps? If so, how