回答編集履歴
1
見直しキャンペーン中
test
CHANGED
@@ -1,93 +1,47 @@
|
|
1
1
|
例えばこちらなどはどうでしょうか。
|
2
|
-
|
3
2
|
[Live Charts](https://lvcharts.net/App/examples/v1/wf/GeoHeatMap)
|
4
3
|
|
5
|
-
|
6
|
-
|
7
|
-
```
|
4
|
+
```cs
|
8
|
-
|
9
5
|
using System.Collections.Generic;
|
10
|
-
|
11
6
|
//using System.Drawing;
|
12
|
-
|
13
7
|
using System.Windows.Forms;
|
14
|
-
|
15
8
|
using System.Windows.Media;
|
16
|
-
|
17
9
|
using LiveCharts.WinForms;
|
18
10
|
|
19
|
-
|
20
|
-
|
21
11
|
namespace questions290449
|
22
|
-
|
23
12
|
{
|
24
|
-
|
25
13
|
public partial class Form1 : Form
|
26
|
-
|
27
14
|
{
|
28
|
-
|
29
15
|
public Form1()
|
30
|
-
|
31
16
|
{
|
32
|
-
|
33
17
|
InitializeComponent();
|
34
18
|
|
35
|
-
|
36
|
-
|
37
19
|
var geoMap = new GeoMap
|
38
|
-
|
39
20
|
{
|
40
|
-
|
41
21
|
Dock = DockStyle.Fill,
|
42
|
-
|
43
|
-
|
44
22
|
|
45
23
|
Source = @"Japan.xml",
|
46
24
|
|
47
|
-
|
48
|
-
|
49
25
|
HeatMap = new Dictionary<string, double>
|
50
|
-
|
51
26
|
{
|
52
|
-
|
53
27
|
["1602"] = 100, //Tokyo
|
54
|
-
|
55
28
|
["866"] = 50, //Hokkaido
|
56
|
-
|
57
29
|
["3302"] = 0 //Okinawa
|
58
|
-
|
59
30
|
},
|
60
31
|
|
61
|
-
|
62
|
-
|
63
32
|
GradientStopCollection = new GradientStopCollection
|
64
|
-
|
65
33
|
{
|
66
|
-
|
67
34
|
new GradientStop(Colors.Red, 0),
|
68
|
-
|
69
35
|
new GradientStop(Colors.Green, 0.5),
|
70
|
-
|
71
36
|
new GradientStop(Colors.Blue, 1),
|
72
|
-
|
73
37
|
},
|
74
|
-
|
75
38
|
};
|
76
39
|
|
77
|
-
|
78
|
-
|
79
40
|
Controls.Add(geoMap);
|
80
|
-
|
81
41
|
}
|
82
|
-
|
83
42
|
}
|
84
|
-
|
85
43
|
}
|
86
|
-
|
87
44
|
```
|
88
|
-
|
89
45
|
![イメージ説明](c17d28b0edf152477fb7c8f7d7b706ab.png)
|
90
46
|
|
91
|
-
|
92
|
-
|
93
47
|
沖縄の位置が気に入らない等あるでしょうが、`Japan.xml`をいじればずらすことは可能だと思います(未確認)
|