Skip to content

Commit 18e6d80

Browse files
JC.FChart add Stack
1 parent 5df3e6e commit 18e6d80

18 files changed

+1491
-43
lines changed

docs_api/classes/JC.FChart.html

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,10 @@ <h3>Properties</h3>
261261
<a href="#property_Model.FLASH_PATH">Model.FLASH_PATH</a>
262262
<span class="flag static">static</span>
263263
</li>
264+
<li class="index-item property">
265+
<a href="#property_Model.SWF_FILE_MAP">Model.SWF_FILE_MAP</a>
266+
<span class="flag static">static</span>
267+
</li>
264268
<li class="index-item property">
265269
<a href="#property_Model.TYPE_MAP">Model.TYPE_MAP</a>
266270
<span class="flag static">static</span>
@@ -683,7 +687,7 @@ <h3 class="name"><code>Model.FLASH_PATH</code></h3>
683687
<div class="meta">
684688
<p>
685689
Defined in
686-
<a href="../files/.._modules_JC.FChart_0.1_FChart.js.html#l219"><code>..&#x2F;modules&#x2F;JC.FChart&#x2F;0.1&#x2F;FChart.js:219</code></a>
690+
<a href="../files/.._modules_JC.FChart_0.1_FChart.js.html#l244"><code>..&#x2F;modules&#x2F;JC.FChart&#x2F;0.1&#x2F;FChart.js:244</code></a>
687691
</p>
688692
</div>
689693
<div class="description">
@@ -692,6 +696,40 @@ <h3 class="name"><code>Model.FLASH_PATH</code></h3>
692696
<br />{1} = chart file name</p>
693697
</div>
694698
<p><strong>Default:</strong> {0}/flash/pub/charts/{1}.swf</p>
699+
</div>
700+
<div id="property_Model.SWF_FILE_MAP" class="property item">
701+
<h3 class="name"><code>Model.SWF_FILE_MAP</code></h3>
702+
<span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
703+
<span class="flag static">static</span>
704+
<div class="meta">
705+
<p>
706+
Defined in
707+
<a href="../files/.._modules_JC.FChart_0.1_FChart.js.html#l219"><code>..&#x2F;modules&#x2F;JC.FChart&#x2F;0.1&#x2F;FChart.js:219</code></a>
708+
</p>
709+
</div>
710+
<div class="description">
711+
<p>flash swf 路径映射
712+
<br />你还可以使用其他属性进行定义路径映射</p>
713+
<pre class="code prettyprint"><code> 1. window.FCHART_SWF_FILE_MAP
714+
2. JC.FCHART_SWF_FILE_MAP</code></pre>
715+
</div>
716+
<p><strong>Default:</strong> null</p>
717+
<div class="example">
718+
<h4>Example:</h4>
719+
<div class="example-content">
720+
<pre class="code prettyprint"><code> requirejs( [ &#39;JC.FChart&#39; ], function( FChart ){
721+
FChart[&#39;Model&#39;].SWF_FILE_MAP = {
722+
&#39;bar&#39;: &#39;http://fchart.openjavascript.org/modules/JC.FChart/0.1/swf/Histogram.swf&#39;
723+
, &#39;vbar&#39;: &#39;http://fchart.openjavascript.org/modules/JC.FChart/0.1/swf/VHistogram.swf&#39;
724+
, &#39;line&#39;: &#39;http://fchart.openjavascript.org/modules/JC.FChart/0.1/swf/CurveGram.swf&#39;
725+
, &#39;stack&#39;: &#39;http://fchart.openjavascript.org/modules/JC.FChart/0.1/swf/Stack.swf&#39;
726+
, &#39;mix&#39;: &#39;http://fchart.openjavascript.org/modules/JC.FChart/0.1/swf/MixChart.swf&#39;
727+
, &#39;column&#39;: &#39;http://fchart.openjavascript.org/modules/JC.FChart/0.1/swf/ZHistogram.swf&#39;
728+
, &#39;hcolumn&#39;: &#39;http://fchart.openjavascript.org/modules/JC.FChart/0.1/swf/VZHistogram.swf&#39;
729+
};
730+
});</code></pre>
731+
</div>
732+
</div>
695733
</div>
696734
<div id="property_Model.TYPE_MAP" class="property item">
697735
<h3 class="name"><code>Model.TYPE_MAP</code></h3>
@@ -700,7 +738,7 @@ <h3 class="name"><code>Model.TYPE_MAP</code></h3>
700738
<div class="meta">
701739
<p>
702740
Defined in
703-
<a href="../files/.._modules_JC.FChart_0.1_FChart.js.html#l247"><code>..&#x2F;modules&#x2F;JC.FChart&#x2F;0.1&#x2F;FChart.js:247</code></a>
741+
<a href="../files/.._modules_JC.FChart_0.1_FChart.js.html#l272"><code>..&#x2F;modules&#x2F;JC.FChart&#x2F;0.1&#x2F;FChart.js:272</code></a>
704742
</p>
705743
</div>
706744
<div class="description">
@@ -720,7 +758,7 @@ <h3 class="name"><code>Model.VERSION</code></h3>
720758
<div class="meta">
721759
<p>
722760
Defined in
723-
<a href="../files/.._modules_JC.FChart_0.1_FChart.js.html#l230"><code>..&#x2F;modules&#x2F;JC.FChart&#x2F;0.1&#x2F;FChart.js:230</code></a>
761+
<a href="../files/.._modules_JC.FChart_0.1_FChart.js.html#l255"><code>..&#x2F;modules&#x2F;JC.FChart&#x2F;0.1&#x2F;FChart.js:255</code></a>
724762
</p>
725763
</div>
726764
<div class="description">

