private ChartBusinessObject CreateBusinessObject()
        {
            ChartBusinessObject obj = new ChartBusinessObject();

            obj.Value    = this.random.Next(800, 1800);
            obj.Category = this.lastDate;

            return(obj);
        }
        private ChartBusinessObject CreateBusinessObject2(DateTime date)
        {
            ChartBusinessObject obj = new ChartBusinessObject();

            obj.Value    = this.random.Next(3300, 3800);
            obj.Category = date;

            return(obj);
        }
Beispiel #3
0
        void trackball_TextNeeded(object sender, TextNeededEventArgs e)
        {
            ChartBusinessObject dataItem = e.Points[0].DataPoint.DataItem as ChartBusinessObject;

            if (dataItem == null)
            {
                return;
            }

            StringBuilder textBuilder = new StringBuilder();

            textBuilder.Append("<html><color=255,0,0,0>");
            textBuilder.Append(String.Format("Online users at {0:HH}h:<b>{1}</b>", dataItem.Category, dataItem.Value));
            textBuilder.Append("</html>");
            e.Text = textBuilder.ToString();
            e.Element.BorderBoxStyle = BorderBoxStyle.FourBorders;
            e.Element.Location       = new Point(e.Element.Location.X, 0);
        }