|
|
@@ -105,7 +105,7 @@ namespace OTSIncAReportApp.Control_ECharts
|
|
|
if (i < listName.Count)
|
|
|
{
|
|
|
//SolidBrush sbrush_Color = new SolidBrush(Color_list[i]);
|
|
|
- ternaryDiagram.ShapeList(1, new PointF(10, PositionJeight), 10, Color_list[i], g);
|
|
|
+ ternaryDiagram.ShapeList(0, new PointF(10, PositionJeight), 10, Color_list[i], g);
|
|
|
//g.DrawRectangle(mypen, 0, PositionJeight, 8, 8);
|
|
|
//g.FillRectangle(sbrush_Color, 1, PositionJeight + 1, 7, 7);
|
|
|
g.DrawString(listName[i].ToString() + str_unit, myFont2, sbrush, 22, PositionJeight - 2);
|
|
|
@@ -113,7 +113,7 @@ namespace OTSIncAReportApp.Control_ECharts
|
|
|
if (i + 1 < listName.Count)
|
|
|
{
|
|
|
//SolidBrush sbrush_Color = new SolidBrush(Color_list[i + 1]);
|
|
|
- ternaryDiagram.ShapeList(2, new PointF(104, PositionJeight), 10, Color_list[i+1], g);
|
|
|
+ ternaryDiagram.ShapeList(1, new PointF(104, PositionJeight), 10, Color_list[i+1], g);
|
|
|
//g.DrawRectangle(mypen, 94, PositionJeight, 8, 8);
|
|
|
//g.FillRectangle(sbrush_Color, 95, PositionJeight + 1, 7, 7);
|
|
|
g.DrawString(listName[i + 1].ToString() + str_unit, myFont2, sbrush, 116, PositionJeight - 2);
|
|
|
@@ -121,7 +121,7 @@ namespace OTSIncAReportApp.Control_ECharts
|
|
|
if (i + 2 < listName.Count)
|
|
|
{
|
|
|
//SolidBrush sbrush_Color = new SolidBrush(Color_list[i + 2]);
|
|
|
- ternaryDiagram.ShapeList(3, new PointF(194, PositionJeight), 10, Color_list[i + 2], g);
|
|
|
+ ternaryDiagram.ShapeList(2, new PointF(194, PositionJeight), 10, Color_list[i + 2], g);
|
|
|
//g.DrawRectangle(mypen, 188, PositionJeight, 8, 8);
|
|
|
//g.FillRectangle(sbrush_Color, 189, PositionJeight + 1, 7, 7);
|
|
|
g.DrawString(listName[i + 2].ToString() + str_unit, myFont2, sbrush, 206, PositionJeight - 2);
|
|
|
@@ -130,7 +130,7 @@ namespace OTSIncAReportApp.Control_ECharts
|
|
|
if (i + 3 < listName.Count)
|
|
|
{
|
|
|
//SolidBrush sbrush_Color = new SolidBrush(Color_list[i + 3]);
|
|
|
- ternaryDiagram.ShapeList(4, new PointF(292, PositionJeight), 10, Color_list[i + 3], g);
|
|
|
+ ternaryDiagram.ShapeList(3, new PointF(292, PositionJeight), 10, Color_list[i + 3], g);
|
|
|
//g.DrawRectangle(mypen, 282, PositionJeight, 8, 8);
|
|
|
//g.FillRectangle(sbrush_Color, 283, PositionJeight + 1, 7, 7);
|
|
|
g.DrawString(listName[i + 3].ToString() + str_unit, myFont2, sbrush, 304, PositionJeight - 2);
|
|
|
@@ -138,7 +138,7 @@ namespace OTSIncAReportApp.Control_ECharts
|
|
|
if (i + 4 < listName.Count)
|
|
|
{
|
|
|
//SolidBrush sbrush_Color = new SolidBrush(Color_list[i + 4]);
|
|
|
- ternaryDiagram.ShapeList(1, new PointF(386, PositionJeight), 10, Color_list[i + 4], g);
|
|
|
+ ternaryDiagram.ShapeList(0, new PointF(386, PositionJeight), 10, Color_list[i + 4], g);
|
|
|
//g.DrawRectangle(mypen, 376, PositionJeight, 8, 8);
|
|
|
//g.FillRectangle(sbrush_Color, 377, PositionJeight + 1, 7, 7);
|
|
|
g.DrawString(listName[i + 4].ToString() + str_unit, myFont2, sbrush, 398, PositionJeight - 2);
|
|
|
@@ -146,7 +146,7 @@ namespace OTSIncAReportApp.Control_ECharts
|
|
|
if (i + 5 < listName.Count)
|
|
|
{
|
|
|
//SolidBrush sbrush_Color = new SolidBrush(Color_list[i + 5]);
|
|
|
- ternaryDiagram.ShapeList(2, new PointF(480, PositionJeight), 10, Color_list[i + 5], g);
|
|
|
+ ternaryDiagram.ShapeList(1, new PointF(480, PositionJeight), 10, Color_list[i + 5], g);
|
|
|
//g.DrawRectangle(mypen, 470, PositionJeight, 8, 8);
|
|
|
//g.FillRectangle(sbrush_Color, 471, PositionJeight + 1, 7, 7);
|
|
|
g.DrawString(listName[i + 5].ToString() + str_unit, myFont2, sbrush, 492, PositionJeight - 2);
|
|
|
@@ -154,7 +154,7 @@ namespace OTSIncAReportApp.Control_ECharts
|
|
|
if (i + 6 < listName.Count)
|
|
|
{
|
|
|
//SolidBrush sbrush_Color = new SolidBrush(Color_list[i + 6]);
|
|
|
- ternaryDiagram.ShapeList(3, new PointF(574, PositionJeight), 10, Color_list[i + 6], g);
|
|
|
+ ternaryDiagram.ShapeList(2, new PointF(574, PositionJeight), 10, Color_list[i + 6], g);
|
|
|
//g.DrawRectangle(mypen, 564, PositionJeight, 8, 8);
|
|
|
//g.FillRectangle(sbrush_Color, 565, PositionJeight + 1, 7, 7);
|
|
|
g.DrawString(listName[i + 6].ToString() + str_unit, myFont2, sbrush, 586, PositionJeight - 2);
|
|
|
@@ -162,7 +162,7 @@ namespace OTSIncAReportApp.Control_ECharts
|
|
|
if (i + 7 < listName.Count)
|
|
|
{
|
|
|
//SolidBrush sbrush_Color = new SolidBrush(Color_list[i + 7]);
|
|
|
- ternaryDiagram.ShapeList(4, new PointF(668, PositionJeight), 10, Color_list[i + 7], g);
|
|
|
+ ternaryDiagram.ShapeList(3, new PointF(668, PositionJeight), 10, Color_list[i + 7], g);
|
|
|
//g.DrawRectangle(mypen, 658, PositionJeight, 8, 8);
|
|
|
//g.FillRectangle(sbrush_Color, 659, PositionJeight + 1, 7, 7);
|
|
|
g.DrawString(listName[i + 7].ToString() + str_unit, myFont2, sbrush, 680, PositionJeight - 2);
|
|
|
@@ -376,7 +376,7 @@ namespace OTSIncAReportApp.Control_ECharts
|
|
|
for (int i = 0; i < dt_point_sort.Rows.Count; i++)
|
|
|
{
|
|
|
int pos = Convert.ToInt32(dt_point_sort.Rows[i]["Color_position"]);
|
|
|
- if (pos > 4)
|
|
|
+ if (pos > 3)
|
|
|
{
|
|
|
order = pos % 4;
|
|
|
}
|
|
|
@@ -385,7 +385,7 @@ namespace OTSIncAReportApp.Control_ECharts
|
|
|
order = pos;
|
|
|
}
|
|
|
PointF pointF = new PointF(Convert.ToInt32(dt_point_sort.Rows[i]["X"])+10, 500 - Convert.ToInt32(dt_point_sort.Rows[i]["Y"]));
|
|
|
- ternaryDiagram.ShapeList(order, pointF, 10, Color_list[pos-1], g);
|
|
|
+ ternaryDiagram.ShapeList(order, pointF, 10, Color_list[Convert.ToInt32(dt_point_sort.Rows[i]["Color_position"])], g);
|
|
|
//SolidBrush mysbrush = new SolidBrush(Color_list[Convert.ToInt32(dt_point_sort.Rows[i]["Color_position"])]);
|
|
|
//g.FillRectangle(mysbrush, Convert.ToInt32(dt_point_sort.Rows[i]["X"]) + 8, 500 - Convert.ToInt32(dt_point_sort.Rows[i]["Y"]) - 2, 4, 5);
|
|
|
//g.DrawRectangle(mypen, Convert.ToInt32(dt_point_sort.Rows[i]["X"]) + 7, 500 - Convert.ToInt32(dt_point_sort.Rows[i]["Y"]) - 2, 5, 5);
|