English 中文(简体)
在ZedGraph的最高权利上调图象
原标题:Aligning Legend at the top right on ZedGraph
  • 时间:2011-10-11 03:08:59
  •  标签:
  • zedgraph

在ZedGraph的最高右边打图。

 myPane.Legend.Position = ZedGraph.LegendPos.TopCenter; // This way working.

我试图这样做,没有工作。

 //myPane.Legend.Location.AlignH = AlignH.Right;
//myPane.Legend.Location.AlignV = AlignV.Top;
//Location(0.95, 0.15,);// CoordType.PaneFraction, AlignH.Right, AlignV.Top);
//AlignV.Top; //(0.95, 0.15, CoordType.PaneFraction, AlignH.Right, AlignV.Top);

Any suggestions. Thanks ocaccy

问题回答

两种方式是:

myPane.Legend.Position = ZedGraph.LegendPos.Right;

或如果你想在图表中写明:

myPane.Legend.Position = ZedGraph.LegendPos.InsideTopRight;




相关问题
Removing Specific LineItems One By One

I have a program that adds LineItems to a ZedGraph pane whenever data parameters are set and a submit button is pressed. LineItem myCurve = Pane.AddCurve(Title, Data, Color.FromArgb(Random.Next(0, ...

ZedGraph in C #: no point shown

i am trying ZedGraph in windows form. i imported the dll and it shows in UI designer successfully. when i compile and run the program. it pops up the zedgrah grilled view, but no points on it. could ...

Zedgraph textobj X location depends on text length?

I have a Zedgraph textobj which I want to place always in the same x, y position (ASP.NET image). I noticed that the text doesn t always show in the same starting x position. It shifts depending on ...

Lock axis in ZedGraph

I ve used ZedGraph to plot data from several sources with a single click. I need the Y-axes to always have the same max and min-values for each plot. I need this to be able to see changes between ...

Zedgraph - determine length of tic on an axis?

In Zedgraph building a line chart. I have some requirements for axes labels which can t be produced automatically so inspired by this other Stackoverflow answer I m building a custom axis. I can ...

缩略语

根据我在Zedgraph I方面的经验,不能确定X和Y轴等级,以便有正确的目录! 我们的面积为10x10米,每个牢房的面积为平方米......

Draw a Graph in C# using zedGraph

I need to create a graph that have the following properties: The X Axis is for schools names. The Y Axis is for classes names. In Point (x,y) I need to put a dot that it s color will represent the ...

热门标签