是否可以在数据列表中显示多个图表 [英] is it possible display multiple charts in datalist

查看:73
本文介绍了是否可以在数据列表中显示多个图表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
table_project_archive

hi all
table_project_archive

=================================
project_done | year     | month
================================
  11         |   2010   | 1
  12         |   2010   | 2
  14         |   2010   | 3
  11         |   2011   | 1
  12         |   2011   | 2
  14         |   2011   | 3
  11         |   2012   | 1
  12         |   2012   | 2
  14         |   2012   | 3
===============================


在上表中,我们一年中一个月内完成的项目总数
我们想显示每年的图表,其中x轴为月份数,y轴为项目总数
我知道这很容易显示特定年份的单个图表
但不知道如何显示多个图表
我们怎样才能完成这项任务
是通过循环还是数据列表来完成
一个例子将受到更多的赞赏
谢谢

[edit]已添加代码块-OriginalGriff [/edit]


in above table we have total number of projects done in a month of a year
we want to show charts of each year having month number on x axis and total number of projects on y axis
i know that is very easy to display single chart of a particular year
but do not know how to display multiple charts
how can we achieve this task
will this be done by looping or datalist
an example will be more appreciated
thanks

[edit]Code block added - OriginalGriff[/edit]

推荐答案

动态添加模板字段.
在添加检查月份列时.
使用按月计数的循环来添加图表控件.
用于索引到Chart的ID属性.
Add template field dynamicaly.
While adding check for month column.
Use for loop as per month count to add chart control.
Use for index to ID property of Chart.


这篇关于是否可以在数据列表中显示多个图表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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