質問編集履歴

3

タグを修正した。

2016/08/26 10:31

投稿

sheephuman
sheephuman

スコア112

test CHANGED
File without changes
test CHANGED
@@ -76,7 +76,7 @@
76
76
 
77
77
  // Full path to the data source file
78
78
 
79
- string path = current +"\\";
79
+ string path = current +"\";
80
80
 
81
81
 
82
82
 
@@ -100,7 +100,7 @@
100
100
 
101
101
  // Create a database command on the connection using query
102
102
 
103
- string mySelectQuery = "Select * from"+ "\\sample.csv" ;
103
+ string mySelectQuery = "Select * from"+ "\sample.csv" ;
104
104
 
105
105
  OleDbCommand myCommand = new OleDbCommand(mySelectQuery, myConnection);
106
106
 

2

コードブロックで囲んだ。

2016/08/26 10:31

投稿

sheephuman
sheephuman

スコア112

test CHANGED
File without changes
test CHANGED
@@ -22,6 +22,8 @@
22
22
 
23
23
  ###該当のソースコード
24
24
 
25
+ ```ここに言語を入力
26
+
25
27
  using System;
26
28
 
27
29
  using System.Windows.Forms;
@@ -42,6 +44,8 @@
42
44
 
43
45
 
44
46
 
47
+
48
+
45
49
  private void graph_chart_display()
46
50
 
47
51
  {
@@ -156,7 +160,7 @@
156
160
 
157
161
  }
158
162
 
159
-
163
+ ```
160
164
 
161
165
 
162
166
 

1

サンプル同梱のcsv内容を追記。 解決したい事柄を具体的に書いた。

2016/08/26 10:25

投稿

sheephuman
sheephuman

スコア112

test CHANGED
File without changes
test CHANGED
@@ -174,6 +174,40 @@
174
174
 
175
175
 
176
176
 
177
+ ここで、電気代、水道代といった個別の集計を出したい。
178
+
179
+ ・水道代は水色の棒グラフ
180
+
181
+ ・雑費はオレンジ色 といった感じです。
182
+
183
+
184
+
185
+
186
+
187
+ 単純なサンプルのcsvを同梱してますが
188
+
189
+
190
+
191
+ 66,電気代,8月26日
192
+
193
+ 666,電気代,8月26日
194
+
195
+ 666,電気代,8月26日
196
+
197
+ 123,電気代,8月26日
198
+
199
+ 123,水道代,8月26日
200
+
201
+ 432,水道代,8月26日
202
+
203
+ 423,雑費,8月26日
204
+
205
+ 432,雑費,8月26日
206
+
207
+ としています。
208
+
209
+
210
+
177
211
 
178
212
 
179
213
  ###試したこと
@@ -183,3 +217,41 @@
183
217
  3年前から全く進まずに悩んでいます。
184
218
 
185
219
  とにかく的確な回答を望みます。
220
+
221
+
222
+
223
+
224
+
225
+ 試しに
226
+
227
+ 66,電気代
228
+
229
+ 666,電気代
230
+
231
+ 666,電気代
232
+
233
+ 123,電気代
234
+
235
+ 123,水道代
236
+
237
+ 432,水道代
238
+
239
+ 423,雑費
240
+
241
+ 432,雑費
242
+
243
+
244
+
245
+ としました。
246
+
247
+
248
+
249
+
250
+
251
+ 結果
252
+
253
+
254
+
255
+ ![イメージ説明](d8d5762e3e71e925da3fa6fcf1322ad8.jpeg)
256
+
257
+ ・・・置き換わっただけですね。