PHP Ionic Angular HTML5 AJAX Javascript CSS MySQL jQuery Forum


fusionchart ต้องการแสดงvalue2ค่าบนmapทำอย่างไร

ถาม-ตอบ แนะนำไอเดียว โค้ดตัวอย่าง แนวทาง วิธีแก้ปัญหา fusionchart ต้องการแสดงvalue2ค่าบนmapทำอย่างไร

fusionchart ต้องการแสดงvalue2ค่าบนmapทำอย่างไร
ผมต้องการแสดงค่า value 2 ค่าต่อจากชื่อจังหวัด เช่น ภูเก็ต,253.6,588.4 



index.php

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
 
<title>test maps</title>
</head>
<body>
 
<script type="text/javascript" src="js/fusioncharts.js"></script>
<script type="text/javascript" src="js/fusioncharts.charts.js"></script>
<script type="text/javascript" src="js/fusioncharts.gantt.js"></script>
<script type="text/javascript" src="js/fusioncharts.maps.js"></script>
<script type="text/javascript" src="js/fusioncharts.powercharts.js"></script>
<script type="text/javascript" src="js/fusioncharts.ssgrid.js"></script>
<script type="text/javascript" src="js/fusioncharts.treemap.js"></script>
<script type="text/javascript" src="js/fusioncharts.widgets.js"></script>
<script type="text/javascript" src="js/fusioncharts.zoomscatter.js"></script>
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript" src="js/themes/fusioncharts.theme.carbon.js"></script>
<script type="text/javascript" src="js/themes/fusioncharts.theme.fint.js"></script>
<script type="text/javascript" src="js/themes/fusioncharts.theme.ocean.js"></script>
<script type="text/javascript" src="js/themes/fusioncharts.theme.zune.js"></script>
<script type="text/javascript" src="js/maps/fusionchartthailand.js"></script>
<script type="text/javascript">
FusionCharts.ready(function () {
    var salesMap = new FusionCharts({
        type: 'thailand',
        renderAt: 'chart-container',
        width: '1000',
        height: '1000',
        dataFormat: 'json',
        dataSource: {
            "chart": {
                "caption":"Thailand",
                "theme":"fint",
                "showLabels":"1",
                "formatNumberScale": "0"
            },
 "data": [
             {
                    "id": "TH.PU",
                    "value": "253.6",
                    "showLabel" : "2",
                    "color" : "#4d4dff",
                    "displayValue" : "ภูเก็ต"
             },
            ]
        }
    }).render();
});
</script>
 
<div id="chart-container"></div>
</body>
</html>

fusionchartthailand.js

