amcharts

Can you make the bubble size and color dependend on a MDX measure in icCube amChart widget?

心已入冬 提交于 2019-12-08 01:10:49
问题 I am trying to make a dynamic chart in icCube, in which bubbles are sized and colored in accordance with a specific data field in the MDX result set. Example MDX result set: (the x/y coordinates have been removed for the sake of simplicity): amount color bullet size Swiss 100 #0000FF 10 Spain 120 #FF0000 12 NL 70 #00FF00 7 I do not know how to do this now in the amChart widget in icCube, but I know it is possible to do this in amCharts itself. You can set for example the following attributes

Javascript timestamp to date

社会主义新天地 提交于 2019-12-07 19:59:19
问题 Can anybody help me with this, it's driving me crazy. I'm begginer with Javascript, and i encountered problem with dates for the first time now. I have already asked this, but no one answered me: json with parsed time or timestamp to amchartss Basically i have this XHR call. getJSON = function(url) { var xhr = new XMLHttpRequest(); xhr.open('get', url, true); xhr.responseType = 'json'; xhr.onload = function() { var status = xhr.status; if (status == 200) { chartLoad(xhr.response); console.log

How to access nested Json Data in AmCharts

那年仲夏 提交于 2019-12-07 18:07:02
问题 I am using AmCharts in my AngularJs Application and this is the Json Data which I get back: { total: 2, tools: [ { id: "57c5a75d57d92f742dc96bf2", empId: "1", empName: "ABC", empType: { typeId: 3, typeName: "Contract", hours: 45, } }, { id: "57c5a75d57d92f742dc96bf2", empId: "2", empName: "DEF", empType: { typeId: 2, typeName: "Full-Time", hours: 40, } }, ] } Code in my controller: const writeemp = data => { const { total, employees, } = data; empChart.dataProvider = employees; empChart.write

Is it possible to display only one Y axis in Multi value amChart?

℡╲_俬逩灬. 提交于 2019-12-07 09:48:22
问题 I have an Multi Value AmChart where I'm sending dynamic values and is working as expected but as I'm sending the values dynamically which is of percentage value it doesn't require the Y-axis separately for all the lines . Only one y axis is enough for all the lines. I'm able to disable the appearing y axis and and I also created a single y-axis (static y axis) but it is not synchronized with the series of chart. trend() { this._chart = am4core.create( "trend_yield", am4charts.XYChart ); this.

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

Amchart/ Draggable div/chart

和自甴很熟 提交于 2019-12-06 23:13:24
I've tried various ways to drag an amchart around the page. I have got about 10 charts on the page. I would like to let the user to move any chart next to any other. Once the required div is moved out to another location, I'd like all the divs to realign automatically as they do when they are drawn for the first time.( I mean when a div is moved to, say, next to last graph on the page, I wouldn't like to see an empty space from where the div was moved. I'd like to see the div next to it slide to the empty div's place). To plot every chart, I create 2 HTML divs - One called the parent div that

Can you make the bubble size and color dependend on a MDX measure in icCube amChart widget?

馋奶兔 提交于 2019-12-06 13:33:54
I am trying to make a dynamic chart in icCube, in which bubbles are sized and colored in accordance with a specific data field in the MDX result set. Example MDX result set: (the x/y coordinates have been removed for the sake of simplicity): amount color bullet size Swiss 100 #0000FF 10 Spain 120 #FF0000 12 NL 70 #00FF00 7 I do not know how to do this now in the amChart widget in icCube, but I know it is possible to do this in amCharts itself. You can set for example the following attributes in the amCharts editor: Alpha field, Bullet field, Bullet size field, Description field, Fill colors

amcharts - Graph not displaying values/Use ajax to plot amcharrt/How to plot amchart by querying database

走远了吗. 提交于 2019-12-06 12:26:04
问题 Here my HTML & javascript code to get amcharts plot going I make a call to the database, retrieve the results by converting it to a json format in PHP & then pass it to a graph to display. The chartData variable below has the output that the database query returns. when I statically assign the expected output to chartData variable, the graph plots. However, when I assign the variable "sql_resp" which the responseText value of the json retuned, the graph says "undefined" values. I've used web

Javascript timestamp to date

雨燕双飞 提交于 2019-12-06 07:17:10
Can anybody help me with this, it's driving me crazy. I'm begginer with Javascript, and i encountered problem with dates for the first time now. I have already asked this, but no one answered me: json with parsed time or timestamp to amchartss Basically i have this XHR call. getJSON = function(url) { var xhr = new XMLHttpRequest(); xhr.open('get', url, true); xhr.responseType = 'json'; xhr.onload = function() { var status = xhr.status; if (status == 200) { chartLoad(xhr.response); console.log(xhr.response); } else { console.log("oh shit"); } }; xhr.send(); }; I'm getting in response here JSON

amCharts Stock Chart with multiple datasets not showing

耗尽温柔 提交于 2019-12-06 06:53:51
I went through the examples and docs of amCharts. Here is my problem: the chart is showing just a line and not two as defined in the 2 datasets: var chart; function createStockChart() { chart = new AmCharts.AmStockChart(); // DATASETS ////////////////////////////////////////// var dataSet = new AmCharts.DataSet(); chart.dataSets = [{ title: "XWD.TO", color: "#000000", fieldMappings: [ { fromField: "value", toField: "value" }, { fromField: "volume", toField: "volume" } ], dataProvider: chartData, categoryField: "date" }, { title: "portfolio-top-9-12-2015", color: "#FF0000", fieldMappings: [ {