本文介绍了RadHTMLChart将同一系列绘制在一起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



由于我正在加强我的工作报告,我正在进入telerik以获得更好的演示和表现。



我正在尝试绘制ColumnSeries图表,示例数据如下:



Week Outlet1 Outlet2

1 $ 1.00 $ 3.00

2 $ 5.00 $ 9.99

3 $ 9.99 $ 10.00

4 $ 6.90 $ 12.00





我创建的每个奥特莱斯按照New ColumnSeries在顶部提到,以便在绘制图表时轻松识别。代码如下:



 对于 intCounter  As  整数 =  1   dtDest.Columns.Count  -   2  步骤  1  
Dim NewSeries As ColumnSeries
NewSeries.DataFieldY = dtDest.Columns(intCounter).ToString
NewSeries.Name = dtDest.Columns(intCounter).ToString
NewSeries.TooltipsAppearance.Color( )= System.Drawing.Color.White
NewSeries.LabelsAppearance.Visible = False
' NewSeries.StackType = HtmlChart.Enums.HtmlChartStackType.N ormal

chrtAllStores.PlotArea.Series.Add(NewSeries)
Next





但是数据表示并不是我理想的结果,因为它将图表分组显示为几周,我希望它们按插座显示分组,所以我可以比较几个星期内每个商店的销售额,它现在聚集了几周而不是商店。



建议将不胜感激!谢谢!

解决方案




Hi all,

As I am in the midst of enhancing my report for my work, I am moving into telerik for better presentation and performance.

I am trying to plot a ColumnSeries chart, and sample data is as below:

Week Outlet1 Outlet2
1 $1.00 $3.00
2 $5.00 $9.99
3 $9.99 $10.00
4 $6.90 $12.00


I am creating each of the "Outlets" as per mention on top as a "New ColumnSeries" in order to be identified easily when plotting the chart. Code is as below:

For intCounter As Integer = 1 To dtDest.Columns.Count - 2 Step 1
            Dim NewSeries As New ColumnSeries
            NewSeries.DataFieldY = dtDest.Columns(intCounter).ToString
            NewSeries.Name = dtDest.Columns(intCounter).ToString
            NewSeries.TooltipsAppearance.Color() = System.Drawing.Color.White
            NewSeries.LabelsAppearance.Visible = False
            'NewSeries.StackType = HtmlChart.Enums.HtmlChartStackType.Normal

            chrtAllStores.PlotArea.Series.Add(NewSeries)
        Next



But the data representation is not as my ideal end, as it plots the chart grouping by the weeks instead, I would like them to be displayed grouping by outlet, so i can compare sales for each outlet in weeks, it's now clustered by weeks and not outlet.

Advice would be greatly appreciated! Thank you!

解决方案




这篇关于RadHTMLChart将同一系列绘制在一起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-04 20:42