amcharts

creating serial bar graph for complex data amcharts

天大地大妈咪最大 提交于 2019-12-12 02:36:01
问题 Below is the response I get as json from server: [{ "data1": { "name": "Test1", "count": 0, "amount": 0, "amtData": [ 0,0,0,0 ], "cntData": [ 0,0,0,0 ], "color": "#FF0F00" }, "data2": { "name": "Test2", "count": 1, "amount": 4164, "amtData": [ 4164,0,0,0 ], "cntData": [ 1,0,0,0 ], "color": "#FF0F00" }, "data3": { "name": "Test3", "count": 1, "amount": 2509, "amtData": [ 2509,0,0,0 ], "cntData": [ 1,0,0,0 ], "color": "#FF0F00" }, "data4": { "name": "Test4", "count": 1, "amount": 9909, "amtData

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;

How to update global data in clickMapObject listener from AmChart

纵然是瞬间 提交于 2019-12-11 17:53:17
问题 I'm learning about AmChart js lib and I have some doubts. I have one map that show all devices registered in my database (look the print below) So, I would like to implement one functionality for when the user clicks on the bubble from one country in the map, the table list is filtered by country, so, in the device, table should show only devices from the country of the bubble that user clicked. for to do this filter when a user clicks in the bubble, I'm using the addListener from Amchart (

AmCharts: ChartScrollBar going out of chartdiv

坚强是说给别人听的谎言 提交于 2019-12-11 17:04:59
问题 I am Using amCharts for displaying stock data. I have a scrollBar enabled and positioned at bottom. I have a chartholderdiv which has style: #chartholderdiv{ height:80%; width:80%; overflow:visible; background-color:#db946b; } For clarity, I have added a background color to see the limits of div in the following image. I have a chartdiv (which is provided to AmCharts.makeChart) which has style: #chartdiv { width: 100%; height: 100%; } HTML: <div id="chartholderdiv"> <div id="chartdiv"></div>

How to apply SVG and font filters to amcharts4?

雨燕双飞 提交于 2019-12-11 16:59:13
问题 I am trying to apply filters to my JS object, where <%=strKey%> is a dynamically scripted object name, so, each iteration, the name changes. // dynamically writing JS - key value is the chart name var <%=strKey%> = am4core.create("<%=strKey%>", am4charts.GaugeChart); // has to mach the HTML IDs <%=strKey%>.innerRadius = am4core.percent(82); // innerRadius begins at 82%, leaving white-space inside the gauge The documentation lists JSON format only. How would I apply this to my implementation?

How to provide data to Animated time-line pie amcharts?

旧城冷巷雨未停 提交于 2019-12-11 15:27:33
问题 I am trying to push data dynamically during runtime for the Animated Time-Line Pie Chart Here is the code: var array = new Array(); function pushvalue(curyear,curmonth,monvalue){ array.push({year: curyear, month: curmonth, count: moncount}); } var chartdata = new Array(); for (var i=1; i < array.length; i++){ chartdata = { “Year”: array[i].year: [ { “Month”: array[i].month, “Count”: array[i].count }, ] }; } The value for array is got from input from file. The problem I get is the chartdata

Amcharts heatmap chart translate country names

 ̄綄美尐妖づ 提交于 2019-12-11 15:20:15
问题 I have an Amcharts heatmap chart with a world map. I would like to translate country names in Italian in the balloon text. I have a file where the names of the countries are translated in Italian, like this var mapTranslations = {"Andorra": "Andorra", "United Arab Emirates": "Emirati Arabi Uniti", "Afghanistan": "Afghanistan", "Bosnia and Herzegovina": "Bosnia Erzegovina", "Barbados": "Barbados", "Bangladesh": "Bangladesh", "Belgium": "Belgio" but I cannot call the translated name in the

Angular2 HTTP Providers, get a string from JSON for Amcharts

本秂侑毒 提交于 2019-12-11 14:37:31
问题 This is a slightly messy questions. Although it appears I'm asking question about amCharts, I really just trying to figure how to extract an array from HTTP request and then turn it into a variable and place it in to 3-party javacript. It all starts here, with this question, which was kindly answered by AmCharts support. As one can see from the plnker. The chart is working. Data for the chart is hard coded: `var chartData = [{date: new Date(2015,2,31,0,0,0, 0),value:372.10,volume:2506100},

Amchart json url pie chart does not occur

佐手、 提交于 2019-12-11 14:04:14
问题 First of all I am very new to using JavaScript. I am trying to create a pie chart using the Amchart library, but the chart does not appear. It's not Cors. Microsoft has been added to work with asp.net.cors. I think the data is from the set. If I fix my ratings as a percentage, I think the error will be resolved. Could you suggest a solution? Thank you This is my code. What is wrong? <title> trying pie chart</title> <meta name="description" content="chart created using amCharts live editor" />

amCharts valueAxis maximum not working

流过昼夜 提交于 2019-12-11 13:09:13
问题 I have a chart that shows percentages, so I don't want to go past 100 on the valueAxis. For some reason, valueAxis.maximum isn't working for me. Here's a copy of my chart function. The chart ends up showing with 110 maximum in the valueAxis. Am I missing a property somewhere? Here's a link to a jsFiddle. Any help is appreciated. var chart = AmCharts.makeChart(chartDiv, { "theme": "light", "type": "serial", "dataProvider": nflDailyData, "graphs": [{ "balloonText": "[[value]]% for [[category]]"