docs_api/data.json

Lines changed: 53 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,6 +1183,21 @@
11831183
{
11841184
"file": "../modules/JC.FChart/0.1/FChart.js",
11851185
"line": 219,
1186+
"description": "flash swf 路径映射\n<br />你还可以使用其他属性进行定义路径映射\n 1. window.FCHART_SWF_FILE_MAP\n 2. JC.FCHART_SWF_FILE_MAP",
1187+
"itemtype": "property",
1188+
"name": "Model.SWF_FILE_MAP",
1189+
"type": "{object}",
1190+
"default": "null",
1191+
"static": 1,
1192+
"example": [
1193+
"\n requirejs( [ 'JC.FChart' ], function( FChart ){\n FChart['Model'].SWF_FILE_MAP = {\n 'bar': 'http://fchart.openjavascript.org/modules/JC.FChart/0.1/swf/Histogram.swf'\n , 'vbar': 'http://fchart.openjavascript.org/modules/JC.FChart/0.1/swf/VHistogram.swf'\n , 'line': 'http://fchart.openjavascript.org/modules/JC.FChart/0.1/swf/CurveGram.swf'\n , 'stack': 'http://fchart.openjavascript.org/modules/JC.FChart/0.1/swf/Stack.swf'\n , 'mix': 'http://fchart.openjavascript.org/modules/JC.FChart/0.1/swf/MixChart.swf'\n\n , 'column': 'http://fchart.openjavascript.org/modules/JC.FChart/0.1/swf/ZHistogram.swf'\n , 'hcolumn': 'http://fchart.openjavascript.org/modules/JC.FChart/0.1/swf/VZHistogram.swf'\n };\n });"
1194+
],
1195+
"class": "JC.FChart",
1196+
"namespace": "JC"
1197+
},
1198+
{
1199+
"file": "../modules/JC.FChart/0.1/FChart.js",
1200+
"line": 244,
11861201
"description": "flash swf 路径\n<br />{0} = JC.PATH\n<br />{1} = chart file name",
11871202
"itemtype": "property",
11881203
"name": "Model.FLASH_PATH",
@@ -1194,7 +1209,7 @@
11941209
},
11951210
{
11961211
"file": "../modules/JC.FChart/0.1/FChart.js",
1197-
"line": 230,
1212+
"line": 255,
11981213
"description": "flash swf 缓存版本控制",
11991214
"itemtype": "property",
12001215
"name": "Model.VERSION",
@@ -1206,7 +1221,7 @@
12061221
},
12071222
{
12081223
"file": "../modules/JC.FChart/0.1/FChart.js",
1209-
"line": 247,
1224+
"line": 272,
12101225
"description": "图表类型映射\n<br />曲线图: line, curvegram\n<br />柱状图: bar, histogram\n<br />垂直柱状图: var, vhistogram\n<br />饼状图: pie, piegraph\n<br />圆环图: dount\n<br />评分球: rate",
12111226
"itemtype": "property",
12121227
"name": "Model.TYPE_MAP",
@@ -1217,126 +1232,126 @@
12171232
},
12181233
{
12191234
"file": "../modules/JC.FChart/0.1/FChart.js",
1220-
"line": 309,
1235+
"line": 336,
12211236
"description": "解析图表默认数据",
12221237
"class": "JC.FChart",
12231238
"namespace": "JC"
12241239
},
12251240
{
12261241
"file": "../modules/JC.FChart/0.1/FChart.js",
1227-
"line": 331,
1242+
"line": 358,
12281243
"description": "保存图表数据",
12291244
"class": "JC.FChart",
12301245
"namespace": "JC"
12311246
},
12321247
{
12331248
"file": "../modules/JC.FChart/0.1/FChart.js",
1234-
"line": 342,
1249+
"line": 369,
12351250
"description": "图表宽度",
12361251
"class": "JC.FChart",
12371252
"namespace": "JC"
12381253
},
12391254
{
12401255
"file": "../modules/JC.FChart/0.1/FChart.js",
1241-
"line": 353,
1256+
"line": 380,
12421257
"description": "图表高度",
12431258
"class": "JC.FChart",
12441259
"namespace": "JC"
12451260
},
12461261
{
12471262
"file": "../modules/JC.FChart/0.1/FChart.js",
1248-
"line": 364,
1263+
"line": 391,
12491264
"description": "图表宽度",
12501265
"class": "JC.FChart",
12511266
"namespace": "JC"
12521267
},
12531268
{
12541269
"file": "../modules/JC.FChart/0.1/FChart.js",
1255-
"line": 375,
1270+
"line": 402,
12561271
"description": "设置或保存图表的宽高",
12571272
"class": "JC.FChart",
12581273
"namespace": "JC"
12591274
},
12601275
{
12611276
"file": "../modules/JC.FChart/0.1/FChart.js",
1262-
"line": 383,
1277+
"line": 410,
12631278
"description": "图表画布",
12641279
"class": "JC.FChart",
12651280
"namespace": "JC"
12661281
},
12671282
{
12681283
"file": "../modules/JC.FChart/0.1/FChart.js",
1269-
"line": 389,
1284+
"line": 416,
12701285
"description": "画布圆角弧度",
12711286
"class": "JC.FChart",
12721287
"namespace": "JC"
12731288
},
12741289
{
12751290
"file": "../modules/JC.FChart/0.1/FChart.js",
1276-
"line": 393,
1291+
"line": 420,
12771292
"description": "清除图表数据",
12781293
"class": "JC.FChart",
12791294
"namespace": "JC"
12801295
},
12811296
{
12821297
"file": "../modules/JC.FChart/0.1/FChart.js",
1283-
"line": 410,
1298+
"line": 437,
12841299
"description": "清除图表状态",
12851300
"class": "JC.FChart",
12861301
"namespace": "JC"
12871302
},
12881303
{
12891304
"file": "../modules/JC.FChart/0.1/FChart.js",
1290-
"line": 454,
1305+
"line": 518,
12911306
"description": "渲染图表外观",
12921307
"class": "JC.FChart",
12931308
"namespace": "JC"
12941309
},
12951310
{
12961311
"file": "../modules/JC.FChart/0.1/FChart.js",
1297-
"line": 494,
1312+
"line": 558,
12981313
"description": "图表高度",
12991314
"class": "JC.FChart",
13001315
"namespace": "JC"
13011316
},
13021317
{
13031318
"file": "../modules/JC.FChart/0.1/FChart.js",
1304-
"line": 498,
1319+
"line": 562,
13051320
"description": "图表高度",
13061321
"class": "JC.FChart",
13071322
"namespace": "JC"
13081323
},
13091324
{
13101325
"file": "../modules/JC.FChart/0.1/FChart.js",
1311-
"line": 502,
1326+
"line": 566,
13121327
"description": "图表画布",
13131328
"class": "JC.FChart",
13141329
"namespace": "JC"
13151330
},
13161331
{
13171332
"file": "../modules/JC.FChart/0.1/FChart.js",
1318-
"line": 506,
1333+
"line": 570,
13191334
"description": "初始化的选择器",
13201335
"class": "JC.FChart",
13211336
"namespace": "JC"
13221337
},
13231338
{
13241339
"file": "../modules/JC.FChart/0.1/FChart.js",
1325-
"line": 513,
1340+
"line": 577,
13261341
"description": "清除图表数据",
13271342
"class": "JC.FChart",
13281343
"namespace": "JC"
13291344
},
13301345
{
13311346
"file": "../modules/JC.FChart/0.1/FChart.js",
1332-
"line": 523,
1347+
"line": 587,
13331348
"description": "清除图表状态",
13341349
"class": "JC.FChart",
13351350
"namespace": "JC"
13361351
},
13371352
{
13381353
"file": "../modules/JC.FChart/0.1/FChart.js",
1339-
"line": 529,
1354+
"line": 593,
13401355
"description": "更新图表数据",
13411356
"class": "JC.FChart",
13421357
"namespace": "JC"
@@ -6064,75 +6079,75 @@
60646079
},
60656080
{
60666081
"message": "Missing item type\n解析图表默认数据",
6067-
"line": " ../modules/JC.FChart/0.1/FChart.js:309"
6082+
"line": " ../modules/JC.FChart/0.1/FChart.js:336"
60686083
},
60696084
{
60706085
"message": "Missing item type\n保存图表数据",
6071-
"line": " ../modules/JC.FChart/0.1/FChart.js:331"
6086+
"line": " ../modules/JC.FChart/0.1/FChart.js:358"
60726087
},
60736088
{
60746089
"message": "Missing item type\n图表宽度",
6075-
"line": " ../modules/JC.FChart/0.1/FChart.js:342"
6090+
"line": " ../modules/JC.FChart/0.1/FChart.js:369"
60766091
},
60776092
{
60786093
"message": "Missing item type\n图表高度",
6079-
"line": " ../modules/JC.FChart/0.1/FChart.js:353"
6094+
"line": " ../modules/JC.FChart/0.1/FChart.js:380"
60806095
},
60816096
{
60826097
"message": "Missing item type\n图表宽度",
6083-
"line": " ../modules/JC.FChart/0.1/FChart.js:364"
6098+
"line": " ../modules/JC.FChart/0.1/FChart.js:391"
60846099
},
60856100
{
60866101
"message": "Missing item type\n设置或保存图表的宽高",
6087-
"line": " ../modules/JC.FChart/0.1/FChart.js:375"
6102+
"line": " ../modules/JC.FChart/0.1/FChart.js:402"
60886103
},
60896104
{
60906105
"message": "Missing item type\n图表画布",
6091-
"line": " ../modules/JC.FChart/0.1/FChart.js:383"
6106+
"line": " ../modules/JC.FChart/0.1/FChart.js:410"
60926107
},
60936108
{
60946109
"message": "Missing item type\n画布圆角弧度",
6095-
"line": " ../modules/JC.FChart/0.1/FChart.js:389"
6110+
"line": " ../modules/JC.FChart/0.1/FChart.js:416"
60966111
},
60976112
{
60986113
"message": "Missing item type\n清除图表数据",
6099-
"line": " ../modules/JC.FChart/0.1/FChart.js:393"
6114+
"line": " ../modules/JC.FChart/0.1/FChart.js:420"
61006115
},
61016116
{
61026117
"message": "Missing item type\n清除图表状态",
6103-
"line": " ../modules/JC.FChart/0.1/FChart.js:410"
6118+
"line": " ../modules/JC.FChart/0.1/FChart.js:437"
61046119
},
61056120
{
61066121
"message": "Missing item type\n渲染图表外观",
6107-
"line": " ../modules/JC.FChart/0.1/FChart.js:454"
6122+
"line": " ../modules/JC.FChart/0.1/FChart.js:518"
61086123
},
61096124
{
61106125
"message": "Missing item type\n图表高度",
6111-
"line": " ../modules/JC.FChart/0.1/FChart.js:494"
6126+
"line": " ../modules/JC.FChart/0.1/FChart.js:558"
61126127
},
61136128
{
61146129
"message": "Missing item type\n图表高度",
6115-
"line": " ../modules/JC.FChart/0.1/FChart.js:498"
6130+
"line": " ../modules/JC.FChart/0.1/FChart.js:562"
61166131
},
61176132
{
61186133
"message": "Missing item type\n图表画布",
6119-
"line": " ../modules/JC.FChart/0.1/FChart.js:502"
6134+
"line": " ../modules/JC.FChart/0.1/FChart.js:566"
61206135
},
61216136
{
61226137
"message": "Missing item type\n初始化的选择器",
6123-
"line": " ../modules/JC.FChart/0.1/FChart.js:506"
6138+
"line": " ../modules/JC.FChart/0.1/FChart.js:570"
61246139
},
61256140
{
61266141
"message": "Missing item type\n清除图表数据",
6127-
"line": " ../modules/JC.FChart/0.1/FChart.js:513"
6142+
"line": " ../modules/JC.FChart/0.1/FChart.js:577"
61286143
},
61296144
{
61306145
"message": "Missing item type\n清除图表状态",
6131-
"line": " ../modules/JC.FChart/0.1/FChart.js:523"
6146+
"line": " ../modules/JC.FChart/0.1/FChart.js:587"
61326147
},
61336148
{
61346149
"message": "Missing item type\n更新图表数据",
6135-
"line": " ../modules/JC.FChart/0.1/FChart.js:529"
6150+
"line": " ../modules/JC.FChart/0.1/FChart.js:593"
61366151
},
61376152
{
61386153
"message": "Missing item type\n如果 console 不可用, 则生成一个模拟的 console 对象",

0 commit comments

Comments
 (0)