设为首页 收藏本站
查看: 579|回复: 0

[经验分享] SharePoint 2010 Chart Web part 第三方组件 很好用 支持count sum 等

[复制链接]

尚未签到

发表于 2015-9-28 07:54:30 | 显示全部楼层 |阅读模式
  I’m in the process of writing a Charting WebPart for SharePoint 2010, specifically aimed at the standard version, which does not come with such a feature. Of course, it’s still usable within an enterprise environment if you were to find it useful.

DSC0000.png Chart WebParts
  To download the solution and installation script, follow this link.
The zip contains a solution (wsp) file and a PowerShell script for installation. Before running the script, edit it and change the SolutionFolder variable (line 6) to the location of the extracted wsp file.

DSC0001.png Install Script
  Once installed, enable the Site Collection Feature SharePoint Stu Chart WebPart.

DSC0002.png Feature
  Then add the SharePoint Stu Chart WebPart WebPart (within the Custom category) to your page.

DSC0003.png Add WebPart
  The WebPart works by processing values within the list it’s configured against and displaying either the sum, total or actual item values in a graph. The graphical component of the WebPart utilises the Visifire Silverlight control.
  To configure the WebPart, start by bringing up the WebPart editor pane. At the top of the pane you’ll notice a section titled Select Chart Source, this is where you configure the source for the chart, as hinted at by the section title DSC0004.gif

DSC0005.png Edit Chart Source
  The first drop down is for selecting the source list.
  Next, we have a list of views to use for reading the data.
  The third drop down list contains a list of available and valid fields for the chart axis; i.e the primary x axis, the content of which will be displayed as the label in the chart.
  The last section within this configuration group is where you can specify how the columns are calculated. Leaving the checkbox unchecked allows you to select a value field from the last drop down list to use to when displaying the chart columns. For example, if the source list has three items with a field called total, the value of this field would be used for the rendered columns.
  Ticking the checkbox, changes the configuration options slightly.

DSC0006.png Calculation Configuration
  Now, instead of selecting a column to read the value of, you are required to select one of two options – count or sum. If you select count, the number of distinct fields for the primary x axis are used for the value. If, on the other hand, you select sum, you will need to select a value field to use when calculating the sum total for each column in the chart.

DSC0007.png Configure for sum
  That pretty much covers the source configuration. The final part of the configuration is for how the chart is displayed. This configuration is contained with the section titledOptions.

DSC0008.png Options Section
  Within this section you can configure the following:


    • Type of chart – area, column, line, pie or stacked bar
    • Label for the y axis
    • Label for the x axis
    • Height of the chart, in pixels. Minimum is 100, anything below will be ignored
    • Width of the chart, also in pixels. Minimum is 200
    • If the chart should be rendered in 3D
    • If the chart should be animated
    • If a grid should be shown behind the chart columns
    • The colour of the columns – aqua, blue, gray, green, orange, red or violet
    • The cache timeout in minutes for the chart, specifying 0 disables caching


运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-119664-1-1.html 上篇帖子: 关于SharePoint 2016 下篇帖子: SharePoint 2007:被删除的用户,他的User Profile仍然会被搜索到
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表