amcharts

Amcharts - Horizontal Bar Chart for mobile

删除回忆录丶 提交于 2019-12-02 18:19:01
问题 I am trying to make Amcharts bar chart for mobile and tablet screen width (less than 766px) I am facing some problems as follows - Since I am using the free version amcharts , have to keep "Js charts by amcharts" link in the chart. Only it is coming on the left of the chart overlapping my labels. How can I shift it to the right and bottom ? I would like the category labels to be above the value bars to make them more readable. How can I do that ? I would like to increase spacing between the

How to add legends in Amserial charts

六眼飞鱼酱① 提交于 2019-12-02 13:10:44
I am using Amcharts in my AngularJS Application to create a simple bar chart.The following is my code in the controller: let empChart; let empBarGraph; let empLine; const writeemp = data => { const { total, employees, } = data; empChart.dataProvider = e; empChart.write('emp'); empChart.validateData(); }; AmCharts.handleLoad(); var configChart = function () { empChart = new AmCharts.AmSerialChart(); empChart.categoryField = "state"; empChart.labelRotation = 90; var yAxis = new AmCharts.ValueAxis(); yAxis.position = "left"; empChart.addValueAxis(yAxis); empBarGraph = new AmCharts.AmGraph();

Highlighting the highest and lowest point in amcharts

两盒软妹~` 提交于 2019-12-02 12:12:08
Could someone help me on changing the bullet or highlighting the highest and lowest values using amcharts?. I am using serial chart. The condition given in the function "highlight" is matching , however the the bullets are not highlighted to the highest and lowest points.. Any help will be appreciated. Please find my code below. <link rel="stylesheet" href="style.css" type="text/css"> <script src="amcharts/amcharts.js" type="text/javascript"></script> <script src="amcharts/serial.js" type="text/javascript"></script> <script> var chart; var chartData = [ {"date": "2006", "value": 63, "value1":

Amcharts - Horizontal Bar Chart for mobile

我只是一个虾纸丫 提交于 2019-12-02 10:27:47
I am trying to make Amcharts bar chart for mobile and tablet screen width (less than 766px) I am facing some problems as follows - Since I am using the free version amcharts , have to keep "Js charts by amcharts" link in the chart. Only it is coming on the left of the chart overlapping my labels. How can I shift it to the right and bottom ? I would like the category labels to be above the value bars to make them more readable. How can I do that ? I would like to increase spacing between the bars to make them more readable and if user wants to click them they can easily click on the intended

Amcharts click event in Angular 2 not working

天大地大妈咪最大 提交于 2019-12-02 07:43:57
Here is my codebase export class myComponent implements OnInit { minHist; maxHist; } public callAmcharts(whichFilterType:String){ this.amchart = AmCharts.makeChart( "chart", { "type": "serial", "theme": "light", "dataProvider": this.TrendData, "valueAxes": [ { "gridColor": "#FFFFFF", "gridAlpha": 0.2, "dashLength": 0 }], "gridAboveGraphs": true, "startDuration": 1, "graphs": [ { "balloonText": "[[category]]: <b>[[value]]</b>", "fillAlphas": 0.8, "lineAlpha": 0.2, "type": "column", "valueField": "dCount", "showHandOnHover":true } ], "chartCursor": { "categoryBalloonEnabled": false, "cursorAlpha

Amcharts 4, xychart, limiting the number of tooltips and combining infos in one tooltip

£可爱£侵袭症+ 提交于 2019-12-02 07:22:19
问题 I am using amcharts 4 to display temperature lines. At times there are many stations so I would like to have just one tooltip and just for the value the cursor is at instead of one tooltip for every line (because then they overlap and some are unreadable). And there might be several stations with the same temperature so I would have to list all of them in the tooltip. Anyone knows how to achieve that? In amcharts 3 I used a balloonFunction attached to the graphs to create my own tooltip. But

Amcharts 4, xychart, limiting the number of tooltips and combining infos in one tooltip

浪尽此生 提交于 2019-12-02 00:35:56
I am using amcharts 4 to display temperature lines. At times there are many stations so I would like to have just one tooltip and just for the value the cursor is at instead of one tooltip for every line (because then they overlap and some are unreadable). And there might be several stations with the same temperature so I would have to list all of them in the tooltip. Anyone knows how to achieve that? In amcharts 3 I used a balloonFunction attached to the graphs to create my own tooltip. But yet I couldn't find how to do it with the series in amcharts 4. Thanks for a hint! So as David Liang

linegraph on wp7

自作多情 提交于 2019-12-01 10:38:16
I'm using amCharts and their SerialChart combined with a LineGraph. I've gotten it to work this way: <amq:SerialChart x:Name="_24HoursLineGraph" DataSource="{Binding Data}" CategoryValueMemberPath="Date" AxisForeground="White" PlotAreaBackground="Black" GridStroke="DarkGray" Grid.Row="1" Margin="20"> <amq:SerialChart.Graphs> <amq:LineGraph ValueMemberPath="Close" Title="Close" Brush="Blue" /> </amq:SerialChart.Graphs> </amq:SerialChart> Code behind: public ObservableCollection<Currency> Data { get { return _data; } } private ObservableCollection<Currency> _data = new ObservableCollection

linegraph on wp7

假如想象 提交于 2019-12-01 08:07:55
问题 I'm using amCharts and their SerialChart combined with a LineGraph. I've gotten it to work this way: <amq:SerialChart x:Name="_24HoursLineGraph" DataSource="{Binding Data}" CategoryValueMemberPath="Date" AxisForeground="White" PlotAreaBackground="Black" GridStroke="DarkGray" Grid.Row="1" Margin="20"> <amq:SerialChart.Graphs> <amq:LineGraph ValueMemberPath="Close" Title="Close" Brush="Blue" /> </amq:SerialChart.Graphs> </amq:SerialChart> Code behind: public ObservableCollection<Currency> Data

JSON with parsed time or timestamp to amCharts

三世轮回 提交于 2019-12-01 05:38:31
问题 I have some newbie questions about JSON and dates parsing. I have a JSON response from my server which contain converted timestamp to date/time, and then it's cached. I thought converting timestamp directly on server would leverage script on client side. So i did that and i had response from server like this: [ {"datetime": "2014/05/12 16:00", "data": "172.0", "data2": "192", "data3": "172.0" }, {...} ] This JSON file is then fetched to amCharts, in Chrome works perfectly fine, while in