amcharts

1、AmLegend

2、当宽度不够时出现,解决方案设置CategoryAxis的wrapLabels属性( Only works if parseDates is false)

Also make sure that maxLabelLength is not set which is truncating the labels.

3、默认的categoryAxies之间的间隔很宽,导致一个图表上显示的点很有限,如下图:

如何显示更多的点呢?
  实质gridCount属性即可

4、CategoryAxies的时间轴问题

5、
amcharts曲线图中,数据不存在的点,曲线是连续的,没有断开。
——We consider to use the Flex components of amCharts in our comercial product. Before we buy an OEM-License it is important to know, if we can satisfy the following requirement: is it possible to have a gap in a AMSerialChart. We tried to use a value of NaN, but in this case the AMSerialChart ignores the value and connects the previous with the following data point. A value of null is treated as 0. So is there any possibility to interrupt the line of an AMSerialChart in case of there is no data value for as certain measuring point? Thank you for answers.

——Yes, it is possible to have gaps. Use NaN and set set connect="false" on your graph.
Fixed since v 1.6.1.0 http://www.amcharts.com/forum/viewtopic.php?id=6309

6、I just want to take an arraycollection of arraycollections and for each add a lineseries. How do you do that?
——Well, you can't use separate dataProvider for each line. There's a single dataProvider for the whole chart. Separate graphs just use different column/property of the same ArrayCollection.

You would need to to reformat your data to accommodate for that. http://www.amcharts.com/forum/viewtopic.php?id=8579

7、 Show balloon for zero values
The only solution would be to use ChartCursor. In that case the balloon would show up even on 0-value columns. http://www.amcharts.com/forum/viewtopic.php?id=8403

8、 How to use the descriptionField property of a amGraph?

I have set the dataprovider for a AmSerialChart and there was a field named "description" in the dataprovider. I have also set the descriptionField for a AmGraph,but the description did not dispear on the chart. How to use the descriptionField property ?

——You need to use [[description]] metacode in either your balloonText, labelText or legendValueText properties.

9、amcharts目前不支持XMLListCollections in AMCharts

10、使用AmSeriealChart的属性:prefixesOfSmallNumbers 和 prefixesOfBigNumbers



11、使用smoothLine出现的问题: issue with line charts



——The only solution is to disable line smoothing I'm afraid. The line smoothing algorithm is not very reliable when it comes there are very few datapoints.


12、 When I use AmSerialChart, Can I set the position of ChartScrollbar?

——目前不能。http://www.amcharts.com/forum/viewtopic.php?id=7812


13、 有关时间轴的一个问题:后台返回的数据为0.25,0.5,0.75,1,2。单位为天,我现在想在图表上面显示1/4天、1/2天、3/4天之类的。该如何实现呢?

——在客户端针对返回的数据进行格式化,调用AmChart的numberFormatter属性


14、Whether ValueAxis’title supports the Chinese font?

——You have to embed fonts in order valueAxis title to be visible.

Add <mx:NumberFormatter precision="2" id="nf"/> to your application (outside the chart), and the set numberFormatter="{nf}" for the chart or for individual graph.


15、Can i graph two lines on one chart with two different datasource?

hello,
I want to graph two lines on one chart,but the line of datasource comes from different arraycollection.
The most important is that the value of x-Axis about the two lines is different.
For example , one is Month,the other is Date.
How can i do it?
Looking forward your reply!
Thanks,
smallning

——There is no way to do this. You can set a separate data provider for a graph, but it will only show values of the dates/series which are available in main data provider.


16、How to remove "max" value on valueaxis?

——Hey Wolffen,I did a little searching on this site and found this idea: http://www.amcharts.com/forum/viewtopic.php?id=6055
However, that doesn't solve your problem. It just sets everything to blank. I did find a fix to this though:

What I am doing is setting a variable in the initialize function that draws out the graphs. I am setting the variable to the valueAxis.max and calling it vAxisBackup.
Then, I set a click event on the reset button after many different filters have been applied that sets the vAxis.max back to the vAxisBackup.

public function init():void {
loadGrpah();
vAxisBackup = vAxis.max;
}

private function resetAxis():void {
vAxis.max = vAxisBackup;
}

I have tested this with many different filters applied and it seems to be working great.


17、Dynamic charts based on data change

——You can bind your dataprovider of the chart to an arraycollection this will update the chart whenever the arraycollection changes. If you are looking to change the graphs inside the chart(change the value fields etc) then you can listen for the dataUpdated event and implement the code according to your need..


18、Multiple graphs with independent date axis points?

Hello,

All the examples in both the Flex components and Stock chart have all points for each line graph occuring at the same date (i.e. one x value and several y values). In our case, each graph may have points which occur at dates which are independent of each other.

