open-flash-chart 折线图代码,最好可以运行的,或者有说明的,
OpenFlashChart.OpenFlashChart chart = new OpenFlashChart.OpenFlashChart();
chart.Title = new OpenFlashChart.Title("");//图表title
chart.Bgcolor = "#F0EFEB";//图表背景
chart.X_Axis.Colour = "#484A49";//X轴颜色
chart.Y_Axis.Colour = "#484A49";//Y轴颜色
chart.X_Axis.GridColour = "#D5D4D0";//X轴图格颜色
chart.Y_Axis.GridColour = "#D5D4D0";//Y轴图格颜色
chart.X_Axis.Offset = true;//设置X轴第一个坐标点与Y轴间距
chart.X_Axis.Labels.Rotate = "10";//X轴标签倾斜度 OpenFlashChart.LineHollow line1 = new OpenFlashChart.LineHollow();
IList<object> aa = new List<object>();
aa.Add("你好");
aa.Add("好吗");
aa.Add("好好");
aa.Add("好的");
line1.Values.Add(5);
line1.Values.Add(23);
line1.Values.Add(38);
line1.Values.Add(51);
line1.HaloSize = 5;
line1.Width = 3;
line1.DotSize = 5;
line1.FontSize = 12;
line1.Colour = "#456f3";
chart.X_Axis.Labels.AxisLabelValues = aa;
chart.X_Axis.Offset = true;
chart.AddElement(line1); //if (maxValue > 0)
chart.Y_Axis.SetRange(0, 60, 10);
chart.Tooltip = new OpenFlashChart.ToolTip("my tip #val#"); Response.Clear();
Response.CacheControl = "no-cache";
Response.Write(chart.ToPrettyString());
Response.End();
这个是我弄的,但是X抽中文不知道如何显示
OpenFlashChart.OpenFlashChart chart = new OpenFlashChart.OpenFlashChart();
chart.Title = new OpenFlashChart.Title("");//图表title
chart.Bgcolor = "#F0EFEB";//图表背景
chart.X_Axis.Colour = "#484A49";//X轴颜色
chart.Y_Axis.Colour = "#484A49";//Y轴颜色
chart.X_Axis.GridColour = "#D5D4D0";//X轴图格颜色
chart.Y_Axis.GridColour = "#D5D4D0";//Y轴图格颜色
chart.X_Axis.Offset = true;//设置X轴第一个坐标点与Y轴间距
chart.X_Axis.Labels.Rotate = "10";//X轴标签倾斜度 OpenFlashChart.LineHollow line1 = new OpenFlashChart.LineHollow();
IList<object> aa = new List<object>();
aa.Add("你好");
aa.Add("好吗");
aa.Add("好好");
aa.Add("好的");
line1.Values.Add(5);
line1.Values.Add(23);
line1.Values.Add(38);
line1.Values.Add(51);
line1.HaloSize = 5;
line1.Width = 3;
line1.DotSize = 5;
line1.FontSize = 12;
line1.Colour = "#456f3";
chart.X_Axis.Labels.AxisLabelValues = aa;
chart.X_Axis.Offset = true;
chart.AddElement(line1); //if (maxValue > 0)
chart.Y_Axis.SetRange(0, 60, 10);
chart.Tooltip = new OpenFlashChart.ToolTip("my tip #val#"); Response.Clear();
Response.CacheControl = "no-cache";
Response.Write(chart.ToPrettyString());
Response.End();
这个是我弄的,但是X抽中文不知道如何显示
是这里加中文就不行,加英文就可以显示