我有一个集中的应用程序,它接受图表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图表
发布评论