The only way I can see to implement this is to merge the data from several graphs (omitting the values where a graph doesn't have a point at a given date), and enable the connect across missing data option. This is okay, but doesn't allow for genuine missing data (i.e. where gaps are actually wanted). To achieve that, it is necessary to split a graph into several graphs at the boundaries of the missing data.

Is this the correct way to achieve this in amCharts, or is there a more elegant solution?

/Thanks, Ross.

http://www.amcharts.com/forum/viewtopic.php?id=4098 暂时无解决方案


19、The most quick method to remove all value axes and all graphs would be setting new array for valueAxes:

chart.valueAxes = [];


20、 connect = false and ChartCursor performance?

—— http://www.amcharts.com/forum/viewtopic.php?id=6717


21、display labelText when value is null ?

amGraph.labelText= "Some Text: [[value == null ? '' : value]]";

Instead of {series:"a", value1:null, value2:2}

use

{series:"a", value2:2}

http://www.amcharts.com/forum/viewtopic.php?id=7237


22、 Variable number of graphs in serialchart?



var newGraphs:ArrayCollection = new ArrayCollection();

// Create AmGraphs
for (i = 0; i < holdingsCount; i++) {

var graph:AmGraph = new AmGraph();

graph.type = "line";

/* TODO: properties to set
graph.bullet = "round";
graph.hideBulletsCount = 30;
graph.lineColor = "#396184";
graph.fillColors = new Array(["#396184", "#002144"]);
graph.lineThickness = 2;
graph.fillAlphas = new Array([1]);
graph.balloonText = Config.dds_graph_tooltip_label;
graph.balloonColor = "#555555";
*/

graph.valueField = "" + i;
graph.title = model.holdings[i].title;

newGraphs.addItem(graph);
}

view.chart.graphs = newGraphs.toArray();
http://www.amcharts.com/forum/viewtopic.php?id=7635


23、 如果想显示如下图所示的图表该如何做?


Or you could use guide, but label could be easier, as with guide you'll need to get max value of the axis first.

http://www.amcharts.com/forum/viewtopic.php?id=7357


24、 How do I use Date categories which includes hour and minute?

Hi, I try to create a date based serial chart using the "Date-time based category axis" in the examples, the data looks like this:

{date:new Date(2009,9,2,0),value:11,value2:2},
{date:new Date(2009,9,2,6),value:15,value2:3},
{date:new Date(2009,9,2,12),value:13,value2:2},
{date:new Date(2009,9,2,18),value:17,value2:1},
{date:new Date(2009,9,3,0),value:19,value2:2},
{date:new Date(2009,9,3,6),value:21,value2:2},
{date:new Date(2009,9,3,12),value:20,value2:2},
{date:new Date(2009,9,3,18),value:20,value2:3},
{date:new Date(2009,9,4,0),value:19,value2:4},
{date:new Date(2009,9,4,6),value:25,value2:3},
{date:new Date(2009,9,4,12),value:24,value2:2},
{date:new Date(2009,9,4,18),value:26,value2:2},

There are multiple items in one day, but in different hours. When I run the application, items in the same day overlap together. Is there a way to separate them? Thanks.

http://www.amcharts.com/forum/viewtopic.php?id=6815


25、guideLines


http://www.amcharts.com/forum/viewtopic.php?id=7468


26、以半小时或者15分钟这种间隙,如何格式化时间呢?

http://www.amcharts.com/forum/viewtopic.php?id=7937 


26、Line Chart GraphEvent Roll over graph item

http://www.amcharts.com/forum/viewtopic.php?id=7669


27、 DataProvider/CategoryField on Chart and individual Graphs

http://www.amcharts.com/forum/viewtopic.php?id=5744


FLex时间类与LOng类关系 http://fuyanqing03.iteye.com/blog/434347
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
xml <!-- [xml] (xml / csv) 数据类型xml/csv--> ; <!-- 如果使用csv作为数据的话,需要使用这个属性;表示文件数据分隔符,(平常以";"和","为主) [;] (string) csv file data separator (you need it only if you are using csv file for your data) --> 1 <!-- 如果使用的是csv数据,可以设置跳过几行再显示数据,默认为0表示csv中的数据全部显示,大于n(n>0);表示前面n行都不显示[0] (Number) if you are using csv data type, you can set the number of rows which should be skipped here --> <!-- 设置系统中的字体[Arial] (font name) use device fonts, such as Arial, Times New Roman, Tahoma, Verdana... --> <!-- 设置所有文本的大小,默认为11,具体的文本的字体大小也可以在下面的设置中设置[11] (Number) text size of all texts. Every text size can be set individually in the settings below --> <!-- 同上[#000000] (hex color code) main text color. Every text color can be set individually in the settings below--> . <!-- 小数分隔符,默认为[,]注:该属性只是用来显示,而在csv数据文件中,必须使用[.] (string) decimal separator. Note, that this is for displaying data only. Decimals in data xml file must be separated with a dot --> <!-- 千位分隔符,默认为空[ ] (string) thousand separator. use "none" if you don't want to separate --> 3 <!-- 如果百分数格式的数字,后面的小数位小于该属性的值,则在小数后面加0补充。如54.2%,该属性设置为3,那么显示的效果为54.200%。[] (Number) if your value has less digits after decimal then is set here, zeroes will be added --> <!--设置科学记数法的最小值 [0.000001] If absolute value of your number is equal or less then scientific_min, this number will be form

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值