Ejemplo n.º 1
0
        void AddNode(String nodePath)
        {
            AbstractNumericNode node = robinMonitor.rootNode.FindNode(nodePath, true, true) as AbstractNumericNode;

            if (node != null && chart1.Series.IsUniqueName(node.GetFullPath()))
            {
                Series mySerie = new Series
                {
                    ChartType         = SeriesChartType.FastLine, // Set fast line chart type
                    Name              = node.GetFullPath(),
                    IsVisibleInLegend = true,
                    Tag = node
                };
                chart1.Series.Add(mySerie);
                chart1.ChartAreas[0].AxisX.LabelStyle.Format = "G3";
            }
        }
Ejemplo n.º 2
0
        private void RobinMonitor_TransactionRecieved(object sender, EventArgs e)
        {
            int i = 0;

            transactionCount++;
            foreach (Series myserie in chart1.Series)
            {
                if (myserie.Points.Count > 10000)
                {
                    continue;
                }
                AbstractNumericNode node = myserie.Tag as AbstractNumericNode;
                if (node != null && node.IsAttributeChanged(AttributeTypes.value))
                {
                    double newValue = node.ValueAsDouble();
                    myserie.Points.AddXY(transactionCount, newValue);
                }
                i++;
            }
        }