¿

MsChart ¿ Ƽ ¥:2021-7-4 11:25:18 ȸ:590
ۼ : ҿ
Ʈ : 1686
: 2020-02-02 00:09:14
湮Ƚ : 127
214, 65
Ұ : SoEn Դϴ.
ۼ

ٸ ϳ Ʈ Ÿ иϴ . 2 µ 1 Ʈ ǥѴ.

private void Form1_Load(object sender, EventArgs e)
{
     chart1.Series[0].Name = "µ";
     chart1.Series[0].Points.DataBindY(new int[] { 22, 25, 20, 28, 26, 29 });
     chart1.Series[0].ChartType = SeriesChartType.Line;
     chart1.Series[0].BorderWidth = 2;
     chart1.Series.Add("µ2");
     chart1.Series[1].Points.DataBindY(new int[] { 18, 18, 16, 19, 22, 17 });
     chart1.Series[1].ChartType = SeriesChartType.Line;
     chart1.Series[1].BorderWidth = 2;
     chart1.Series.Add("");
     chart1.Series[2].Points.DataBindY(new int[] { 65, 50, 58, 55, 60, 52 });
     chart1.Series[2].ChartType = SeriesChartType.Line;
     chart1.Series[2].BorderWidth = 2;

     chart1.ChartAreas[0].AxisX.MajorGrid.LineColor = Color.Gainsboro;
     chart1.ChartAreas[0].AxisY.MajorGrid.LineColor = Color.Gainsboro;
}

ø ߰ϰ ׸ 帴ϰ ǥߴ. µ 20 , µ2 10 Ĺݴ븦 Դ ϰ 50% αٿ ִ.



ȭ ľϴµ . ׷ µ ũ⸦ ٸ ̾ ũ⸦ ϴ ǹ̰ .
µ ̰ ̾ ޶ ߸ ô 򰥷 δ. ٸ Ʈ ִ 񱳰 ϰ ȭ ̿ 赵 캼 ִ. Ʈ и ̷ 񱳴 .
׳ 100 ̳ Ѵ ̴µ µ ִٸ ٴڿ Ӵ ¿ ȭ ľϱ⵵ ƴ.
̷ ุ иϿ µ, ǥϸ μ ִ. ü ڵ .
 
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Windows.Forms.DataVisualization.Charting;

namespace chartTest
{
     public partial class Form1 : Form
     {
          public Form1()
          {
               InitializeComponent();
          }

          private void Form1_Load(object sender, EventArgs e)
          {
              chart1.Series[0].Name = "µ";
              chart1.Series[0].Points.DataBindY(new int[] { 22, 25, 20, 28, 26, 29 });
              chart1.Series[0].ChartType = SeriesChartType.Line;
              chart1.Series[0].BorderWidth = 2;
              chart1.Series.Add("µ2");
              chart1.Series[1].Points.DataBindY(new int[] { 18, 18, 16, 19, 22, 17 });
              chart1.Series[1].ChartType = SeriesChartType.Line;
              chart1.Series[1].BorderWidth = 2;
              chart1.Series.Add("");
              chart1.Series[2].Points.DataBindY(new int[] { 65, 50, 58, 55, 60, 52 });
              chart1.Series[2].ChartType = SeriesChartType.Line;
              chart1.Series[2].BorderWidth = 2;

              chart1.ChartAreas[0].AxisX.MajorGrid.LineColor = Color.Gainsboro;
              chart1.ChartAreas[0].AxisY.MajorGrid.LineColor = Color.Gainsboro;

              // ʰ ְ ¿ Y ǥ Ÿ Ʈ ǥ Ѵ.
              //  Ȱ ƾ Ѵ.
              ElementPosition pos = new ElementPosition(3, 3, 80, 94);
              ElementPosition inner = new ElementPosition(6.48f, 2.79f, 87.02f, 88.46f);
              ChartArea areaTemp = chart1.ChartAreas[0];
              areaTemp.Position = pos;
              areaTemp.InnerPlotPosition = inner;

              //  .
              ChartArea areaHumid = chart1.ChartAreas.Add("humid");

              areaHumid.BackColor = Color.Transparent;
              areaHumid.BorderColor = Color.Transparent;
              areaHumid.Position.FromRectangleF(pos.ToRectangleF());
              areaHumid.InnerPlotPosition.FromRectangleF(inner.ToRectangleF());
              // ׸ AxisY2 ̺ .
              areaHumid.AxisX.MajorGrid.Enabled = false;
              areaHumid.AxisX.MajorTickMark.Enabled = false;
              areaHumid.AxisX.LabelStyle.Enabled = false;
               areaHumid.AxisY.MajorGrid.Enabled = false;
              areaHumid.AxisY.MajorTickMark.Enabled = false;
              areaHumid.AxisY.LabelStyle.Enabled = false;
              areaHumid.AxisY2.MajorGrid.Enabled = false;

              // ƽũ δ.
              areaHumid.AxisY.Enabled = AxisEnabled.False;
              areaHumid.AxisY2.Enabled = AxisEnabled.True;
              areaHumid.AxisY2.MajorTickMark.Enabled = true;

              // ¿ 0Ͱ ƴ °
              areaTemp.AxisX.IsMarginVisible = false;
              areaHumid.AxisX.IsMarginVisible = false;
              areaTemp.AxisY.IsStartedFromZero = false;
              areaHumid.AxisY.IsStartedFromZero = false;
              areaHumid.AxisY2.IsStartedFromZero = false;

              // δ. % *100 Ƿ ǥ ü δ.
              areaTemp.AxisY.LabelStyle.Format = "#";
              areaHumid.AxisY2.LabelStyle.Format = "#'%'";

              // ø ű.
              chart1.Series[2].ChartArea = areaHumid.Name;
          }
     }
}

