Ejemplo n.º 1
0
        protected void ChangeData()
        {
            m_Bar.ClearDataPoints();

            NDataPoint dp = new NDataPoint();

            for (int i = 0; i < m_nBarCount; i++)
            {
                dp[DataPointValue.Value] = m_nBarCount / 2 - Random.Next(m_nBarCount);

                m_Bar.AddDataPoint(dp);
            }

            nChartControl1.Refresh();
        }
Ejemplo n.º 2
0
        protected void ChangeData()
        {
            int        nBarCount = 10;
            NBarSeries bar       = (NBarSeries)nChartControl1.Charts[0].Series[0];

            bar.ClearDataPoints();

            NDataPoint dp = new NDataPoint();

            for (int i = 0; i < nBarCount; i++)
            {
                dp[DataPointValue.Value] = nBarCount / 2 - Random.Next(nBarCount);

                bar.AddDataPoint(dp);
            }
        }