如何在Vb 10中显示Access数据库中的图表? [英] How Do I Show Chart From Access Database In Vb 10 ?

查看:125
本文介绍了如何在Vb 10中显示Access数据库中的图表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

NIK | Tanggal | Nama | Jabatan |部门| Mulai | Sampai | SM | Selisih | Waktu |

2222 | 6/10/2015 |阿克巴| EEE |便便|上午9:59 | 10:59 AM | 60mnt | 0 mnt | 480mnt |

123 | 6/10/2015 | ahaha | wakwak | ssp | 8:04 AM | 11:04AM | 180mnt | 120mnt | 60mnt |

5555 | 6/10/2015 | hhhh | oooo | LLLL | 11:04AM | 3:04 PM | 240mnt | 180mnt | 300mnt |



这是我的访问数据,我想在vb中制作一个图表10,显示频率部门在5天内出现的频率,我该怎么办?请帮帮我

NIK |Tanggal |Nama |Jabatan| Dept |Mulai | Sampai | SM |Selisih | Waktu |
2222|6/10/2015| akbar | eee | poo | 9:59AM|10:59AM |60mnt |0 mnt | 480mnt|
123 |6/10/2015| ahaha |wakwak | ssp |8:04 AM|11:04AM |180mnt |120mnt | 60mnt |
5555|6/10/2015| hhhh |oooo |LLLL |11:04AM|3:04 PM |240mnt |180mnt |300mnt |

that's my access data, i want to make a chart in vb 10, that showing frequency how often "Dept" appear in 5 days, what should i do ?? help me please

推荐答案

我建​​议如下:



1.创建一个类(myClass),表示条目:

标识符为字符串

CountOfAppearance为整数

2.创建一个列表(myClass)'表示来自的自定义类top 1

3.扫描所有条目的源数据

每个条目比较,如果它仍然存在于你的列表中。

- 如果是,则增加计数

- 如果否,则创建一个带有标识符名称和计数= 1

3a的新条目。你可以在自定义系列中结合前三名的功能,为你完成所需的功能。

4.在此之后你有信息填写你的图表。

- 我希望,你知道如何处理图表...



你可以自己解决顶级的1..3还是需要进一步的信息?

前三部分对你有意思吗?
I suggest the following :

1. Create a class (myClass), which represents the Entry :
Identifier as string
CountOfAppearance as integer
2. Create a List (of myClass) ' means the custom class from top 1
3. scan your source-data for all entries
by each entry compare, if it is still existing in your List.
- if Yes then increase the Count
- if No then create a new Entry with the Identifier-Name and the Count = 1
3a. you could combine the the function of top 3 in a customized collection, which does the needed function for you.
4. after this you have the Information to fill your Chart.
- I hope, you know how to handle a Chart ...

Could you solve the top's 1..3 by yourself or do you need further Information ?
Is top 3a interesting for you ?


这篇关于如何在Vb 10中显示Access数据库中的图表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