. Y࿡ µ ǥõǰ µ ǥõȴ. µ Ÿ ȭ ũ ִ. Y࿡ ǥϸ Ѵ.




ٸ Ʈ ǥϸ鼭 ޶ 򰥸 ʰ ǥ ִ. ٸ  ø  ϴ ʷ Ȯ ǥؾ Ѵ. µ , ڰ ־ Ѵ.  
Ʈ Ʈ X, Y , ϱ ¿ Ǵ Ϸ ׸ ִ. ׷ ǥø ٸ ϳ δ ÿ ׸ .
¿ ٸ Ʈ ׸  ؾ Ѵ.  ǥϵ ϳ ุ, ϳ ุ ϴ ̴.  Ȯ ġϱ ϴ Ʈ ŸϷ ũ⸦ Ѵ.
(3, 3, 80, 94) ũ Ʈ Ȱȭϰ ʸ ߿ ư Ŭ ̺Ʈ ̸ inner ߴ. Ʈ Ÿ ٲ ũ⵵ ޶.
ũ⸦ Ͽ ϴ ߿ Position, innerPlotPosition Ӽ Ͽ ִ. ׷ Form_Load Ʈ ʱȭ ʾ 0 Ʈ ׸ Ŀ Ȯ ִ.
׷ ߿ Ʈ ̸ ߴ. ϴ ࿡ Ʈ ׸  ϴ ͵ ѵ ̷ Ǹ ߻Ѵ. ø  ġߴٰ  иǴ ϴ. ͵ Ϻ ذå ã ߴ.
humid ̸  ϳ Ѵ. ǥ ̹Ƿ µ ϰ ϰ X, Y ׸峪 ƽ ũ ʴ´. ٸ ุ ǥϵ ׸嵵 ̺ ƽũ ǥѴ.
0 ɼ ʿ信 ϵ X Y ǥϴ . 0 ϵ humid Y Y2 ɼ ġѾ ø ̺ .
µ Y ̺ ɷ ǥϰ Y2 ̺ % ǥϵ ׳ % ȣ ڵ *100 Ƿ % ܼ ϱ ǥ Ѵ. غ ø  areaHumid Ͽ  Ѵ.  и .



 ϴ ø и  ġ ϳ Ʈ δ. Ʈ X ̺, ƽũ, ׸尡 ؼ µ Ʈ .
3 ̻ Ʈ Ϸ ¿ ٸ  ġ ǥϸ ȴ. ø ǥϴ ϵ  ϳ ֱ  ġؾ Ѵ. ̿ ؼ mschart ÿ Ƿ ϵ .



ĵ  ⺻ . ڵ尡 ϰ ̶ ̴ ְ ߿ Ƽ Y Ϸ  и ϴ ó ʿ ٷο ̴. ǹ ̷ Ʈ ôµ ܷ , ƴ. ̷ Ʈ ׸ ڵ带 Ϻϰ ϰ ־ Ѵ.






 



õ SoEn
초량역마사지 가오리역번개만남 신무동출장샵 도천면소개팅 종로출장안마 익산출장마사지 충주출장안마 한남동채팅 영현면출장샵 북변동번개만남 골프 우승 오버워치 성인만화 대한민국최고출장샵 다시찾을께요 안양 립카페 플라워 주옥순 속초시출장마사지 푸어보이즈 김천출장만남

제주도민맛집 애견인소통 펀딩사이트 50대주부알바 라이브재테크예미맘알바 50대주부 경단녀... 재취업 포기하고 그냥 재택알바 시작! 겨울이 아기헤어밴드 카페인충전 카페스타그램 부업거리 게시판 | 펀드 3년수익 | 재택부업 종류 소액알바 원주콜걸샵 일본 19 반화 제천출장안마 여동생동인지

Ϻ Ű ũ

ҿ 75 9:51:02  

ʿ ƴ X൵ ǥ ʿ䰡 ׿. µ X ϴϱ. ڵ带 ߰ϸ ˴ϴ.

areaHumid.AxisX.Enabled = AxisEnabled.False;

ڵ尡  ĥ ̻ ϴ. Ģδ ʿϴٴ Դϴ. 


αϼž ֽϴ.