amcharts

How to get the data using dataLoader in amCharts?

十年热恋 提交于 2019-12-13 02:39:22
问题 I'm using amCharts library (it's a JavaScript library for loading data in charts) to extract the data from mySQL database, and display it using a Stock Chart. I found a complete tutorial here: http://www.amcharts.com/tutorials/your-first-stock-chart/ They use static data that they have created in the code, however I want to use my own data by extracting it from database in JSON format. The PHP file to include: json_encode.php <?php include("data.php"); echo json_encode($rows); ?> The output

How generate dynamic amcharts, when data is stored in CSV file? How show Popup that given extra information for that value?

大憨熊 提交于 2019-12-12 20:56:31
问题 I have a number of groups, each group has n number of properties. Each property has different values on each date. I have generated a graph for a selected group with date on x-axis and values on y-axis. The value of the selected group is stored in attached CSV file. I have to enerate amCharts for this CSV file. Extra Information: value related situation, history etc. var chart; var chartData = []; var chartCursor; AmCharts.ready(function () { // SERIAL CHART chart = new AmCharts.AmSerialChart

Charts container width & height dynamic in amcharts

微笑、不失礼 提交于 2019-12-12 18:24:12
问题 I'm using amcharts & i want chart container width & height dynamic depending on no columns on x-axis & highest value in y-axis in amcharts. Here is my fiddle I use css as follows .graphsdata { width: 100%; height: 800px; overflow: hidden; } .graph-div { min-width: 800px; min-height: 600px; overflow: hidden; } .graphs-div { width: 2200px; min-height: 600px; overflow: hidden; } check this 来源: https://stackoverflow.com/questions/52589764/charts-container-width-height-dynamic-in-amcharts

Uncaught TypeError: Cannot read property 'mouseX' of undefined

点点圈 提交于 2019-12-12 05:27:16
问题 I'm using AmCharts to make a graph of payments made over time. My configuration of AmCharts looks correct. Also please note I am not a expert in Javascript. Using AmCharts 3.18.3.free The full console output is Uncaught TypeError: Cannot read property 'mouseX' of undefined @ amcharts.js:4107 d.ChartCursor.d.Class.update @ amcharts.js:4107 e.AmRectangularChart.e.Class.update @ serial.js:346 e.AmSerialChart.e.Class.update @ serial.js:980 d.update @ amcharts.js:196 I'm also using RainbowVis-JS.

amCharts align values axis' null level

你离开我真会死。 提交于 2019-12-12 04:54:31
问题 I have an Amchart graph with multiple charts and multiple value axis. Values may be quite different, for example, one chart's values may vary from -3000 to 3000, while another one is 0-40. What I want is to represent all charts so they all will be visible. So, I use 'synchronizeGrid' option. Here's my current code: "synchronizeGrid": true, "valueAxes": [{ "id": "v1", "axisColor": "#FF6600", "axisThickness": 2, "axisAlpha": 1, "position": "left" }, { "id": "v2", "axisColor": "#FCD202",

(amCharts) The chart gets its data from a HTML table. How to update the legend if a new table row is dynamically added?

旧街凉风 提交于 2019-12-12 04:36:33
问题 I have a HTML table that serves as the data provider for the chart. The table can be dynamically edited with a click of the button (I can add a new row to it). I can update the chart each time a new row is added. However the legend remains the same, it only has three initial graphs. How can I update the legend alongside the chart? Here is my fiddle: https://jsfiddle.net/yvzj8acd/2/ And here is the JS where I add new row to the table: ////////////////////////////////// // This is where I

Update the dataset of multiple AmCharts with a Single Dropdown Change Event

烈酒焚心 提交于 2019-12-12 04:16:45
问题 I currently have 2 AMCharts on the same page and a single dropdown with values 2015,2016,2017,2018 in it. I have followed this example to dynamically update the data in the bar chart http://www.amcharts.com/tips/dynamically-loading-chart-datasets/ I also have a Pie Chart and would like to update the data with the same drop down but I am not sure how to connect it so that it also updates at the same time. Any suggestions ? 回答1: Just expand the function that changes the dataset of the charts

Visualize table on tooltip with amCharts

不羁岁月 提交于 2019-12-12 04:16:39
问题 I'm novice on JavaScript, but really amazed by amCharts. So, I ask here, after search a lot on internet: is it possible (or someone can tell me how) make a table as a tooltip on a amCharts graph? I mean: I have a trend graph, based on "date", if I click on a date of a day, view a popup with a table of the details of the day's data. 回答1: Searching and try a lot of code, and I reach a possible solution. So, considering that there aren't similar questions here or developed like I ask, I post my

Create chart with amcharts using nested Json

亡梦爱人 提交于 2019-12-12 03:36:10
问题 I need to create a serial chart with AmCharts but I can't get it to plot the nested bySexeDto array's nbre value. Here's my JSON structure. How do I get AmCharts to plot nested structures? 回答1: AmCharts doesn't look at nested JSON structures when drawing the chart. You have to move the nested array in the bySexeDto field into the top level as its own separate element. Here's an example that takes your array and flattens it into a an array of objects resembling {"category": "...", "value0": ..

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