amcharts

Synchronize ValueAxis grids

江枫思渺然 提交于 2019-12-11 11:44:24
问题 I have these two ValueAxes : { ... minimum: 0, maximum: 100, strictMinMax: true, autoGridCount: false, gridCount: 10 }, { ... minimum: -15, maximum: 215, strictMinMax: true, autoGridCount: false, gridCount: 10 } Now the grid lines of both axes are creating a total mess in the chart and its hard to not get confused while trying to read values. The reason for this is, that AmCharts rounds the labels up or down to ten-steps, not respecting the gridCount . I need to know if there's a way to get

amCharts pie - how to get slice to pull out on rollOverSlice?

好久不见. 提交于 2019-12-11 09:16:54
问题 I am having a lot of difficulties navigating through amCharts Docs and I cant seem to find the answer to this online. I am using the amCharts pie chart, and I want a couple of thing to happen when the mouse rolls over a slice, one of those things is to get the slice to pull out what happens when you click a slide in this demo. This is what I tried according to the doc, but doesn't seem to work: var pieChartData = [ { asset: 'Funiture', marketValue: 50000.00 }, { asset: 'Cash', marketValue:

How to display data with amcharts and django in realtime?

喜你入骨 提交于 2019-12-11 08:48:16
问题 I want the chart refresh itself(not to refresh the whole web page) ,like a heart monitor ,everytime a new data has been added to the database,is that possible? With codes below,i must refresh the web page and see if there's any new data. views.py: from tempsensors.models import temp def temp_page(request): #this view is to store the temperature value into my database #data is send by my board with a temperature sensor if request.method == 'POST' and 'tem' in request.POST and request.POST['tem

Create amcharts by calling ajax api (json response)

这一生的挚爱 提交于 2019-12-11 06:55:04
问题 I'm trying to create amcharts by calling ajax api (response in json format), by calling post api i get the required data in console.log but chart is not showing. Pls check code, & suggest me what is missing. I'm using jquery & HTML only, If api is not working, so pls explain me with stuff data. Can i achieve this by using dataLoader plugin fror amcharts? If yes then pls explain me how it will achieve by using dataLoader. Pls check my code & update me how to draw chart by json response first.

AmCharts v4 AmMap change language

心已入冬 提交于 2019-12-11 06:21:30
问题 I would like to change the language of a ammap (V4). Therefore I followed the example which is provided here (but it is for V3): http://jsfiddle.net/tDqs2/25/ Here first the language get loaded via a script tag. <script src="http://cdn.amcharts.com/lib/3/lang-maps/de.js"> Now if I follow the instructions I don't see any map. Here is my codepen: https://codepen.io/ms92o/pen/mjMpZy that line does not work: chart.language = 'de'; Looking at the API for language I do find a language property:

changing data values in amcharts with drop down selection

时光怂恿深爱的人放手 提交于 2019-12-11 06:08:07
问题 I have the question regarding an already provided solution at Update the dataset of multiple AmCharts with a Single Dropdown Change Event I needed the same solution for one of my tasks. I have downloaded and saved all the css,js, jquery and json dataset files in the same directory and changed the addresses of those in src tags in my html file. Also changed the address in index.js file for the default dataset json. But this does not work. drop down menu shows but both charts are not even

Amcharts graph - Hyperlink for chart columns to custom URLs to open in a new tab/window

混江龙づ霸主 提交于 2019-12-11 05:06:56
问题 I am trying to make a amcharts graph with columns linked to custom urls and want the urls to open in a new tab/window. I tried adding this code to the graph object but it does not work, it is opening link in same tab/window - "listeners": [{ "event": "clickItem", "method": function(event) { window.open(event.serialDataItem.dataContext.url, '_blank'); } }], Please tell what I am doing wrong. I do not want to use Jquery and I am new to javascript. This is my snippet - var chart = AmCharts

Change grid based on current zoom in amCharts

偶尔善良 提交于 2019-12-11 04:36:29
问题 Let consider my question on a sample from amCharts site: https://www.amcharts.com/demos/area-with-time-based-data/ So, after page loading, chart is zoomed between 03:30 and 6:00 (based on X-axis values) and vertical grid step (difference between two vertical grid lines) is 0:30. Now, I grab left slider at the top and move it right, so that minimal X value is 04:00. And there's still 0:30 step. It will switch to 0:10 at ~04:05. My question is - how can I manually "speed up" this process of

Load data from URL and plot another graph in Amcharts

筅森魡賤 提交于 2019-12-11 04:11:52
问题 I am using stock charts in Amcharts and plotting the graph as below: Working Pen Now Instead of giving the data in the script I wanted to load from a URL.So I instead of "dataSets": [{ "dataProvider": sourceData, "categoryField": "time" }] I replaced it with "dataSets": [{ "dataLoader": { "url": "http://localhost:8080/contacts?day=3&zone_id=3" }, "categoryField": "time" }] But it did not work. How to load data in this scenario? I also want to plot the values of foo3 along with foo1.How can I

Creating a “normal” line chart in amcharts.js with arrays? [closed]

余生颓废 提交于 2019-12-11 02:48:51
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 4 years ago . I'm growing desperate with amCharts doing the simplest task. Well, at least what I think is simple. I want to create a normal line chart with "normal" data. What do I mean with normal? Well, having an array with my y values, and maybe also one for x: x = [1,2,3,4] y = [5,6,7,8] Shouldn't it be