(function(b){"object"===typeof module&&"undefined"!==typeof module.exports?module.exports=b:b(FusionCharts)})(function(b){b(["private","modules.renderer.js-thailand",function(){var b=this,c=b.hcLib,d=c.chartAPI,h=c.moduleCmdQueue,c=c.injectModuleDependency,a=!!d.geo,f,g,e;f=[{name:"Thailand",revision:20,standaloneInit:!0,baseWidth:545,baseHeight:974,baseScaleFactor:10,entities:{"TH.PU":{outlines:[["M",682,8455,"Q",679,8454,676,8455,670,8455,664,8456,664,8456,664,8457,664,8458,664,8459,664,8466,663,
8474,"L",661,8474,"Q",657,8473,655,8475,655,8476,655,8477,655,8482,655,8486,656,8488,659,8488,661,8487,663,8486,664,8486,663,8485,662,8480,666,8480,675,8481,673,8472,671,8467,677,8468,682,8469,683,8465,683,8463,684,8461,"Q",687,8457,682,8455,"Z"],["M",705,8399,"Q",705,8398,705,8397,697,8396,689,8396,688,8396,687,8397,686,8400,686,8405,686,8406,686,8406,680,8407,674,8409,672,8410,672,8411,671,8413,672,8413,675,8418,685,8418,689,8417,694,8418,700,8419,699,8414,699,8412,699,8410,700,8407,703,8404,"Q",
706,8403,705,8399,"Z"],["M",781,8292,"Q",781,8292,780,8291,777,8290,776,8291,776,8292,774,8292,760,8291,762,8306,762,8310,763,8314,764,8315,765,8315,768,8315,772,8315,772,8309,773,8303,"L",773,8302,"Q",774,8302,775,8303,782,8304,782,8297,"Q",781,8295,781,8292,"Z"],["M",647,8071,"Q",647,8075,647,8078,646,8082,645,8087,645,8088,644,8088,641,8090,639,8091,638,8092,637,8092,636,8102,636,8112,636,8114,637,8116,639,8121,644,8124,644,8125,644,8126,645,8134,645,8143,645,8145,644,8145,639,8148,640,8154,640,
8162,637,8168,637,8169,636,8170,635,8171,634,8172,634,8173,633,8174,632,8175,630,8175,629,8176,629,8177,630,8183,627,8188,627,8189,627,8191,628,8197,634,8203,635,8205,635,8206,638,8218,637,8231,637,8235,638,8238,639,8243,644,8248,646,8250,646,8252,646,8271,646,8291,646,8292,647,8293,649,8298,657,8297,676,8295,685,8307,686,8308,687,8308,691,8310,695,8309,698,8308,701,8306,703,8306,703,8305,704,8302,703,8298,702,8291,702,8283,702,8282,703,8281,704,8280,704,8279,705,8276,707,8275,708,8274,708,8273,710,
8271,712,8269,715,8265,715,8259,716,8258,716,8257,716,8251,716,8246,715,8235,720,8232,723,8230,725,8227,726,8226,726,8225,728,8222,731,8219,732,8219,732,8218,736,8215,741,8210,744,8208,747,8206,748,8205,748,8204,749,8194,749,8184,749,8178,751,8171,745,8171,741,8175,737,8179,732,8182,726,8185,719,8181,714,8178,717,8172,718,8171,719,8170,721,8169,721,8167,721,8161,721,8153,716,8153,716,8149,716,8144,716,8139,715,8131,720,8126,721,8125,721,8124,728,8120,730,8112,730,8109,734,8108,735,8108,736,8108,738,
8106,737,8102,735,8096,734,8088,734,8086,733,8084,733,8083,733,8082,733,8079,731,8079,729,8078,726,8077,719,8077,710,8076,710,8075,709,8073,706,8071,701,8071,692,8072,689,8067,688,8065,688,8061,687,8044,687,8027,684,8023,683,8020,683,8019,681,8019,681,8019,680,8019,674,8018,671,8014,667,8008,656,8009,648,8009,640,8008,643,8013,649,8016,650,8030,648,8044,648,8045,648,8046,"Q",647,8058,647,8071,"Z"]],
label:"ภูเก็ต",shortLabel:"PU",labelPosition:[40.9,820],labelAlignment:["right","middle"],labelConnectors:[["M",
409,8200,"L",700,8200]]},"TH.RN":{outlines:[["M",1034,6336,"Q",1028,6337,1024,6339,1023,6339,1022,6340,1022,6342,1019,6341,1015,6341,1013,6343,1013,6344,1012,6345,1011,6346,1011,6346,1009,6348,1008,6351,1005,6357,1002,6362,1001,6363,1E3,6364,996,6370,989,6374,988,6375,987,6376,984,6381,980,6384,970,6391,967,6404,967,6405,967,6406,967,6410,965,6415,958,6414,958,6419,957,6425,957,6431,956,6441,959,6445,962,6447,964,6449,965,6449,966,6450,969,6451,974,6451,975,6451,976,6451,980,6456,983,6462,983,6463,
983,6463,985,6467,985,6471,986,6476,981,6476,980,6476,980,6476,976,6481,977,6488,977,6490,978,6491,980,6493,981,6496,983,6499,987,6499,989,6499,989,6499,990,6511,990,6522,990,6523,989,6524,987,6529,981,6533,981,6534,980,6534,977,6534,977,6537,977,6540,976,6543,973,6551,969,6555,967,6558,965,6560,961,6562,959,6564,954,6567,954,6576,955,6584,951,6588,951,6589,950,6589,948,6600,950,6612,951,6622,945,6626,939,6630,940,6639,940,6644,938,6648,937,6651,935,6654,934,6655,933,6657,930,6662,928,6668,928,6670,
928,6672,927,6678,927,6684,927,6686,927,6688,924,6696,915,6701,914,6701,913,6702,912,6703,911,6704,908,6710,905,6717,903,6720,903,6724,902,6731,899,6737,897,6740,896,6744,896,6746,896,6746,895,6747,895,6747,893,6749,890,6751,887,6752,887,6753,888,6760,887,6767,886,6774,882,6779,881,6780,880,6780,873,6781,874,6787,874,6788,873,6789,872,6792,870,6795,870,6796,869,6796,865,6801,864,6807,864,6811,863,6817,862,6819,862,6821,860,6827,854,6832,853,6833,852,6834,851,6834,851,6835,846,6841,842,6844,841,6853,
838,6856,834,6860,832,6861,830,6863,828,6870,825,6877,828,6882,830,6886,827,6889,825,6891,822,6898,821,6903,821,6909,821,6918,816,6923,816,6925,815,6926,815,6927,814,6928,812,6930,809,6932,806,6933,803,6935,803,6936,802,6937,801,6949,803,6963,805,6966,807,6969,807,6983,807,6996,807,7002,807,7008,806,7015,797,7014,790,7014,781,7015,779,7016,779,7018,779,7035,779,7052,779,7054,779,7057,781,7062,786,7064,788,7064,788,7065,790,7072,787,7079,787,7081,787,7082,787,7084,785,7085,779,7088,772,7087,766,7087,
760,7089,759,7089,758,7089,758,7106,756,7122,756,7124,756,7126,755,7127,755,7128,754,7130,753,7130,749,7132,749,7138,750,7154,744,7164,740,7170,739,7178,739,7186,738,7194,737,7198,735,7198,734,7199,733,7200,732,7201,731,7201,730,7202,729,7203,729,7205,728,7205,728,7207,728,7208,728,7214,726,7219,726,7220,725,7221,722,7230,716,7233,716,7234,715,7234,715,7241,714,7248,714,7253,714,7258,714,7260,713,7260,"L",713,7261,"Q",724,7261,735,7261,737,7261,737,7261,745,7269,754,7277,755,7278,755,7278,756,7281,
756,7284,755,7289,757,7291,765,7300,781,7298,783,7298,785,7299,786,7299,788,7300,793,7295,792,7287,792,7275,797,7269,798,7268,799,7268,805,7268,811,7269,814,7269,815,7266,815,7265,816,7265,819,7265,818,7262,822,7259,829,7259,832,7259,835,7260,835,7270,845,7269,853,7268,860,7268,873,7268,885,7268,888,7268,889,7264,889,7256,888,7248,885,7246,881,7246,879,7245,879,7243,880,7243,879,7242,879,7234,879,7227,879,7222,880,7217,880,7217,881,7217,891,7217,900,7216,"L",901,7214,"Q",901,7211,899,7210,898,7210,
897,7209,897,7208,895,7208,895,7208,894,7207,891,7205,886,7205,886,7205,885,7204,882,7199,885,7193,885,7192,885,7191,885,7187,891,7189,896,7190,904,7190,906,7189,909,7189,911,7189,913,7186,915,7181,918,7176,919,7174,921,7173,928,7169,933,7165,934,7164,935,7163,936,7162,936,7159,935,7156,937,7156,938,7156,938,7154,939,7152,943,7152,948,7152,949,7149,952,7141,951,7131,951,7130,950,7129,946,7123,940,7121,938,7120,938,7116,939,7107,939,7099,931,7098,928,7095,928,7094,927,7094,926,7093,925,7092,920,7088,
915,7083,915,7083,914,7082,912,7080,908,7079,902,7076,898,7072,894,7067,889,7066,886,7066,884,7066,875,7067,876,7058,876,7051,876,7044,876,7038,876,7031,875,7028,873,7028,872,7028,871,7027,869,7025,866,7023,865,7005,866,6988,866,6988,866,6987,865,6982,869,6981,870,6980,871,6980,873,6979,875,6979,882,6979,884,6972,885,6971,886,6969,898,6961,906,6952,907,6951,907,6950,910,6948,912,6946,914,6944,916,6942,922,6937,924,6931,925,6927,926,6923,928,6916,932,6911,934,6910,936,6906,937,6905,938,6904,948,6895,
953,6883,954,6881,956,6878,958,6876,964,6876,975,6877,985,6877,989,6876,992,6872,993,6871,993,6870,994,6870,994,6868,995,6868,995,6867,1001,6863,1004,6855,1004,6854,1005,6853,1007,6851,1008,6848,1010,6842,1019,6844,1024,6844,1026,6842,1027,6842,1028,6841,1032,6840,1036,6836,1039,6834,1039,6828,1040,6828,1040,6827,1040,6818,1040,6808,1040,6806,1039,6804,1039,6803,1038,6803,1036,6801,1032,6799,1032,6798,1030,6798,1023,6798,1015,6798,1015,6798,1014,6797,1010,6793,1005,6789,1003,6787,1002,6786,1002,6786,
1001,6785,1E3,6785,1001,6783,1002,6779,1008,6774,1010,6773,1013,6773,1016,6772,1018,6772,1027,6770,1026,6758,1025,6754,1029,6752,1034,6751,1034,6747,1035,6746,1035,6746,1041,6739,1040,6731,1040,6730,1039,6729,1032,6725,1027,6719,1026,6718,1026,6717,1026,6709,1027,6702,1027,6697,1031,6696,1038,6696,1036,6686,"L",1036,6686,"Q",1036,6685,1038,6686,1043,6682,1045,6676,1046,6672,1044,6671,1041,6670,1041,6667,1040,6666,1039,6665,1039,6665,1038,6663,1036,6657,1040,6651,1041,6649,1042,6647,1043,6646,1044,
6644,1049,6640,1053,6635,1057,6630,1061,6628,1066,6626,1066,6622,1069,6616,1068,6609,1068,6604,1067,6598,1067,6598,1066,6597,1060,6594,1056,6589,1055,6588,1053,6588,1052,6588,1051,6587,1047,6586,1044,6585,1043,6584,1041,6584,1035,6582,1036,6573,1036,6569,1037,6564,1038,6556,1034,6551,1033,6550,1032,6549,1032,6548,1031,6546,1030,6546,1030,6544,1030,6538,1032,6532,1032,6527,1034,6525,1035,6524,1036,6524,1038,6523,1043,6523,1051,6518,1054,6509,1055,6509,1055,6508,1058,6505,1064,6505,1065,6505,1066,6505,
1072,6501,1072,6493,1071,6482,1072,6471,1073,6471,1074,6470,1079,6468,1081,6463,1081,6462,1082,6461,1083,6461,1083,6459,1083,6453,1082,6447,1082,6446,1081,6446,1078,6443,1077,6437,1077,6436,1076,6436,1073,6432,1068,6428,1066,6426,1065,6423,1062,6418,1060,6412,1058,6407,1054,6405,1050,6404,1045,6403,1044,6403,1043,6402,1041,6400,1038,6399,1038,6398,1038,6397,1037,6390,1039,6384,1040,6382,1043,6381,1044,6380,1045,6380,1053,6378,1051,6368,1051,6366,1049,6365,1049,6365,1048,6364,1046,6360,1043,6358,1034,
6352,1035,6337,"Z"]],


โดย:  สรรชัย แสนขุรัง IP: 118.174.30.xxx วันที่: 13-09-2018 เวลา: 11:17:17

คำแนะนำ และการใช้งาน

สมาชิก กรุณา ล็อกอินเข้าระบบ เพื่อตั้งคำถามใหม่ หรือ ตอบคำถาม สมาชิกใหม่ สมัครสมาชิกได้ที่ สมัครสมาชิก


  • ถาม-ตอบ กรุณา ล็อกอินเข้าระบบ


  • ( หรือ สามารถทำการ สมัครสมาชิก และล็อกอิน ด้วย ปุ่ม Log in with Facebook ด้านล่าง )