- 浏览: 1758016 次
-
文章分类
最新评论
-
xinglianxlxl:
有空看看,谢谢
eclipse经常未响应优化 -
code_xiaoke:
我觉得Lucene版本变化太大!! 对于版本的变动 太巨大了 ...
Lucene使用IKAnalyzer分词实例 及 IKAnalyzer扩展词库 -
jayant-xu:
...
BigDecimal加减乘除运算 -
jayant-xu:
[img][/img]大大
BigDecimal加减乘除运算 -
jayant-xu:
[*]案说法是否
BigDecimal加减乘除运算
amchart学习笔记
Joomla使用过程中使用到分析组件(com_analytics),已经相关的的插件!
插件当中使用到了amchart (真复杂...)
以下是amchart相关资料
总的来说:
amcharts 要一个“配置文件”(setting.xml),一个数据文件(amile_data.xml),一个 SWFObject.js,一个对应的 SWF 就可以生成漂亮的统计报表了
1 SWFObject v1.5的对象结构
view plaincopy to clipboardprint?
deconcept
util
getRequestParameter(_2b) // 取得url参数value。_2b是URL的key。
SWFObjectUtil
getPlayerVersion() // 取得版本号对象。major.minor.rev。
cleanupSWFs() // 清除页面上所有<OBJECT>元素。
SWFObject(_1, id, w, h, _5, c, _7, _8, _9, _a)
// _1: swf,指定SWF文件路径。
// _id: id,<embed>或者<object>标签的id。
// w: width,属性width。
// h: height,属性height。
// _5: version,flash版本,默认自动会去读取本地的flash插件版本的。
// c: bgcolor,背景色。
// _7: quality,品质(low, high, autolow, autohigh, best ) 。
// _8: xiRedirectUrl
// _9: redirectUrl
// _a: url参数key
useExpressInstall(_d) // 设置xiSWFPath, useExpressInstall属性
setAttribute(_e, _f) // 设置属性attributes。_e是key,_f是value。
getAttribute(_10) // 取得属性attributes中的值。_10是key。
addParam(_l1, _l2) // 设置参数params。_l1是key,_l2是value。
getParams() // 取得params。
addVariable(_l3, _l4) // 设置变量variables。_13是key,_14是value。
getVariable(_l5) // 取得变量variables中的值。
getVariables() // 取得变量variables。
getVariablePairs() // 取得变量variables的key=value对数组。
getSWFHTML() // 返回flash嵌入的HTML
// 例如:
// <embed type="application/x-shockwave-flash"
// src="/amchart/amchart/amcolumn/amcolumn.swf" mce_src="amchart/amchart/amcolumn/amcolumn.swf"
// width="520" height="380"
// style="undefined" mce_style="undefined"
// id="amcolumn" name="amcolumn"
// bgcolor="#FFFFFF"
// quality="high"
// flashvars="path=/amchar/amchar/amcolumn/&settings_file=amcolumn_settings.xml&data_file=amcolumn_data.txt&preloader_color=#000000"/>
write(_20) // 写入flash插入的位置。_20可以是id的名称或者是一个dom结点。
PlayerVersion(_29) // 创建版本号对象。
versionIsValid(fv) // 验证flash插件的当前版本号是否兼容fv的版本号(大于等于)。
getQueryParamValue = deconcept.util.getRequestParameter;
FlashObject = deconcept.SWFObject;
SWFObject = deconcept.SWFObject;
deconcept
util
getRequestParameter(_2b) // 取得url参数value。_2b是URL的key。
SWFObjectUtil
getPlayerVersion() // 取得版本号对象。major.minor.rev。
cleanupSWFs() // 清除页面上所有<OBJECT>元素。
SWFObject(_1, id, w, h, _5, c, _7, _8, _9, _a)
// _1: swf,指定SWF文件路径。
// _id: id,<embed>或者<object>标签的id。
// w: width,属性width。
// h: height,属性height。
// _5: version,flash版本,默认自动会去读取本地的flash插件版本的。
// c: bgcolor,背景色。
// _7: quality,品质(low, high, autolow, autohigh, best ) 。
// _8: xiRedirectUrl
// _9: redirectUrl
// _a: url参数key
useExpressInstall(_d) // 设置xiSWFPath, useExpressInstall属性
setAttribute(_e, _f) // 设置属性attributes。_e是key,_f是value。
getAttribute(_10) // 取得属性attributes中的值。_10是key。
addParam(_l1, _l2) // 设置参数params。_l1是key,_l2是value。
getParams() // 取得params。
addVariable(_l3, _l4) // 设置变量variables。_13是key,_14是value。
getVariable(_l5) // 取得变量variables中的值。
getVariables() // 取得变量variables。
getVariablePairs() // 取得变量variables的key=value对数组。
getSWFHTML() // 返回flash嵌入的HTML
// 例如:
// <embed type="application/x-shockwave-flash"
// src="/amchart/amchart/amcolumn/amcolumn.swf" mce_src="amchart/amchart/amcolumn/amcolumn.swf"
// width="520" height="380"
// style="undefined" mce_style="undefined"
// id="amcolumn" name="amcolumn"
// bgcolor="#FFFFFF"
// quality="high"
// flashvars="path=/amchar/amchar/amcolumn/&settings_file=amcolumn_settings.xml&data_file=amcolumn_data.txt&preloader_color=#000000"/>
write(_20) // 写入flash插入的位置。_20可以是id的名称或者是一个dom结点。
PlayerVersion(_29) // 创建版本号对象。
versionIsValid(fv) // 验证flash插件的当前版本号是否兼容fv的版本号(大于等于)。
getQueryParamValue = deconcept.util.getRequestParameter;
FlashObject = deconcept.SWFObject;
SWFObject = deconcept.SWFObject;
2 数据文件
支持csv、xml格式。
csv实际上是一个文本文件,而非excel文件,所以,可以直接使用文本文件来命名。
每一列的数据采用“;”或“,”分隔都可以。
例如:
// amcolumn_data.txt
2003;2.5
2004;4.6
2005;5.8
2006;3.8
2007;4.8
2008;6.8
2009;7.8
3 配置文件
例如:view plaincopy to clipboardprint?
// amcolumn_settings.xml
<?xml version="1.0" encoding="UTF-8"?>
<settings>
<!-- chart config -->
<data_type>csv</data_type> <!-- [xml] (xml / csv) -->
<digits_after_decimal>2</digits_after_decimal>
<legend>
<enabled>false</enabled>
</legend>
<!-- plugin config -->
<plugins>
<!-- value indicator plugin is suitable for line chart, column chart & xy chart -->
<plugin file="/amchart/amchart/amcolumn/plugins/value_indicator.swf" position="above"> <!-- file should be located in "path" folder. position can be "behind" or "above". "behind" means that the plugin will be loaded behind graphs -->
<chart_type>column</chart_type> <!-- [line] (line / column / xy) this plugin can be used with line or with column chart -->
<axis></axis> <!-- [left] (left / right / x / y) if used with line chat use left or right, if used with xy chart, use x or y -->
<line_color>#000000</line_color> <!-- [#BBBB00] (hex color code) -->
<line_alpha></line_alpha> <!-- [100] (0 - 100) -->
<text_color>#000000</text_color> <!-- [settings.text_color] -->
<text_size>13</text_size> <!-- [settings.tex_size] -->
<precision>2</precision> <!-- [0] (Number) how many numbers after comma should be shown -->
</plugin>
</plugins>
</settings>
// amcolumn_settings.xml
<?xml version="1.0" encoding="UTF-8"?>
<settings>
<!-- chart config -->
<data_type>csv</data_type> <!-- [xml] (xml / csv) -->
<digits_after_decimal>2</digits_after_decimal>
<legend>
<enabled>false</enabled>
</legend>
<!-- plugin config -->
<plugins>
<!-- value indicator plugin is suitable for line chart, column chart & xy chart -->
<plugin file="/amchart/amchart/amcolumn/plugins/value_indicator.swf" position="above"> <!-- file should be located in "path" folder. position can be "behind" or "above". "behind" means that the plugin will be loaded behind graphs -->
<chart_type>column</chart_type> <!-- [line] (line / column / xy) this plugin can be used with line or with column chart -->
<axis></axis> <!-- [left] (left / right / x / y) if used with line chat use left or right, if used with xy chart, use x or y -->
<line_color>#000000</line_color> <!-- [#BBBB00] (hex color code) -->
<line_alpha></line_alpha> <!-- [100] (0 - 100) -->
<text_color>#000000</text_color> <!-- [settings.text_color] -->
<text_size>13</text_size> <!-- [settings.tex_size] -->
<precision>2</precision> <!-- [0] (Number) how many numbers after comma should be shown -->
</plugin>
</plugins>
</settings>
4 在HTML上显示
view plaincopy to clipboardprint?
<body>
<!-- saved from url=(0013)about:internet -->
<!-- amcolumn script-->
<div id="flashcontent">
<strong>You need to upgrade your Flash Player</strong>
</div>
<mce:script type="text/javascript"><!--
var so = new SWFObject("/amchart/amchart/amcolumn/amcolumn.swf", "amcolumn", "520", "380", "8", "#FFFFFF"); // 创建SWFObject对象
so.addVariable("path", "/amchart/amchart/amcolumn/"); // 暂时不是很清楚,破解时用到了这个属性。既然,例子写了,我们也写好了。
so.addVariable("settings_file", encodeURIComponent("amcolumn_settings.xml")); // 配置文件
so.addVariable("data_file", encodeURIComponent("amcolumn_data.txt")); // 数据文件
so.addVariable("preloader_color", "#000000"); // 加载时显示的颜色
so.write("flashcontent"); // 在flashcontent位置写入flash插入的HTML
// --></mce:script>
<!-- end of amcolumn script -->
</body>
<body>
<!-- saved from url=(0013)about:internet -->
<!-- amcolumn script-->
<div id="flashcontent">
<strong>You need to upgrade your Flash Player</strong>
</div>
<mce:script type="text/javascript"><!--
var so = new SWFObject("/amchart/amchart/amcolumn/amcolumn.swf", "amcolumn", "520", "380", "8", "#FFFFFF"); // 创建SWFObject对象
so.addVariable("path", "/amchart/amchart/amcolumn/"); // 暂时不是很清楚,破解时用到了这个属性。既然,例子写了,我们也写好了。
so.addVariable("settings_file", encodeURIComponent("amcolumn_settings.xml")); // 配置文件
so.addVariable("data_file", encodeURIComponent("amcolumn_data.txt")); // 数据文件
so.addVariable("preloader_color", "#000000"); // 加载时显示的颜色
so.write("flashcontent"); // 在flashcontent位置写入flash插入的HTML
// --></mce:script>
<!-- end of amcolumn script -->
</body>
5 破解amchart
没有破解的amchart显示的时候在左上角会出现“chart by amCharts.com”链接,表示是未注册版本,非常讨厌。
原理:网上看到的。
用SWF Decompiler软件加载swf文件,在Resources下找Action中的MainMoive,代码中有一段如下:
view plaincopy to clipboardprint?
function checkKey(serial)
{
var _l1 = com.amcharts.Utils.stripSymbols(serial, " ");
_l1 = com.amcharts.Utils.stripSymbols(_l1, "/n");
_l1 = com.amcharts.Utils.stripSymbols(_l1, "/r");
_l1 = com.amcharts.Utils.stripSymbols(_l1, "/r/n");
arr = _l1.split("-");
if (Number(arr[2]) + Number(arr[3]) != 8645 || Number(arr[2].substr(1, 1)) - Number(arr[3].substr(2, 1)) != 2)
{
attachMovie("copyright_mc", "copyright_mc", 1001);
} // end if
} // End of the function
function checkKey(serial)
{
var _l1 = com.amcharts.Utils.stripSymbols(serial, " ");
_l1 = com.amcharts.Utils.stripSymbols(_l1, "/n");
_l1 = com.amcharts.Utils.stripSymbols(_l1, "/r");
_l1 = com.amcharts.Utils.stripSymbols(_l1, "/r/n");
arr = _l1.split("-");
if (Number(arr[2]) + Number(arr[3]) != 8645 || Number(arr[2].substr(1, 1)) - Number(arr[3].substr(2, 1)) != 2)
{
attachMovie("copyright_mc", "copyright_mc", 1001);
} // end if
} // End of the function
这就是序列号的代码,再往下看
key_loader.loadVars(path + "amcharts_key.txt", this, "checkKey", false, "checkKey");
破解:
在swf目录下,新建文件amcharts_key.txt。
输入序列号内容如下:0000-0000-1422-7223。
保存后测试通过!真没想到他们会采用这么简单的加密方式!
注意:测试的时候发现一个问题,即使amcharts_key.txt正确放入SWF文件目录下,也有破解不成功的情况。
1)amcolumn, amline, ampie破解时跟so.addVariable("path", "");有关系。该属性设置错误破解不成功。
2)amstock似乎无法破解!
以上是网上贴的
下面是setting.xml文件一些特别的属性
view plaincopy to clipboardprint?
<graphs> <!-- GRAPHS SETTINGS. These settings can also be specified in data file, as attributes of <graph>, in this case you can delete everything from <graphs> to </graphs> (including) -->
<graph gid="registerall"> <!-- if you are using XML data file, graph "gid" must match graph "gid" in data file -->
<axis></axis> <!-- [left] (left/ right) indicates which y axis should be used -->
<title>registerall</title> <!-- [] (graph title) -->
<color>#0000FF</color> <!-- [] 线条颜色 (hex color code) if not defined, uses colors from this array: #FF0000, #0000FF, #00FF00, #FF9900, #CC00CC, #00CCCC, #33FF00, #990000, #000066 -->
<color_hover>#FF0000</color_hover> <!-- [#BBBB00] 链接颜色 (hex color code) -->
<line_alpha>100</line_alpha> <!-- [100] (0 - 100) 是否显示线条, 0-100越大越清晰; 0浓度为0-->
<line_width>0</line_width> <!-- [0] 线条宽度,不是长度 ..(Number) 0 for hairline -->
<fill_alpha></fill_alpha> <!-- [0] 线条内填充 (0 - 100) if you want the chart to be area chart, use bigger than 0 value -->
<fill_color></fill_color> <!-- [grpah.color] 填充颜色渐变 (hex color code) Separate color codes with comas for gradient -->
<balloon_color></balloon_color> <!-- [graph color] 线条提示颜色, 例:鼠标放在某个节点上,弹出提示背景颜色 (hex color code) leave empty to use the same color as graph -->
<balloon_alpha>90</balloon_alpha> <!-- [100] 提示背景色渐变 (0 - 100) -->
<balloon_text_color></balloon_text_color> <!-- [#FFFFFF] 提示文字颜色(hex color code) -->
<bullet>round</bullet> <!-- [] 节点显示的方式,例:square(方型),round(圆型) (square, round, square_outlined, round_outlined, filename.swf) can be used predefined bullets or loaded custom bullets. Leave empty if you don't want to have bullets at all. Outlined bullets use plot area color for outline color -->
<!-- The chart will look for this file in amline_path folder (amline_path is set in HTML) -->
<bullet_size>0</bullet_size> <!-- [6] 节点显示方式大小渐变 (Number) affects only predefined (square and round) bullets, does not change size of custom loaded bullets -->
<bullet_color>#0000FF</bullet_color> <!-- [graph color] 节点显示颜色 (hex color code) affects only predefined (square and round) bullets, does not change color of custom loaded bullets. Leave empty to use the same color as graph -->
<bullet_alpha>100</bullet_alpha> <!-- [graph alpha] 节点显示大小渐变,跟上面的差不多啊 (hex color code) Leave empty to use the same alpha as graph -->
<hidden></hidden> <!-- [false] 线条是否隐藏 (true / false) vill not be visible until you check corresponding checkbox in the legend -->
<selected>true</selected> <!-- [true] (true / false) if true, balloon indicating value will be visible then roll over plot area -->
<balloon_text>
<!--[CDATA[<b>{value}</b> (个)用户注册 <b>{description}</b>]]--> <!-- [<b>{value}</b><br>{description}] ({title} {value} {series} {description} {percents}) You can format any balloon text: {title} will be replaced with real title, {value} - with value and so on. You can add your own text or html code too. -->
</balloon_text> <!-- 提示信息:可以显示你想要的任何提示信息,前提是registerGenre.php 将值放了进来! 动态的获得数据-->
<data_labels>
<!-- [] 节点处显示信息 ({title} {value} {series} {description} {percents}) Data labels can display value (and more) near your point on the plot area. -->
<!-- to avoid overlapping, data labels, the same as bullets are not visible if there are more then hide_bullets_count data points on plot area. -->
</data_labels>
<data_labels_text_color></data_labels_text_color> <!-- [text_color] 节点颜色 (hex color code) -->
<data_labels_text_size>10</data_labels_text_size> <!-- [text_size] 节点字体大小 (Number) -->
<data_labels_position></data_labels_position> <!-- [above] 节点数量为0时如何显示 below在X轴下面;above在X轴上面 (below / above) -->
<vertical_lines></vertical_lines> <!-- [false] 是否显示节点垂直线 (true / false) whether to draw vertical lines or not. If you want to show vertical lines only (without the graph, set line_alpha to 0 -->
<visible_in_legend></visible_in_legend> <!-- [true] (true / false) whether to show legend entry for this graph or not -->
</graph>
<graphs> <!-- GRAPHS SETTINGS. These settings can also be specified in data file, as attributes of <graph>, in this case you can delete everything from <graphs> to </graphs> (including) -->
<graph gid="registerall"> <!-- if you are using XML data file, graph "gid" must match graph "gid" in data file -->
<axis></axis> <!-- [left] (left/ right) indicates which y axis should be used -->
<title>registerall</title> <!-- [] (graph title) -->
<color>#0000FF</color> <!-- [] 线条颜色 (hex color code) if not defined, uses colors from this array: #FF0000, #0000FF, #00FF00, #FF9900, #CC00CC, #00CCCC, #33FF00, #990000, #000066 -->
<color_hover>#FF0000</color_hover> <!-- [#BBBB00] 链接颜色 (hex color code) -->
<line_alpha>100</line_alpha> <!-- [100] (0 - 100) 是否显示线条, 0-100越大越清晰; 0浓度为0-->
<line_width>0</line_width> <!-- [0] 线条宽度,不是长度 ..(Number) 0 for hairline -->
<fill_alpha></fill_alpha> <!-- [0] 线条内填充 (0 - 100) if you want the chart to be area chart, use bigger than 0 value -->
<fill_color></fill_color> <!-- [grpah.color] 填充颜色渐变 (hex color code) Separate color codes with comas for gradient -->
<balloon_color></balloon_color> <!-- [graph color] 线条提示颜色, 例:鼠标放在某个节点上,弹出提示背景颜色 (hex color code) leave empty to use the same color as graph -->
<balloon_alpha>90</balloon_alpha> <!-- [100] 提示背景色渐变 (0 - 100) -->
<balloon_text_color></balloon_text_color> <!-- [#FFFFFF] 提示文字颜色(hex color code) -->
<bullet>round</bullet> <!-- [] 节点显示的方式,例:square(方型),round(圆型) (square, round, square_outlined, round_outlined, filename.swf) can be used predefined bullets or loaded custom bullets. Leave empty if you don't want to have bullets at all. Outlined bullets use plot area color for outline color -->
<!-- The chart will look for this file in amline_path folder (amline_path is set in HTML) -->
<bullet_size>0</bullet_size> <!-- [6] 节点显示方式大小渐变 (Number) affects only predefined (square and round) bullets, does not change size of custom loaded bullets -->
<bullet_color>#0000FF</bullet_color> <!-- [graph color] 节点显示颜色 (hex color code) affects only predefined (square and round) bullets, does not change color of custom loaded bullets. Leave empty to use the same color as graph -->
<bullet_alpha>100</bullet_alpha> <!-- [graph alpha] 节点显示大小渐变,跟上面的差不多啊 (hex color code) Leave empty to use the same alpha as graph -->
<hidden></hidden> <!-- [false] 线条是否隐藏 (true / false) vill not be visible until you check corresponding checkbox in the legend -->
<selected>true</selected> <!-- [true] (true / false) if true, balloon indicating value will be visible then roll over plot area -->
<balloon_text>
<!--[CDATA[<b>{value}</b> (个)用户注册 <b>{description}</b>]]--> <!-- [<b>{value}</b><br>{description}] ({title} {value} {series} {description} {percents}) You can format any balloon text: {title} will be replaced with real title, {value} - with value and so on. You can add your own text or html code too. -->
</balloon_text> <!-- 提示信息:可以显示你想要的任何提示信息,前提是registerGenre.php 将值放了进来! 动态的获得数据-->
<data_labels>
<!-- [] 节点处显示信息 ({title} {value} {series} {description} {percents}) Data labels can display value (and more) near your point on the plot area. -->
<!-- to avoid overlapping, data labels, the same as bullets are not visible if there are more then hide_bullets_count data points on plot area. -->
</data_labels>
<data_labels_text_color></data_labels_text_color> <!-- [text_color] 节点颜色 (hex color code) -->
<data_labels_text_size>10</data_labels_text_size> <!-- [text_size] 节点字体大小 (Number) -->
<data_labels_position></data_labels_position> <!-- [above] 节点数量为0时如何显示 below在X轴下面;above在X轴上面 (below / above) -->
<vertical_lines></vertical_lines> <!-- [false] 是否显示节点垂直线 (true / false) whether to draw vertical lines or not. If you want to show vertical lines only (without the graph, set line_alpha to 0 -->
<visible_in_legend></visible_in_legend> <!-- [true] (true / false) whether to show legend entry for this graph or not -->
</graph>
这是图表显示样式的设置。。。
-===================================================================
amcharts--setting.xml随记
2011-06-20 9:42
<graphs> <!-- GRAPHS SETTINGS. These settings can also be specified in data file, as attributes of <graph>, in this case you can delete everything from <graphs> to </graphs> (including) -->
<graph gid="registerall"> <!-- if you are using XML data file, graph "gid" must match graph "gid" in data file -->
<axis></axis> <!-- [left] (left/ right) indicates which y axis should be used -->
<title>registerall</title> <!-- [] (graph title) -->
<color>#0000FF</color> <!-- [] 线条颜色 (hex color code) if not defined, uses colors from this array: #FF0000, #0000FF, #00FF00, #FF9900, #CC00CC, #00CCCC, #33FF00, #990000, #000066 -->
<color_hover>#FF0000</color_hover> <!-- [#BBBB00] 链接颜色 (hex color code) -->
<line_alpha>100</line_alpha> <!-- [100] (0 - 100) 是否显示线条, 0-100越大越清晰; 0浓度为0-->
<line_width>0</line_width> <!-- [0] 线条宽度,不是长度 ..(Number) 0 for hairline -->
<fill_alpha></fill_alpha> <!-- [0] 线条内填充 (0 - 100) if you want the chart to be area chart, use bigger than 0 value -->
<fill_color></fill_color> <!-- [grpah.color] 填充颜色渐变 (hex color code) Separate color codes with comas for gradient -->
<balloon_color></balloon_color> <!-- [graph color] 线条提示颜色, 例:鼠标放在某个节点上,弹出提示背景颜色 (hex color code) leave empty to use the same color as graph -->
<balloon_alpha>90</balloon_alpha> <!-- [100] 提示背景色渐变 (0 - 100) -->
<balloon_text_color></balloon_text_color> <!-- [#FFFFFF] 提示文字颜色(hex color code) -->
<bullet>round</bullet> <!-- [] 节点显示的方式,例:square(方型),round(圆型) (square, round, square_outlined, round_outlined, filename.swf) can be used predefined bullets or loaded custom bullets. Leave empty if you don't want to have bullets at all. Outlined bullets use plot area color for outline color -->
<!-- The chart will look for this file in amline_path folder (amline_path is set in HTML) -->
<bullet_size>0</bullet_size> <!-- [6] 节点显示方式大小渐变 (Number) affects only predefined (square and round) bullets, does not change size of custom loaded bullets -->
<bullet_color>#0000FF</bullet_color> <!-- [graph color] 节点显示颜色 (hex color code) affects only predefined (square and round) bullets, does not change color of custom loaded bullets. Leave empty to use the same color as graph -->
<bullet_alpha>100</bullet_alpha> <!-- [graph alpha] 节点显示大小渐变,跟上面的差不多啊 (hex color code) Leave empty to use the same alpha as graph -->
<hidden></hidden> <!-- [false] 线条是否隐藏 (true / false) vill not be visible until you check corresponding checkbox in the legend -->
<selected>true</selected> <!-- [true] (true / false) if true, balloon indicating value will be visible then roll over plot area -->
<balloon_text>
<!--[CDATA[<b>{value}</b> (个)用户注册 <b>{description}</b>]]--> <!-- [<b>{value}</b><br>{description}] ({title} {value} {series} {description} {percents}) You can format any balloon text: {title} will be replaced with real title, {value} - with value and so on. You can add your own text or html code too. -->
</balloon_text> <!-- 提示信息:可以显示你想要的任何提示信息,前提是registerGenre.php 将值放了进来! 动态的获得数据-->
<data_labels>
<!-- [] 节点处显示信息 ({title} {value} {series} {description} {percents}) Data labels can display value (and more) near your point on the plot area. -->
<!-- to avoid overlapping, data labels, the same as bullets are not visible if there are more then hide_bullets_count data points on plot area. -->
</data_labels>
<data_labels_text_color></data_labels_text_color> <!-- [text_color] 节点颜色 (hex color code) -->
<data_labels_text_size>10</data_labels_text_size> <!-- [text_size] 节点字体大小 (Number) -->
<data_labels_position></data_labels_position> <!-- [above] 节点数量为0时如何显示 below在X轴下面;above在X轴上面 (below / above) -->
<vertical_lines></vertical_lines> <!-- [false] 是否显示节点垂直线 (true / false) whether to draw vertical lines or not. If you want to show vertical lines only (without the graph, set line_alpha to 0 -->
<visible_in_legend></visible_in_legend> <!-- [true] (true / false) whether to show legend entry for this graph or not -->
</graph>
http://hi.baidu.com/bieluanchi/blog/item/2c76b3dc0a44cf41cdbf1a05.html
插件当中使用到了amchart (真复杂...)
以下是amchart相关资料
总的来说:
amcharts 要一个“配置文件”(setting.xml),一个数据文件(amile_data.xml),一个 SWFObject.js,一个对应的 SWF 就可以生成漂亮的统计报表了
1 SWFObject v1.5的对象结构
view plaincopy to clipboardprint?
deconcept
util
getRequestParameter(_2b) // 取得url参数value。_2b是URL的key。
SWFObjectUtil
getPlayerVersion() // 取得版本号对象。major.minor.rev。
cleanupSWFs() // 清除页面上所有<OBJECT>元素。
SWFObject(_1, id, w, h, _5, c, _7, _8, _9, _a)
// _1: swf,指定SWF文件路径。
// _id: id,<embed>或者<object>标签的id。
// w: width,属性width。
// h: height,属性height。
// _5: version,flash版本,默认自动会去读取本地的flash插件版本的。
// c: bgcolor,背景色。
// _7: quality,品质(low, high, autolow, autohigh, best ) 。
// _8: xiRedirectUrl
// _9: redirectUrl
// _a: url参数key
useExpressInstall(_d) // 设置xiSWFPath, useExpressInstall属性
setAttribute(_e, _f) // 设置属性attributes。_e是key,_f是value。
getAttribute(_10) // 取得属性attributes中的值。_10是key。
addParam(_l1, _l2) // 设置参数params。_l1是key,_l2是value。
getParams() // 取得params。
addVariable(_l3, _l4) // 设置变量variables。_13是key,_14是value。
getVariable(_l5) // 取得变量variables中的值。
getVariables() // 取得变量variables。
getVariablePairs() // 取得变量variables的key=value对数组。
getSWFHTML() // 返回flash嵌入的HTML
// 例如:
// <embed type="application/x-shockwave-flash"
// src="/amchart/amchart/amcolumn/amcolumn.swf" mce_src="amchart/amchart/amcolumn/amcolumn.swf"
// width="520" height="380"
// style="undefined" mce_style="undefined"
// id="amcolumn" name="amcolumn"
// bgcolor="#FFFFFF"
// quality="high"
// flashvars="path=/amchar/amchar/amcolumn/&settings_file=amcolumn_settings.xml&data_file=amcolumn_data.txt&preloader_color=#000000"/>
write(_20) // 写入flash插入的位置。_20可以是id的名称或者是一个dom结点。
PlayerVersion(_29) // 创建版本号对象。
versionIsValid(fv) // 验证flash插件的当前版本号是否兼容fv的版本号(大于等于)。
getQueryParamValue = deconcept.util.getRequestParameter;
FlashObject = deconcept.SWFObject;
SWFObject = deconcept.SWFObject;
deconcept
util
getRequestParameter(_2b) // 取得url参数value。_2b是URL的key。
SWFObjectUtil
getPlayerVersion() // 取得版本号对象。major.minor.rev。
cleanupSWFs() // 清除页面上所有<OBJECT>元素。
SWFObject(_1, id, w, h, _5, c, _7, _8, _9, _a)
// _1: swf,指定SWF文件路径。
// _id: id,<embed>或者<object>标签的id。
// w: width,属性width。
// h: height,属性height。
// _5: version,flash版本,默认自动会去读取本地的flash插件版本的。
// c: bgcolor,背景色。
// _7: quality,品质(low, high, autolow, autohigh, best ) 。
// _8: xiRedirectUrl
// _9: redirectUrl
// _a: url参数key
useExpressInstall(_d) // 设置xiSWFPath, useExpressInstall属性
setAttribute(_e, _f) // 设置属性attributes。_e是key,_f是value。
getAttribute(_10) // 取得属性attributes中的值。_10是key。
addParam(_l1, _l2) // 设置参数params。_l1是key,_l2是value。
getParams() // 取得params。
addVariable(_l3, _l4) // 设置变量variables。_13是key,_14是value。
getVariable(_l5) // 取得变量variables中的值。
getVariables() // 取得变量variables。
getVariablePairs() // 取得变量variables的key=value对数组。
getSWFHTML() // 返回flash嵌入的HTML
// 例如:
// <embed type="application/x-shockwave-flash"
// src="/amchart/amchart/amcolumn/amcolumn.swf" mce_src="amchart/amchart/amcolumn/amcolumn.swf"
// width="520" height="380"
// style="undefined" mce_style="undefined"
// id="amcolumn" name="amcolumn"
// bgcolor="#FFFFFF"
// quality="high"
// flashvars="path=/amchar/amchar/amcolumn/&settings_file=amcolumn_settings.xml&data_file=amcolumn_data.txt&preloader_color=#000000"/>
write(_20) // 写入flash插入的位置。_20可以是id的名称或者是一个dom结点。
PlayerVersion(_29) // 创建版本号对象。
versionIsValid(fv) // 验证flash插件的当前版本号是否兼容fv的版本号(大于等于)。
getQueryParamValue = deconcept.util.getRequestParameter;
FlashObject = deconcept.SWFObject;
SWFObject = deconcept.SWFObject;
2 数据文件
支持csv、xml格式。
csv实际上是一个文本文件,而非excel文件,所以,可以直接使用文本文件来命名。
每一列的数据采用“;”或“,”分隔都可以。
例如:
// amcolumn_data.txt
2003;2.5
2004;4.6
2005;5.8
2006;3.8
2007;4.8
2008;6.8
2009;7.8
3 配置文件
例如:view plaincopy to clipboardprint?
// amcolumn_settings.xml
<?xml version="1.0" encoding="UTF-8"?>
<settings>
<!-- chart config -->
<data_type>csv</data_type> <!-- [xml] (xml / csv) -->
<digits_after_decimal>2</digits_after_decimal>
<legend>
<enabled>false</enabled>
</legend>
<!-- plugin config -->
<plugins>
<!-- value indicator plugin is suitable for line chart, column chart & xy chart -->
<plugin file="/amchart/amchart/amcolumn/plugins/value_indicator.swf" position="above"> <!-- file should be located in "path" folder. position can be "behind" or "above". "behind" means that the plugin will be loaded behind graphs -->
<chart_type>column</chart_type> <!-- [line] (line / column / xy) this plugin can be used with line or with column chart -->
<axis></axis> <!-- [left] (left / right / x / y) if used with line chat use left or right, if used with xy chart, use x or y -->
<line_color>#000000</line_color> <!-- [#BBBB00] (hex color code) -->
<line_alpha></line_alpha> <!-- [100] (0 - 100) -->
<text_color>#000000</text_color> <!-- [settings.text_color] -->
<text_size>13</text_size> <!-- [settings.tex_size] -->
<precision>2</precision> <!-- [0] (Number) how many numbers after comma should be shown -->
</plugin>
</plugins>
</settings>
// amcolumn_settings.xml
<?xml version="1.0" encoding="UTF-8"?>
<settings>
<!-- chart config -->
<data_type>csv</data_type> <!-- [xml] (xml / csv) -->
<digits_after_decimal>2</digits_after_decimal>
<legend>
<enabled>false</enabled>
</legend>
<!-- plugin config -->
<plugins>
<!-- value indicator plugin is suitable for line chart, column chart & xy chart -->
<plugin file="/amchart/amchart/amcolumn/plugins/value_indicator.swf" position="above"> <!-- file should be located in "path" folder. position can be "behind" or "above". "behind" means that the plugin will be loaded behind graphs -->
<chart_type>column</chart_type> <!-- [line] (line / column / xy) this plugin can be used with line or with column chart -->
<axis></axis> <!-- [left] (left / right / x / y) if used with line chat use left or right, if used with xy chart, use x or y -->
<line_color>#000000</line_color> <!-- [#BBBB00] (hex color code) -->
<line_alpha></line_alpha> <!-- [100] (0 - 100) -->
<text_color>#000000</text_color> <!-- [settings.text_color] -->
<text_size>13</text_size> <!-- [settings.tex_size] -->
<precision>2</precision> <!-- [0] (Number) how many numbers after comma should be shown -->
</plugin>
</plugins>
</settings>
4 在HTML上显示
view plaincopy to clipboardprint?
<body>
<!-- saved from url=(0013)about:internet -->
<!-- amcolumn script-->
<div id="flashcontent">
<strong>You need to upgrade your Flash Player</strong>
</div>
<mce:script type="text/javascript"><!--
var so = new SWFObject("/amchart/amchart/amcolumn/amcolumn.swf", "amcolumn", "520", "380", "8", "#FFFFFF"); // 创建SWFObject对象
so.addVariable("path", "/amchart/amchart/amcolumn/"); // 暂时不是很清楚,破解时用到了这个属性。既然,例子写了,我们也写好了。
so.addVariable("settings_file", encodeURIComponent("amcolumn_settings.xml")); // 配置文件
so.addVariable("data_file", encodeURIComponent("amcolumn_data.txt")); // 数据文件
so.addVariable("preloader_color", "#000000"); // 加载时显示的颜色
so.write("flashcontent"); // 在flashcontent位置写入flash插入的HTML
// --></mce:script>
<!-- end of amcolumn script -->
</body>
<body>
<!-- saved from url=(0013)about:internet -->
<!-- amcolumn script-->
<div id="flashcontent">
<strong>You need to upgrade your Flash Player</strong>
</div>
<mce:script type="text/javascript"><!--
var so = new SWFObject("/amchart/amchart/amcolumn/amcolumn.swf", "amcolumn", "520", "380", "8", "#FFFFFF"); // 创建SWFObject对象
so.addVariable("path", "/amchart/amchart/amcolumn/"); // 暂时不是很清楚,破解时用到了这个属性。既然,例子写了,我们也写好了。
so.addVariable("settings_file", encodeURIComponent("amcolumn_settings.xml")); // 配置文件
so.addVariable("data_file", encodeURIComponent("amcolumn_data.txt")); // 数据文件
so.addVariable("preloader_color", "#000000"); // 加载时显示的颜色
so.write("flashcontent"); // 在flashcontent位置写入flash插入的HTML
// --></mce:script>
<!-- end of amcolumn script -->
</body>
5 破解amchart
没有破解的amchart显示的时候在左上角会出现“chart by amCharts.com”链接,表示是未注册版本,非常讨厌。
原理:网上看到的。
用SWF Decompiler软件加载swf文件,在Resources下找Action中的MainMoive,代码中有一段如下:
view plaincopy to clipboardprint?
function checkKey(serial)
{
var _l1 = com.amcharts.Utils.stripSymbols(serial, " ");
_l1 = com.amcharts.Utils.stripSymbols(_l1, "/n");
_l1 = com.amcharts.Utils.stripSymbols(_l1, "/r");
_l1 = com.amcharts.Utils.stripSymbols(_l1, "/r/n");
arr = _l1.split("-");
if (Number(arr[2]) + Number(arr[3]) != 8645 || Number(arr[2].substr(1, 1)) - Number(arr[3].substr(2, 1)) != 2)
{
attachMovie("copyright_mc", "copyright_mc", 1001);
} // end if
} // End of the function
function checkKey(serial)
{
var _l1 = com.amcharts.Utils.stripSymbols(serial, " ");
_l1 = com.amcharts.Utils.stripSymbols(_l1, "/n");
_l1 = com.amcharts.Utils.stripSymbols(_l1, "/r");
_l1 = com.amcharts.Utils.stripSymbols(_l1, "/r/n");
arr = _l1.split("-");
if (Number(arr[2]) + Number(arr[3]) != 8645 || Number(arr[2].substr(1, 1)) - Number(arr[3].substr(2, 1)) != 2)
{
attachMovie("copyright_mc", "copyright_mc", 1001);
} // end if
} // End of the function
这就是序列号的代码,再往下看
key_loader.loadVars(path + "amcharts_key.txt", this, "checkKey", false, "checkKey");
破解:
在swf目录下,新建文件amcharts_key.txt。
输入序列号内容如下:0000-0000-1422-7223。
保存后测试通过!真没想到他们会采用这么简单的加密方式!
注意:测试的时候发现一个问题,即使amcharts_key.txt正确放入SWF文件目录下,也有破解不成功的情况。
1)amcolumn, amline, ampie破解时跟so.addVariable("path", "");有关系。该属性设置错误破解不成功。
2)amstock似乎无法破解!
以上是网上贴的
下面是setting.xml文件一些特别的属性
view plaincopy to clipboardprint?
<graphs> <!-- GRAPHS SETTINGS. These settings can also be specified in data file, as attributes of <graph>, in this case you can delete everything from <graphs> to </graphs> (including) -->
<graph gid="registerall"> <!-- if you are using XML data file, graph "gid" must match graph "gid" in data file -->
<axis></axis> <!-- [left] (left/ right) indicates which y axis should be used -->
<title>registerall</title> <!-- [] (graph title) -->
<color>#0000FF</color> <!-- [] 线条颜色 (hex color code) if not defined, uses colors from this array: #FF0000, #0000FF, #00FF00, #FF9900, #CC00CC, #00CCCC, #33FF00, #990000, #000066 -->
<color_hover>#FF0000</color_hover> <!-- [#BBBB00] 链接颜色 (hex color code) -->
<line_alpha>100</line_alpha> <!-- [100] (0 - 100) 是否显示线条, 0-100越大越清晰; 0浓度为0-->
<line_width>0</line_width> <!-- [0] 线条宽度,不是长度 ..(Number) 0 for hairline -->
<fill_alpha></fill_alpha> <!-- [0] 线条内填充 (0 - 100) if you want the chart to be area chart, use bigger than 0 value -->
<fill_color></fill_color> <!-- [grpah.color] 填充颜色渐变 (hex color code) Separate color codes with comas for gradient -->
<balloon_color></balloon_color> <!-- [graph color] 线条提示颜色, 例:鼠标放在某个节点上,弹出提示背景颜色 (hex color code) leave empty to use the same color as graph -->
<balloon_alpha>90</balloon_alpha> <!-- [100] 提示背景色渐变 (0 - 100) -->
<balloon_text_color></balloon_text_color> <!-- [#FFFFFF] 提示文字颜色(hex color code) -->
<bullet>round</bullet> <!-- [] 节点显示的方式,例:square(方型),round(圆型) (square, round, square_outlined, round_outlined, filename.swf) can be used predefined bullets or loaded custom bullets. Leave empty if you don't want to have bullets at all. Outlined bullets use plot area color for outline color -->
<!-- The chart will look for this file in amline_path folder (amline_path is set in HTML) -->
<bullet_size>0</bullet_size> <!-- [6] 节点显示方式大小渐变 (Number) affects only predefined (square and round) bullets, does not change size of custom loaded bullets -->
<bullet_color>#0000FF</bullet_color> <!-- [graph color] 节点显示颜色 (hex color code) affects only predefined (square and round) bullets, does not change color of custom loaded bullets. Leave empty to use the same color as graph -->
<bullet_alpha>100</bullet_alpha> <!-- [graph alpha] 节点显示大小渐变,跟上面的差不多啊 (hex color code) Leave empty to use the same alpha as graph -->
<hidden></hidden> <!-- [false] 线条是否隐藏 (true / false) vill not be visible until you check corresponding checkbox in the legend -->
<selected>true</selected> <!-- [true] (true / false) if true, balloon indicating value will be visible then roll over plot area -->
<balloon_text>
<!--[CDATA[<b>{value}</b> (个)用户注册 <b>{description}</b>]]--> <!-- [<b>{value}</b><br>{description}] ({title} {value} {series} {description} {percents}) You can format any balloon text: {title} will be replaced with real title, {value} - with value and so on. You can add your own text or html code too. -->
</balloon_text> <!-- 提示信息:可以显示你想要的任何提示信息,前提是registerGenre.php 将值放了进来! 动态的获得数据-->
<data_labels>
<!-- [] 节点处显示信息 ({title} {value} {series} {description} {percents}) Data labels can display value (and more) near your point on the plot area. -->
<!-- to avoid overlapping, data labels, the same as bullets are not visible if there are more then hide_bullets_count data points on plot area. -->
</data_labels>
<data_labels_text_color></data_labels_text_color> <!-- [text_color] 节点颜色 (hex color code) -->
<data_labels_text_size>10</data_labels_text_size> <!-- [text_size] 节点字体大小 (Number) -->
<data_labels_position></data_labels_position> <!-- [above] 节点数量为0时如何显示 below在X轴下面;above在X轴上面 (below / above) -->
<vertical_lines></vertical_lines> <!-- [false] 是否显示节点垂直线 (true / false) whether to draw vertical lines or not. If you want to show vertical lines only (without the graph, set line_alpha to 0 -->
<visible_in_legend></visible_in_legend> <!-- [true] (true / false) whether to show legend entry for this graph or not -->
</graph>
<graphs> <!-- GRAPHS SETTINGS. These settings can also be specified in data file, as attributes of <graph>, in this case you can delete everything from <graphs> to </graphs> (including) -->
<graph gid="registerall"> <!-- if you are using XML data file, graph "gid" must match graph "gid" in data file -->
<axis></axis> <!-- [left] (left/ right) indicates which y axis should be used -->
<title>registerall</title> <!-- [] (graph title) -->
<color>#0000FF</color> <!-- [] 线条颜色 (hex color code) if not defined, uses colors from this array: #FF0000, #0000FF, #00FF00, #FF9900, #CC00CC, #00CCCC, #33FF00, #990000, #000066 -->
<color_hover>#FF0000</color_hover> <!-- [#BBBB00] 链接颜色 (hex color code) -->
<line_alpha>100</line_alpha> <!-- [100] (0 - 100) 是否显示线条, 0-100越大越清晰; 0浓度为0-->
<line_width>0</line_width> <!-- [0] 线条宽度,不是长度 ..(Number) 0 for hairline -->
<fill_alpha></fill_alpha> <!-- [0] 线条内填充 (0 - 100) if you want the chart to be area chart, use bigger than 0 value -->
<fill_color></fill_color> <!-- [grpah.color] 填充颜色渐变 (hex color code) Separate color codes with comas for gradient -->
<balloon_color></balloon_color> <!-- [graph color] 线条提示颜色, 例:鼠标放在某个节点上,弹出提示背景颜色 (hex color code) leave empty to use the same color as graph -->
<balloon_alpha>90</balloon_alpha> <!-- [100] 提示背景色渐变 (0 - 100) -->
<balloon_text_color></balloon_text_color> <!-- [#FFFFFF] 提示文字颜色(hex color code) -->
<bullet>round</bullet> <!-- [] 节点显示的方式,例:square(方型),round(圆型) (square, round, square_outlined, round_outlined, filename.swf) can be used predefined bullets or loaded custom bullets. Leave empty if you don't want to have bullets at all. Outlined bullets use plot area color for outline color -->
<!-- The chart will look for this file in amline_path folder (amline_path is set in HTML) -->
<bullet_size>0</bullet_size> <!-- [6] 节点显示方式大小渐变 (Number) affects only predefined (square and round) bullets, does not change size of custom loaded bullets -->
<bullet_color>#0000FF</bullet_color> <!-- [graph color] 节点显示颜色 (hex color code) affects only predefined (square and round) bullets, does not change color of custom loaded bullets. Leave empty to use the same color as graph -->
<bullet_alpha>100</bullet_alpha> <!-- [graph alpha] 节点显示大小渐变,跟上面的差不多啊 (hex color code) Leave empty to use the same alpha as graph -->
<hidden></hidden> <!-- [false] 线条是否隐藏 (true / false) vill not be visible until you check corresponding checkbox in the legend -->
<selected>true</selected> <!-- [true] (true / false) if true, balloon indicating value will be visible then roll over plot area -->
<balloon_text>
<!--[CDATA[<b>{value}</b> (个)用户注册 <b>{description}</b>]]--> <!-- [<b>{value}</b><br>{description}] ({title} {value} {series} {description} {percents}) You can format any balloon text: {title} will be replaced with real title, {value} - with value and so on. You can add your own text or html code too. -->
</balloon_text> <!-- 提示信息:可以显示你想要的任何提示信息,前提是registerGenre.php 将值放了进来! 动态的获得数据-->
<data_labels>
<!-- [] 节点处显示信息 ({title} {value} {series} {description} {percents}) Data labels can display value (and more) near your point on the plot area. -->
<!-- to avoid overlapping, data labels, the same as bullets are not visible if there are more then hide_bullets_count data points on plot area. -->
</data_labels>
<data_labels_text_color></data_labels_text_color> <!-- [text_color] 节点颜色 (hex color code) -->
<data_labels_text_size>10</data_labels_text_size> <!-- [text_size] 节点字体大小 (Number) -->
<data_labels_position></data_labels_position> <!-- [above] 节点数量为0时如何显示 below在X轴下面;above在X轴上面 (below / above) -->
<vertical_lines></vertical_lines> <!-- [false] 是否显示节点垂直线 (true / false) whether to draw vertical lines or not. If you want to show vertical lines only (without the graph, set line_alpha to 0 -->
<visible_in_legend></visible_in_legend> <!-- [true] (true / false) whether to show legend entry for this graph or not -->
</graph>
这是图表显示样式的设置。。。
-===================================================================
amcharts--setting.xml随记
2011-06-20 9:42
<graphs> <!-- GRAPHS SETTINGS. These settings can also be specified in data file, as attributes of <graph>, in this case you can delete everything from <graphs> to </graphs> (including) -->
<graph gid="registerall"> <!-- if you are using XML data file, graph "gid" must match graph "gid" in data file -->
<axis></axis> <!-- [left] (left/ right) indicates which y axis should be used -->
<title>registerall</title> <!-- [] (graph title) -->
<color>#0000FF</color> <!-- [] 线条颜色 (hex color code) if not defined, uses colors from this array: #FF0000, #0000FF, #00FF00, #FF9900, #CC00CC, #00CCCC, #33FF00, #990000, #000066 -->
<color_hover>#FF0000</color_hover> <!-- [#BBBB00] 链接颜色 (hex color code) -->
<line_alpha>100</line_alpha> <!-- [100] (0 - 100) 是否显示线条, 0-100越大越清晰; 0浓度为0-->
<line_width>0</line_width> <!-- [0] 线条宽度,不是长度 ..(Number) 0 for hairline -->
<fill_alpha></fill_alpha> <!-- [0] 线条内填充 (0 - 100) if you want the chart to be area chart, use bigger than 0 value -->
<fill_color></fill_color> <!-- [grpah.color] 填充颜色渐变 (hex color code) Separate color codes with comas for gradient -->
<balloon_color></balloon_color> <!-- [graph color] 线条提示颜色, 例:鼠标放在某个节点上,弹出提示背景颜色 (hex color code) leave empty to use the same color as graph -->
<balloon_alpha>90</balloon_alpha> <!-- [100] 提示背景色渐变 (0 - 100) -->
<balloon_text_color></balloon_text_color> <!-- [#FFFFFF] 提示文字颜色(hex color code) -->
<bullet>round</bullet> <!-- [] 节点显示的方式,例:square(方型),round(圆型) (square, round, square_outlined, round_outlined, filename.swf) can be used predefined bullets or loaded custom bullets. Leave empty if you don't want to have bullets at all. Outlined bullets use plot area color for outline color -->
<!-- The chart will look for this file in amline_path folder (amline_path is set in HTML) -->
<bullet_size>0</bullet_size> <!-- [6] 节点显示方式大小渐变 (Number) affects only predefined (square and round) bullets, does not change size of custom loaded bullets -->
<bullet_color>#0000FF</bullet_color> <!-- [graph color] 节点显示颜色 (hex color code) affects only predefined (square and round) bullets, does not change color of custom loaded bullets. Leave empty to use the same color as graph -->
<bullet_alpha>100</bullet_alpha> <!-- [graph alpha] 节点显示大小渐变,跟上面的差不多啊 (hex color code) Leave empty to use the same alpha as graph -->
<hidden></hidden> <!-- [false] 线条是否隐藏 (true / false) vill not be visible until you check corresponding checkbox in the legend -->
<selected>true</selected> <!-- [true] (true / false) if true, balloon indicating value will be visible then roll over plot area -->
<balloon_text>
<!--[CDATA[<b>{value}</b> (个)用户注册 <b>{description}</b>]]--> <!-- [<b>{value}</b><br>{description}] ({title} {value} {series} {description} {percents}) You can format any balloon text: {title} will be replaced with real title, {value} - with value and so on. You can add your own text or html code too. -->
</balloon_text> <!-- 提示信息:可以显示你想要的任何提示信息,前提是registerGenre.php 将值放了进来! 动态的获得数据-->
<data_labels>
<!-- [] 节点处显示信息 ({title} {value} {series} {description} {percents}) Data labels can display value (and more) near your point on the plot area. -->
<!-- to avoid overlapping, data labels, the same as bullets are not visible if there are more then hide_bullets_count data points on plot area. -->
</data_labels>
<data_labels_text_color></data_labels_text_color> <!-- [text_color] 节点颜色 (hex color code) -->
<data_labels_text_size>10</data_labels_text_size> <!-- [text_size] 节点字体大小 (Number) -->
<data_labels_position></data_labels_position> <!-- [above] 节点数量为0时如何显示 below在X轴下面;above在X轴上面 (below / above) -->
<vertical_lines></vertical_lines> <!-- [false] 是否显示节点垂直线 (true / false) whether to draw vertical lines or not. If you want to show vertical lines only (without the graph, set line_alpha to 0 -->
<visible_in_legend></visible_in_legend> <!-- [true] (true / false) whether to show legend entry for this graph or not -->
</graph>
http://hi.baidu.com/bieluanchi/blog/item/2c76b3dc0a44cf41cdbf1a05.html
相关推荐
在本学习笔记中,我们将深入探讨如何使用AmCharts来生成统计报表,并了解其核心组件和工作原理。 首先,AmCharts的数据展示依赖于三个主要文件: 1. **配置文件(Setting.xml)**:这个文件定义了图表的样式、颜色...
Kubernetes 是一种强大的容器编排系统,用于自动化容器化应用程序的部署、扩展和管理。它由一系列组件构成,这些组件协同工作以实现高效且可靠的容器集群管理。在深入理解 Kubernetes 知识点之前,让我们先了解其...
### AmCharts 学习笔记知识点解析 #### 一、图种类与类型说明 在AmCharts中,图表的种类和类型多样,适用于不同的数据可视化需求。 1. **AmPieChart** - 类型:饼图 - 用途:用于表示各部分在整体中的占比情况...
基于Maxwell设计的经典280W 4025RPM高效率科尔摩根12极39槽TBM无框力矩电机:生产与学习双重应用案例,基于Maxwell设计的经典280W高转速科尔摩根TBM无框力矩电机:7615系列案例解析与应用实践,基于maxwwell设计的经典280W,4025RPM 内转子 科尔摩根 12极39槽 TBM无框力矩电机,7615系列。 该案例可用于生产,或者学习用,(157) ,maxwell设计; 280W; 4025RPM内转子; 科尔摩根; 12极39槽TBM无框力矩电机; 7615系列; 生产/学习用。,基于Maxwell设计,高功率280W 12极39槽TBM无框力矩电机:生产与学习双用途案例
基于碳交易的微网优化模型的Matlab设计与实现策略分析,基于碳交易的微网优化模型的Matlab设计与实现探讨,考虑碳交易的微网优化模型matlab ,考虑碳交易; 微网优化模型; MATLAB;,基于Matlab的碳交易微网优化模型研究
二级2025模拟试题(答案版)
OpenCV是一个功能强大的计算机视觉库,它提供了多种工具和算法来处理图像和视频数据。在C++中,OpenCV可以用于实现基础的人脸识别功能,包括从摄像头、图片和视频中识别人脸,以及通过PCA(主成分分析)提取图像轮廓。以下是对本资源大体的介绍: 1. 从摄像头中识别人脸:通过使用OpenCV的Haar特征分类器,我们可以实时从摄像头捕获的视频流中检测人脸。这个过程涉及到将视频帧转换为灰度图像,然后使用预训练的Haar级联分类器来识别人脸区域。 2. 从视频中识别出所有人脸和人眼:在视频流中,除了检测人脸,我们还可以进一步识别人眼。这通常涉及到使用额外的Haar级联分类器来定位人眼区域,从而实现对人脸特征的更细致分析。 3. 从图片中检测出人脸:对于静态图片,OpenCV同样能够检测人脸。通过加载图片,转换为灰度图,然后应用Haar级联分类器,我们可以在图片中标记出人脸的位置。 4. PCA提取图像轮廓:PCA是一种统计方法,用于分析和解释数据中的模式。在图像处理中,PCA可以用来提取图像的主要轮廓特征,这对于人脸识别技术中的面部特征提取尤
麻雀搜索算法(SSA)自适应t分布改进版:卓越性能与优化代码注释,适合深度学习。,自适应t分布改进麻雀搜索算法(TSSA)——卓越的学习样本,优化效果出众,麻雀搜索算法(SSA)改进——采用自适应t分布改进麻雀位置(TSSA),优化后明显要优于基础SSA(代码基本每一步都有注释,代码质量极高,非常适合学习) ,TSSA(自适应t分布麻雀位置算法);注释详尽;高质量代码;适合学习;算法改进结果优异;TSSA相比基础SSA。,自适应T分布优化麻雀搜索算法:代码详解与学习首选(TSSA改进版)
锂电池主动均衡Simulink仿真研究:多种均衡策略与电路架构的深度探讨,锂电池主动均衡与多种均衡策略的Simulink仿真研究:buckboost拓扑及多层次电路分析,锂电池主动均衡simulink仿真 四节电池 基于buckboost(升降压)拓扑 (还有传统电感均衡+开关电容均衡+双向反激均衡+双层准谐振均衡+环形均衡器+cuk+耦合电感)被动均衡电阻式均衡 、分层架构式均衡以及分层式电路均衡,多层次电路,充放电。 ,核心关键词: 锂电池; 主动均衡; Simulink仿真; 四节电池; BuckBoost拓扑; 传统电感均衡; 开关电容均衡; 双向反激均衡; 双层准谐振均衡; 环形均衡器; CUK均衡; 耦合电感均衡; 被动均衡; 电阻式均衡; 分层架构式均衡; 多层次电路; 充放电。,锂电池均衡策略研究:Simulink仿真下的多拓扑主动与被动均衡技术
S7-1500和分布式外围系统ET200MP模块数据
内置式永磁同步电机无位置传感器模型:基于滑膜观测器和MTPA技术的深度探究,内置式永磁同步电机基于滑膜观测器和MTPA的无位置传感器模型研究,基于滑膜观测器和MTPA的内置式永磁同步电机无位置传感器模型 ,基于滑膜观测器;MTPA;内置式永磁同步电机;无位置传感器模型,基于滑膜观测与MTPA算法的永磁同步电机无位置传感器模型
centos7操作系统下安装docker,及docker常用命令、在docker中运行nginx示例,包括 1.设置yum的仓库 2.安装 Docker Engine-Community 3.docker使用 4.查看docker进程是否启动成功 5.docker常用命令及nginx示例 6.常见问题
给曙光服务器安装windows2012r2时候找不到磁盘,问厂家工程师要的raid卡驱动,内含主流大多数品牌raid卡驱动
数学建模相关主题资源2
西门子四轴卧式加工中心后处理系统:828D至840D支持,四轴联动制造解决方案,图档处理与试看程序一应俱全。,西门子四轴卧加后处理系统:支持828D至840D系统,四轴联动高精度制造解决方案,西门子四轴卧加后处理,支持828D~840D系统,支持四轴联动,可制制,看清楚联系,可提供图档处理试看程序 ,核心关键词:西门子四轴卧加后处理; 828D~840D系统支持; 四轴联动; 制程; 联系; 图档处理试看程序。,西门子四轴卧加后处理程序,支持多种系统与四轴联动
MATLAB下基于列约束生成法CCG的两阶段鲁棒优化问题求解入门指南:算法验证与经典文献参考,MATLAB下基于列约束生成法CCG的两阶段鲁棒优化问题求解入门指南:算法验证与文献参考,MATLAB代码:基于列约束生成法CCG的两阶段问题求解 关键词:两阶段鲁棒 列约束生成法 CCG算法 参考文档:《Solving two-stage robust optimization problems using a column-and-constraint generation method》 仿真平台:MATLAB YALMIP+CPLEX 主要内容:代码构建了两阶段鲁棒优化模型,并用文档中的相对简单的算例,进行CCG算法的验证,此篇文献是CCG算法或者列约束生成算法的入门级文献,其经典程度不言而喻,几乎每个搞CCG的两阶段鲁棒的人都绕不过此篇文献 ,两阶段鲁棒;列约束生成法;CCG算法;MATLAB;YALMIP+CPLEX;入门级文献。,MATLAB代码实现:基于两阶段鲁棒与列约束生成法CCG的算法验证研究
“生热研究的全面解读:探究参数已配置的Comsol模型中的18650圆柱锂电池表现”,探究已配置参数的COMSOL模型下的锂电池生热现象:18650圆柱锂电池模拟分析,出一个18650圆柱锂电池comsol模型 参数已配置,生热研究 ,出模型; 18650圆柱锂电池; comsol模型; 参数配置; 生热研究,构建18650电池的COMSOL热研究模型
移动端多端运行的知识付费管理系统源码,TP6+Layui+MySQL后端支持,功能丰富,涵盖直播、点播、管理全功能及礼物互动,基于UniApp跨平台开发的移动端知识付费管理系统源码:多端互通、全功能齐备、后端采用TP6与PHP及Layui前端,搭载MySQL数据库与直播、点播、管理、礼物等功能的强大整合。,知识付费管理系统源码,移动端uniApp开发,app h5 小程序一套代码多端运行,后端php(tp6)+layui+MySQL,功能齐全,直播,点播,管理,礼物等等功能应有尽有 ,知识付费;管理系统源码;移动端uniApp开发;多端运行;后端php(tp6);layui;MySQL;直播点播;管理功能;礼物功能,知识付费管理平台:全功能多端运行系统源码(PHP+Layui+MySQL)
基于Python+Django+MySQL的个性化图书推荐系统:协同过滤推荐,智能部署,用户定制功能,基于Python+Django+MySQL的个性化图书推荐系统:协同过滤推荐,智能部署,用户定制功能,Python+Django+Mysql个性化图书推荐系统 图书在线推荐系统 基于用户、项目、内容的协同过滤推荐算法。 帮远程安装部署 一、项目简介 1、开发工具和实现技术 Python3.8,Django4,mysql8,navicat数据库管理工具,html页面,javascript脚本,jquery脚本,bootstrap前端框架,layer弹窗组件、webuploader文件上传组件等。 2、项目功能 前台用户包含:注册、登录、注销、浏览图书、搜索图书、信息修改、密码修改、兴趣喜好标签、图书评分、图书收藏、图书评论、热点推荐、个性化推荐图书等功能; 后台管理员包含:用户管理、图书管理、图书类型管理、评分管理、收藏管理、评论管理、兴趣喜好标签管理、权限管理等。 个性化推荐功能: 无论是否登录,在前台首页展示热点推荐(根据图书被收藏数量降序推荐)。 登录用户,在前台首页展示个性化推荐
STM32企业级锅炉控制器源码分享:真实项目经验,带注释完整源码助你快速掌握实战经验,STM32企业级锅炉控制器源码:真实项目经验,完整注释,助力初学者快速上手,stm32真实企业项目源码 项目要求与网上搜的那些开发板的例程完全不在一个级别,也不是那些凑合性质的项目可以比拟的。 项目是企业级产品的要求开发的,能够让初学者了解真实的企业项目是怎么样的,增加工作经验 企业真实项目网上稀缺,完整源码带注释,适合没有参与工作或者刚学stm32的增加工作经验, 这是一个锅炉的控制器,有流程图和程序协议的介绍。 ,stm32源码;企业级项目;工作经验;锅炉控制器;流程图;程序协议,基于STM32的真实企业级锅炉控制器项目源码