我们如何创建带有工具提示的饼图,请告诉我 [英] how can we create pie chart with tooltips plz tell me

查看:52
本文介绍了我们如何创建带有工具提示的饼图,请告诉我的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何使用tooltips.mean创建饼状图.means饼状图包含details.plz告诉我

how can we create pie chart with tooltips.means pie chart with the details.plz tell me

推荐答案

看看ASP中可用的各种图表选项.列在此处 [ [
Have a look at various charting options available in ASP.Net as listed here[^].
A built in set of controls is available as well[^].


你好...

使用Microsoft的MSChart.exe可以轻松在Asp.net中进行图表制作.

您可以在此MSChart.exe中找到各种图表

单击此处下载MSChart.exe

易于使用.

对于饼图
Hello...

Charting in Asp.net is easy with MSChart.exe by microsoft.

You can find various charts in this MSChart.exe

Click Here to download the MSChart.exe

It''s easy to use.

For Pie chart
Chart1.ChartAreas.Add("PieChartArea");
        Chart1.ChartAreas["PieChartArea"].Area3DStyle.Enable3D = true;

        Chart1.Series.Add("VotesSeries");
        Chart1.Series["VotesSeries"].ChartType = SeriesChartType.Pie;
        Chart1.Series["VotesSeries"]["PieLabelInside"] = "Inside";
        string[] xValue = new string[dt.Rows.Count];
        Int32[] yValue = new Int32[dt.Rows.Count];
        for (int i = 0; i < dt.Rows.Count; i++)
        {
            //Chart1.Series["VotesSeries"].Points.DataBindXY(dt.Rows[i][0].ToString(),dt.Rows[i][1].ToString());
            xValue[i] = dt.Rows[i][0].ToString();
            yValue[i] = Convert.ToInt32(dt.Rows[i][1].ToString());
        }
        Chart1.Series["VotesSeries"].Points.DataBindXY(xValue, yValue);
        Chart1.Series["VotesSeries"].IsVisibleInLegend = true;



谢谢



Thanks


这篇关于我们如何创建带有工具提示的饼图,请告诉我的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