简体   繁体   English

为SharePoint 2010 Webpart创建图表

[英]Create a chart for SharePoint 2010 Webpart

I've created a connection from my webpart to an Oracle database, that contains dates and numbers. 我已经创建了从Webpart到Oracle数据库的连接,该连接包含日期和数字。

I want to display this data in a chart. 我想在图表中显示此数据。

I've looked on the internet for any examples, but I'm stumped. 我在互联网上看过任何示例,但感到很困惑。

Can anyone point me to some simple instructions that detail how to create a chart in c sharp that will work on a webpart, please?? 谁能指出一些简单的说明,详细说明如何在c Sharp中创建可在Webpart上使用的图表?

Cheers 干杯

basically the Webpart end in normal html,css and JavaScript. 基本上,Webpart以普通的html,css和JavaScript结尾。 So you could use any js library to create the Chart. 因此,您可以使用任何js库来创建图表。 (For example: Chart.js (例如: Chart.js

You can override the RenderWebPart() Method, to generate custom HTML. 您可以重写RenderWebPart()方法,以生成自定义HTML。 This way you can create the element and a custom element that contains var data = {} that can be plottet with charts.js 这样,您可以创建元素和包含var data = {}的自定义元素,可以使用Charts.js进行绘图

Regards 问候

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM