amcharts

AmCharts - Line Chart Overflowing graph container

孤人 提交于 2019-12-01 05:37:08
I am trying to get a line graph to display correctly on my site, but for some reason it wants to overflow the graph container. I have tried reset the box-sizing to initial, setting overflow hidden on all child elements of the graph and nothing seems to be working. I have no idea why this is happening and was wondering if anyone had come across this issue before themselves? I've added an image below of what I am currently getting and underneath that, the object that is being used to set up the line graph. { "type": "serial", "theme": "light", "marginRight": 80, "autoMarginOffset": 20,

How to remove the web address from graph in HTML [closed]

删除回忆录丶 提交于 2019-11-30 16:46:08
I am creating a graph in HTML. I am using the API amCharts, but the problem is that it shows the text "amchart" within the graph. How can I remove that text so that it may look OK? <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Charts</title> <link rel="stylesheet" href="style.css" type="text/css"> <script src="amcharts.js" type="text/javascript"></script> <script type="text/javascript"> var chart; var chartData = [{ country: "USA", visits: 400, color: "#FF0F00" }, { country: "China", visits: 380, color: "#FF6600" }, { country: "Japan", visits: 360,

How to remove the web address from graph in HTML [closed]

孤街醉人 提交于 2019-11-30 00:04:25
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I am creating a graph in HTML. I am using the API amCharts, but the problem is that it shows the text "amchart" within the graph. How can I remove that text so that it may look OK? <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Charts</title> <link rel="stylesheet" href=

Angular 2 and AmCharts

*爱你&永不变心* 提交于 2019-11-29 10:59:51
Does anybody have any idea on how to implement Amcharts into Angular2 (BETA)? I was trying to follow the path/pattern of this question however, I was pretty successful with charts.js, but unfortunately, I can't use charts.js,for my charting program. Since it seems like everything in Angular2 Beta is uncharted territory, I don't have a clue where to start? I mimicked the charts.js example above with no luck, no error. /// <reference path="../DefinitelyTyped/amcharts/AmCharts.d.ts" /> There is a DefinitelyTyped library for amcharts (not one for plot.ly yet). UPDATE: Here is the directive: ///

amChart legend appearance

女生的网名这么多〃 提交于 2019-11-29 07:47:38
I have an amChart with many rows, like this one . The legend looks a bit awfull. Is it possible to display the legend in a single row with some scrolling? like for the columns ? (I don't want to change the container div's height ) The question is too old to answer but still it may help someone to get rid of this problem quickly. Following is the proper documentation provided by amcharts: https://www.amcharts.com/tutorials/putting-a-legend-outside-the-chart-area/ And here is the JsFiddle Example: http://jsfiddle.net/amcharts/Cww3D/ HTML: Chart div: <div id="chartdiv" style="height: 250px;

javascript amCharts graph item click event

浪子不回头ぞ 提交于 2019-11-29 06:06:33
In amCharts flash chart there is a event name clickGraphItem which work as click on graph item and after fetching this event we can do any action on graph item click. I need the same functionality in javascript amCharts . So is it possible to implement clickGraphItem in javascript amCharts? Please provide solution. Any source code would be appreciated. zeroin You can add event handlers to the AMCharts Javascript library in the following way // add click listener chart.addListener("clickGraphItem", handleClick); Here is jsFiddle for this: http://jsfiddle.net/amcharts2/cV8GG/ 来源: https:/

Angular 2 and AmCharts

爷,独闯天下 提交于 2019-11-28 04:09:13
问题 Does anybody have any idea on how to implement Amcharts into Angular2 (BETA)? I was trying to follow the path/pattern of this question however, I was pretty successful with charts.js, but unfortunately, I can't use charts.js,for my charting program. Since it seems like everything in Angular2 Beta is uncharted territory, I don't have a clue where to start? I mimicked the charts.js example above with no luck, no error. /// <reference path="../DefinitelyTyped/amcharts/AmCharts.d.ts" /> There is

javascript amCharts graph item click event

ぃ、小莉子 提交于 2019-11-27 23:38:44
问题 In amCharts flash chart there is a event name clickGraphItem which work as click on graph item and after fetching this event we can do any action on graph item click. I need the same functionality in javascript amCharts. So is it possible to implement clickGraphItem in javascript amCharts? Please provide solution. Any source code would be appreciated. 回答1: You can add event handlers to the AMCharts Javascript library in the following way // add click listener chart.addListener("clickGraphItem

What is difference between AmCharts.makeChart and new AmCharts.AmSerialChart();

牧云@^-^@ 提交于 2019-11-27 15:49:44
Some AmCharts demos use AmCharts.makeChart Other AmCharts demos use new AmCharts.AmSerialChart(); What is the difference in these two approaches? Using AmCharts.AmSerialChart() you have to instantiate all your components (graphs, axes, ...), add properties to those objects and then assign them to the chart. This is a very inefficient way to create a chart, and, as you can see in the documentation (your 2nd link reference), deprecated. Since its version 3 AmCharts supports the new chart constructor, where you can specify all properties in a JSON format. Example: old style: AmCharts.ready

How to change amcharts pie themes?

帅比萌擦擦* 提交于 2019-11-27 04:08:02
问题 My HTML code is like this : <div id="chartdiv" style="width: 100%; height: 362px;"></div> My Javascript code is like this : var chart; var legend; var chartData = [ { "country": "Czech Republic", "litres": 301.9 }, { "country": "Ireland", "litres": 201.1 }, { "country": "Germany", "litres": 165.8 }, { "country": "Australia", "litres": 139.9 }, { "country": "Austria", "litres": 128.3 }, { "country": "UK", "litres": 99 }, { "country": "Belgium", "litres": 60 } ]; console.log(chartData);