Microsoft .net图表

编程入门 行业动态 更新时间:2024-10-20 16:00:09
本文介绍了Microsoft 图表 - 图表XML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个集中的应用程序,它接受图表xml,然后创建图表,或者创建一个图像文件或将图表作为二进制返回。我们正在从dundas图表转换到microsoft 图表,我们需要知道我们需要创建的xml之间的差异,因为它已经改变了一点。我希望我能找到当前结构示例的xml文件:图表节点将具有可用的所有可用属性,如ChartType =" [Pie,Bar,Line等...]此方式我们会知道使用了什么结构以及可以使用哪些属性

I have a centralized application that takes chart xml then creates the chart and either makes an image file or returns the chart back as binary. We are converting from dundas chartsto microsoft charts and we need to know the differences between the xml that we need to create becuase it has changed a little. I was hoping that i could find an xml file of the current structure example: Chart nodes would have all available attributes that could be used like ChartType="[Pie, Bar, Line, etc...]"this way we would know whatstructure is used and whatattributesare availableto beused.

有没有人知道任何此类文件???

Does anyone know of any such file???

谢谢

推荐答案

嗨翻转

获取MS图表控制,您可以使用Serializer属性的Save方法创建一个xml文件。如果您需要,可以在带有按钮和图表控件的应用程序中尝试此操作。只需将文件名更改为计算机上的某个位置

for the MS Chart control, you can create an xml file using the Save method of the Serializer property. If you want you can try this in an app with a button and a chart control. Just change the filename to somewhere on your computer

Dim rndm As New Random Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim cs As New Series cs.Name = "Series2" cs.ChartType = SeriesChartType.Line cs.IsValueShownAsLabel = True cs.IsVisibleInLegend = False Chart1.Series.Add(cs) Chart1.ChartAreas(0).AxisY.Maximum = 25 For i As Integer = 1 To 10 Chart1.Series(0).Points.AddY(rndm.Next(1, 21)) Chart1.Series(1).Points.AddY(rndm.Next(1, 21)) Next End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Chart1.Serializer.Save("C:\Users\Joe\Desktop\ChartImages\ChartSerialize.xml") End Sub

更多推荐

Microsoft .net图表

本文发布于:2023-11-22 14:59:10,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1617888.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:图表   Microsoft   net

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!